Polylines class

Represents an encoded polyline string for a route path.

Polylines use a compressed format to efficiently represent a series of coordinates. The encoded string can be decoded to get the actual lat/lng points that make up a path.

Example:

final polyline = Polylines(
  points: 'abc123xyz...', // Encoded polyline string from API
);

Note: Use a polyline decoder library to convert the encoded string to actual coordinates for display on a map.

See: Google's Polyline Encoding Algorithm

Constructors

Polylines({required String? points})
Creates a Polylines instance with an encoded polyline string.

Properties

hashCode int
The hash code for this object.
no setterinherited
points String?
The encoded polyline string.
getter/setter pair
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