LocationDatum class

Holds location information using the GPS format.

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

Constructors

LocationDatum()
LocationDatum.fromJson(Map<String, dynamic> json)
factory
LocationDatum.fromMap(Map map)

Properties

accuracy double
Accuracy in absolute measures.
read / write
altitude double
Altitude in GPS coordinates.
read / write
format → DataFormat
The DataFormat of this Datum.
read-only, override
gpsCoordinates → dynamic
The 2D GPS coordinates latitude, longitude.
read-only
latitude double
Latitude in GPS coordinates.
read / write
longitude double
Longitude in GPS coordinates.
read / write
speed double
Estimated movement speed.
read / write
speedAccuracy double
Accuracy in speed estimation. [...]
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
id String
Unique identifier for the current Datum, unique across all data generated.
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
timestamp DateTime
The UTC timestamp for generating this data on the device.
read / write, inherited

Methods

toJson() Map<String, dynamic>
override
toString() String
Returns a string representation of this object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Constants

CARP_DATA_FORMAT → const DataFormat
const DataFormat(NameSpace.CARP, DataType.LOCATION)