getNearestIndexTo method - GeoPolyline class - core library - Dart API
getNearestIndexTo
getNearestIndexTo method
- GeoCoordinates point
Returns the index of the nearest vertex to the given point.
pointCoordinates of the point.
Returns int. Index of the closest vertex of the polyline.
Implementation
int getNearestIndexTo(GeoCoordinates point) => $prototype.getNearestIndexTo(this, point);