Polyline class
Based off of the offical Google document Some parts from this implementation by Mark McClure
Constructors
- Polyline()
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
decode(
String polyline, {int precision = 5}) → List< Position> - Decodes a Polyline to a List<Position>. This is adapted from the implementation in Project-OSRM. See https://github.com/Project-OSRM/osrm-frontend/blob/master/WebContent/routing/OSRM.RoutingGeometry.js
-
encode(
List< Position> coordinates, {int? precision}) → String - Encodes the given List<Position> to a polyline, a String.