GeoPolyline class
A list of geographic coordinates representing the vertices of a polyline.
An instance of this class, initialized with appropriate vertices.
Represents a GeoPolyline as a series of geographic coordinates.
- Annotations
Constructors
-
GeoPolyline(List<
GeoCoordinates> vertices) -
Constructs a GeoPolyline from the provided vertices.
factory
- GeoPolyline.withGeoBox(GeoBox geoBox)
-
Constructs an instance of this class from GeoBox.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
vertices
→ List<
GeoCoordinates> -
The list of vertices representing the polyline.
final
Methods
-
coordinatesAtOffsetInMeters(
double offsetInMeters, GeoPolylineDirection direction) → GeoCoordinates - Returns the coordinates at the given distance along the polyline.
-
getNearestIndexTo(
GeoCoordinates point) → int - Returns the index of the nearest vertex to the given point.
-
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.