Path class Core

Path class

Constructors

Path.init(int id, int mapId)

Properties

area RectangleGeographicArea
Get path rectangle.
no setter
coordinates List<Coordinates>
Get read-only access to the internal coordinates list.
no setter
hashCode int
The hash code for this object.
no setterinherited
mapId int
no setter
name String
Get path name.
getter/setter pair
pointerId int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
wayPoints List<int>
Get read-only access to the internal waypoint list.
no setter

Methods

cloneReverse() Path
Clone reverse order path. Does not change the original path.
cloneStartEnd(Coordinates start, Coordinates end) Path
Clone path from the given coordinates.
dispose() → void
exportAs(PathFileFormat pathFileFormat) String
Export path coordinates in the requested data format.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerAutoReleaseObject(int pointerId) → void
Registers an object for auto release.
inherited
toLandmarkList() List<Landmark>
Create a new landmark list from a path.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

create({required Uint8List data, PathFileFormat format = PathFileFormat.gpx}) Path
Create a path from a data buffer of a given format.
fromCoordinates(List<Coordinates> coords) Path
getCoordinatesAtPercent(List<Coordinates> coords, double percent) Coordinates
Get a coordinate along the path given by a fraction of the path length between 0.0 (departure point) and 1.0 (destination).