locationIndexOnPath method

int locationIndexOnPath(
  1. Point<double> point,
  2. List<Point<double>> polyline,
  3. bool geodesic
)

Segment index of point on polyline, or -1.

Implementation

int locationIndexOnPath(
        Point<double> point, List<Point<double>> polyline, bool geodesic) =>
    PolyUtils.locationIndexOnPath(point, polyline, geodesic);