TimeDistanceCoordinate class Core

Timestamped geographic coordinate with associated relative distance.

Represents a WGS coordinate plus a distance (meters) from an origin and a timestamp (milliseconds since epoch). Useful when working with route samples, time-distance traces, and navigation telemetry.

The API user typically does not create instances directly. Rather, instances are provided by the SDK in various methods.

Also see:

Constructors

TimeDistanceCoordinate({required Coordinates coords, int distance = 0, int stamp = 0})
Creates a new time-distance-coordinate object.
TimeDistanceCoordinate.fromJson(Map<String, dynamic> json)
Deserializes a JSON-compatible map to create an instance.
factory

Properties

coords Coordinates
WGS coordinates.
getter/setter pair
distance int
Relative distance in meters.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stamp int
Timestamp in milliseconds since epoch (UTC).
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this instance to a JSON-compatible map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(covariant TimeDistanceCoordinate other) bool
The equality operator.
override