getNearestIndexTo method

int getNearestIndexTo(
  1. GeoCoordinates point
)

Returns the index of the nearest vertex to the given point.

  • point Coordinates of the point.

Returns int. Index of the closest vertex of the polyline.

Implementation

int getNearestIndexTo(GeoCoordinates point) => $prototype.getNearestIndexTo(this, point);