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

Location

Geoposition.

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

Geoposition.

Parameters
Properties

coordinates::value - coordinates of the geoposition. coordinates::accuracy - horizontal accuracy of the geoposition coordinates (DRMS), m. https://en.wikipedia.org/wiki/Circular_error_probable Value range: >= 0.

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

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

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

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.

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 increase monotonically (even when the system is in sleep mode).