GpsStay class

GPS point representing a stay in that location for some amount of time.

Some fields may be unavailable (null), depending on data source. The inherited time indicates the start of the stay.

Inheritance

Constructors

GpsStay({required GpsTime time, required double latitude, required double longitude, double? altitude, double? accuracy, GpsTime? endTime})
Constructor.
GpsStay.fromPoint(GpsPoint point, {double? accuracy, GpsTime? endTime})
Constructs a GpsStay from the data in point, with optionally the additional information in accuracy and endTime.

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
End time of the stay in the specified location (must be >= time).
no setteroverride
hashCode int
The hash code for this object.
no setteroverride
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
startTime → dynamic
Alias time to startTime because it's easier to think of it as the start time of the stay in the specified location.
no setter
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, GpsTime? endTime}) GpsStay
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 GpsStay
A stay with all fields set to zero.
final
zeroOrNulls GpsStay
A stay with all fields set to null if possible, or to zero otherwise.
final