Location | iOS SDK | 2GIS Documentation

Location

Geoposition.

public init(
    coordinates: LocationCoordinates,
    altitude: LocationFuzzyDouble?,
    course: LocationCourse?,
    groundSpeed: LocationFuzzyDouble?,
    source: String,
    timestamp: TimeInterval
)
Parameters
coordinates
altitude::value - altitude above the WGS84 reference ellipsoid, m. altitude::accuracy - standard deviation of altitude measurement error, m. nil means the platform does not provide this field. https://en.wikipedia.org/wiki/Standard_deviation Value area: (nil, > 0).e
course::value is the directional angle (the direction of travel along the Earth's surface). The angle is measured relative to geographic north). course::accuracy - standard deviation of the way angle measurement error. nil means the platform does not provide this field. https://en.wikipedia.org/wiki/Standard_deviation Value area: (nil, > 0).e
groundSpeed
source
timestamp
Properties

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

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

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

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

Name of the geopositioning source.

Time point at which the geoposition was determined. This point is not attached to any specific date and is used solely to calculate the time between two geopositioning measurements obtained from one geopositioning source in one session. This field should increase monotonically (even when the system is in sleep mode).