closestPolylinePositionWithPriority abstract method
PolylinePosition?
closestPolylinePositionWithPriority(
- Point point,
- PolylineIndexPriority priority, {
- required double maxLocationBias,
Finds closest polyline position. Returns null if there is no position that satisfies the condition distance(point, position) < maxLocationBias.
Two modes are available: 1. Find the closest polyline position to a raw point PolylineIndexPriority.ClosestToRawPoint 2. Find the closest polyline position to the polyline start PolylineIndexPriority.ClosestToStart.
Implementation
mapkit_geometry_geometry.PolylinePosition?
closestPolylinePositionWithPriority(
mapkit_geometry_point.Point point,
PolylineIndexPriority priority, {
required core.double maxLocationBias,
});