GpsMeasurement class

GPS point with additional information related to the measurement.

Some fields may be unavailable (null), depending on data source.

Inheritance

Constructors

GpsMeasurement({required GpsTime time, required double latitude, required double longitude, double? altitude, double? accuracy, double? heading, double? speed, double? speedAccuracy})
Constant constructor, as modifying points while they're part of a collection could have bad effects in that collection's meta flags, like sorted state.
const
GpsMeasurement.fromPoint(GpsPoint point, {double? accuracy, double? heading, double? speed, double? speedAccuracy})

Properties

accuracy double?
The accuracy of the measurement.
final
altitude double?
The altitude of the point, in meters (is not present for some data sources).
finalinherited
endTime → dynamic
The end time for the point measurement (same as time for GpsPoint, but may be overridden in subclasses if they implement staying in a position for some extended period of time).
no setterinherited
hashCode int
The hash code for this object.
no setteroverride
heading double?
The heading of the device.
final
latitude double
The latitude of the point, in degrees.
finalinherited
longitude double
The longitude of the point, in degrees.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speed double?
The speed, in meter/second.
final
speedAccuracy double?
The accuracy of the speed measurement.
final
time GpsTime
The time for the point record, measured in seconds since the epoch (1/1/1970 UTC).
finalinherited

Methods

copyWith({GpsTime? time, double? latitude, double? longitude, double? altitude, double? accuracy, double? heading, double? speed, double? speedAccuracy}) GpsMeasurement
Create a copy of the point with optionally one or more of its fields set to new values.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
Equality operator overload.
override

Static Properties

allZero GpsMeasurement
A measurement with all fields set to zero.
final
zeroOrNulls GpsMeasurement
A measurement with all fields set to null if possible, or to zero otherwise.
final