findNearestRouteIndex method
Finds the route index whose polyline is closest to tapLocation.
Implementation
int findNearestRouteIndex(
LatLng tapLocation, {
double maxDistanceMeters = 35.0,
double? zoom,
double touchRadiusPixels = 56.0,
}) {
return routing.findNearestRouteIndex(
tapLocation,
maxDistanceMeters: maxDistanceMeters,
zoom: zoom,
touchRadiusPixels: touchRadiusPixels,
);
}