findClosestSegment method
Find the index of the segment that is closest to a given point. This assumes the route only has straight line segments. It ignores any jump-overs or jump-gaps. @param {Point} p the Point, in document coordinates. @return {number} int the index of the segment, from zero to the number of points minus 2.
Implementation
_i2.num findClosestSegment(_i3.Point p) => _i4.callMethod(
this,
'findClosestSegment',
[p],
);