TracePoint class
A point of a GPS trace, as sent to snapToRoads.
The GT06 and most tracking devices send heading, speed and time along with the position. Giving it only the position wastes half the accuracy of the operation: with speed and heading, the service can tell the frontage road apart from the parallel highway.
- Annotations
Constructors
- TracePoint({required LatLng position, double? headingDegrees, double? speedKmh, DateTime? timestamp})
-
Creates the trace point.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- headingDegrees → double?
-
The heading in degrees, 0 = north.
final
- position → LatLng
-
Where the GPS said it was.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- speedKmh → double?
-
The speed in kilometers per hour.
final
- timestamp → DateTime?
-
When it was recorded.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - The point in the shape the service expects.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited