segmentHint property - Waypoint class - routing library - Dart API
segmentHint
segmentHint property
getter/setter pair
Optional segment hint causes the router to try and match to the specified segment. Waypoint coordinates need to be on the segment, otherwise waypoint will be matched ignoring the segment hint. This parameter can be used when the waypoint is too close to more than one segment to force matching to a specific one. Only topology segment id and travel direction are used to define the segment hint
Note:
The feature is not supported by the OfflineRoutingEngine.
Implementation
SegmentReference? segmentHint;