ru.dgis.sdk.positioning.Location | Android SDK | 2GIS Documentation

Location

Geoposition.

Location(
	coordinates: LocationCoordinates,
	altitude: LocationFuzzyDouble?,
	course: LocationCourse?,
	groundSpeed: LocationFuzzyDouble?,
	source: String,
	timestamp: Duration
)

Geoposition.

Parameters
Properties

coordinates::value - geolocation coordinates. coordinates::accuracy - horizontal accuracy of determining geolocation coordinates (DRMS) in meters, https://en.wikipedia.org/wiki/Circular_error_probable Value range: >= 0.

altitude::value - height above WGS84 reference ellipsoid in meters. altitude::accuracy - standard deviation of height measurement error in meters. Null means that the platform does not provide this field. https://en.wikipedia.org/wiki/Standard_deviation Value range: (null, > 0).

course::value - track angle (direction of movement of the Earth's surface). Angle of measurement relative to geographic north). course::accuracy - standard deviation of the track angle measurement error. Null means that the platform does not provide this field. https://en.wikipedia.org/wiki/Standard_deviation : (null, > 0).

ground_speed - speed of movement along the Earth surface, m/s. Value range: >= 0. ground_speed::accuracy - standard deviation of speed measurement error, m/s. Null means that the platform does not provide this field. https://en.wikipedia.org/wiki/Rayleigh_distribution Value range: (null, > 0).

The name of the location source.

Timestamps between different location sources are not synchronized, so you cannot compare timestamps for locations that are obtained from different sources.

The time point at which the geolocation was determined. This point is not tied to any specific date and is used solely to calculate the time between two location measurements obtained from the same location source in the same session. This field must be monotonously increasing (even when the system is in sleep mode).