GoogleMapsUtilsPoly class

Instance wrapper around PolyUtils for use via GoogleMapsUtils.poly.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

containsLocationPoly(Point<double> point, List<Point<double>> polygon, {bool geodesic = false}) bool
Checks whether point is inside polygon on the sphere.
decode(String encodedPath) List<Point<double>>
Decodes an encoded polyline string into points.
distanceToLine(Point<double> p, Point<double> start, Point<double> end) double
Distance from p to the line segment from start to end, in meters.
encode(List<Point<double>> path) String
Encodes points into an encoded polyline string.
isClosedPolygon(List<Point<double>> poly) bool
Whether poly is a closed polygon (first == last).
isLocationOnEdge(Point<double> point, List<Point<double>> polygon, bool geodesic) bool
Whether point lies on polygon's edge (0.1m tolerance).
isLocationOnEdgeTolerance(Point<double> point, List<Point<double>> polygon, bool geodesic, double tolerance) bool
Whether point lies on polygon's edge within tolerance meters.
isLocationOnPath(Point<double> point, List<Point<double>> polyline, bool geodesic) bool
Whether point lies on polyline (0.1m tolerance).
isLocationOnPathTolerance(Point<double> point, List<Point<double>> polyline, bool geodesic, double tolerance) bool
Whether point lies on polyline within tolerance meters.
locationIndexOnEdgeOrPath(Point<double> point, List<Point<double>> poly, bool closed, bool geodesic, double toleranceEarth) int
Full control: segment index with closed/open and custom toleranceEarth.
locationIndexOnPath(Point<double> point, List<Point<double>> polyline, bool geodesic) int
Segment index of point on polyline, or -1.
locationIndexOnPathTolerance(Point<double> point, List<Point<double>> poly, bool geodesic, double tolerance) int
Segment index of point on poly with custom tolerance, or -1.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
simplify(List<Point<double>> poly, double tolerance) List<Point<double>>
Simplifies poly using Douglas-Peucker with tolerance in meters.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited