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< polygon, {bool geodesic = false}) → booldouble> > -
Checks whether
pointis insidepolygonon 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
pto the line segment fromstarttoend, in meters. -
encode(
List< Point< path) → Stringdouble> > - Encodes points into an encoded polyline string.
-
isClosedPolygon(
List< Point< poly) → booldouble> > -
Whether
polyis a closed polygon (first == last). -
isLocationOnEdge(
Point< double> point, List<Point< polygon, bool geodesic) → booldouble> > -
Whether
pointlies onpolygon's edge (0.1m tolerance). -
isLocationOnEdgeTolerance(
Point< double> point, List<Point< polygon, bool geodesic, double tolerance) → booldouble> > -
Whether
pointlies onpolygon's edge withintolerancemeters. -
isLocationOnPath(
Point< double> point, List<Point< polyline, bool geodesic) → booldouble> > -
Whether
pointlies onpolyline(0.1m tolerance). -
isLocationOnPathTolerance(
Point< double> point, List<Point< polyline, bool geodesic, double tolerance) → booldouble> > -
Whether
pointlies onpolylinewithintolerancemeters. -
locationIndexOnEdgeOrPath(
Point< double> point, List<Point< poly, bool closed, bool geodesic, double toleranceEarth) → intdouble> > -
Full control: segment index with
closed/open and customtoleranceEarth. -
locationIndexOnPath(
Point< double> point, List<Point< polyline, bool geodesic) → intdouble> > -
Segment index of
pointonpolyline, or -1. -
locationIndexOnPathTolerance(
Point< double> point, List<Point< poly, bool geodesic, double tolerance) → intdouble> > -
Segment index of
pointonpolywith customtolerance, or -1. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
simplify(
List< Point< poly, double tolerance) → List<double> >Point< double> > -
Simplifies
polyusing Douglas-Peucker withtolerancein meters. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited