isLocationOnEdge static method

bool isLocationOnEdge(
  1. LatLng point,
  2. List<LatLng> polygon,
  3. bool geodesic, {
  4. num tolerance = defaultTolerance,
})

Computes whether the given point lies on or near the edge of a polygon, within a specified tolerance in meters. The polygon edge is composed of great circle segments if geodesic is true, and of Rhumb segments otherwise. The polygon edge is implicitly closed - the closing segment between the first point and the last point is included.

Implementation

static bool isLocationOnEdge(
        LatLng point, List<LatLng> polygon, bool geodesic,
        {num tolerance = defaultTolerance}) =>
    _isLocationOnEdgeOrPath(point, polygon, true, geodesic, tolerance);