I have a GPX file and I am trying to calculate the total distance between two points with the following function
import { LineString } from \'ol/geom\' getDi