GoXam for WPF v3
FindClosestSegment Method
Northwoods.GoXam Namespace > Route Class : FindClosestSegment Method
the Point, in model coordinates
Find the index of the segment that is closest to a given point.
Syntax
public int FindClosestSegment( 
   Point q
)

Parameters

q
the Point, in model coordinates

Return Value

The index of the segment, from zero to the number of points minus 2
Remarks
This assumes the route only has straight line segments. It ignores any jump-overs or jump-gaps.
See Also

Reference

Route Class
Route Members