EncodedPathModel class

Encoded and compressed route data produced from a raw PathModel.

Constructors

EncodedPathModel({required PathModel pathModel, required String encodedPath, required int polylinePrecision, required int originalPointCount, required int compressedPointCount, required double compressedDistance})
Creates an encoded path container for storage or transfer.
const
EncodedPathModel.fromJson(Map<String, dynamic> json)
Creates an EncodedPathModel from serialized JSON data.
factory

Properties

compressedDistance → double
Distance in kilometers measured from the filtered route.
final
compressedPointCount → int
Number of coordinates remaining after compression.
final
encodedPath → String
Encoded polyline string representation of the compressed route.
final
hashCode → int
The hash code for this object.
no setterinherited
originalPointCount → int
Number of coordinates in the original raw path.
final
pathModel → PathModel
The original raw path model that the encoded path was derived from.
final
polylinePrecision → int
Precision used when encoding the polyline.
final
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
toJson() → Map<String, dynamic>
Serializes this encoded path model into a JSON-compatible map.
toString() → String
A string representation of this object.
inherited

Operators

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