LocationDatum class

Holds location information using the GPS format.

Inheritance
  • Object
  • Data
  • Datum
  • LocationDatum
Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)

Constructors

LocationDatum()
LocationDatum.fromJson(Map<String, dynamic> json)
factory
LocationDatum.fromLocation(LocationData location)

Properties

accuracy double?
Accuracy in absolute measures.
getter/setter pair
altitude double?
Altitude in GPS coordinates.
getter/setter pair
format ↔ DataFormat
The DataFormat of this type of Datum.
getter/setter pairinherited-setteroverride-getter
hashCode int
The hash code for this object.
no setterinherited
heading double?
Heading in degrees
getter/setter pair
id String?
An identifier for this Datum, unique across all data generated. If this datum is part of a MultiDatum, then this id is null.
getter/setter pairinherited
latitude double?
Latitude in GPS coordinates.
getter/setter pair
longitude double?
Longitude in GPS coordinates.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speed double?
Estimated movement speed.
getter/setter pair
speedAccuracy double?
Accuracy in speed estimation.
getter/setter pair
time DateTime?
The time when this location was collected.
getter/setter pair
timestamp DateTime
The UTC timestamp when this data was generated on the device.
getter/setter pairinherited

Methods

equivalentTo(ConditionalEvent? event) bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Return a JSON encoding of this datum.
override
toString() String
The 2D GPS coordinates latitude, longitude.
override

Operators

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