MapLocationData Class

Represents the last information retrieved from a location update. Latitude, longitude, and timestamp are guaranteed to have valid values for every location fix.

Properties

Latitude

Latitude of position in degrees.

Android

double getLatitude()

iOS

@property(nonatomic, readonly) CLLocationDegrees latitude

Longitude

Longitude of position in degrees.

Android

double getLongitude()

iOS

@property(nonatomic, readonly) CLLocationDegrees longitude

PositionAccuracy

Accuracy of latitude and longitude in meters.

Android

Returns null if no value is available.

@Nullable Double getPositionAccuracy()

iOS

Returns -1 if no value is available.

@property(nonatomic, readonly) CLLocationAccuracy positionAccuracy

Altitude

Altitude of position in meters relative to AltitudeReference.

Android

Returns null if no value is available.

@Nullable Double getAltitude()

iOS

Returns nil if no value is available. Otherwise, returns double representated as a NSNumber.

@property(nonatomic, readonly, nullable) NSNumber* altitude

AltitudeAccuracy

Altitude accuracy of position in meters.

Android

Returns null if no value is available.

@Nullable Double getAltitudeAccuracy()

iOS

Returns -1 if no value is available.

@property(nonatomic, readonly) CLLocationAccuracy altitudeAccuracy

AltitudeReference

Altitude reference of position.

See also: AltitudeReferenceSystem

Android

AltitudeReferenceSystem getAltitudeReference()

iOS

@property(nonatomic, readonly) MSMapAltitudeReferenceSystem altitudeReference

Bearing

Bearing of position in degrees where bearing is the direction the user is moving in. This value is relative to true North. North is 0 degrees, east is 90 degrees, south is 180 degrees, and west is 270 degrees.

Android

Returns null if no value is available.

@Nullable Double getBearing()

iOS

Returns -1 if no value is available.

@property(nonatomic, readonly) CLLocationDirection bearing

Speed

Speed of position in meters per second.

Android

Returns null if no value is available.

@Nullable Double getSpeed()

iOS

Returns -1 if no value is available.

@property(nonatomic, readonly) CLLocationSpeed speed

Timestamp

Timestamp of position.

Android

Represents the date and time when the location data was retrieved, as UTC time in milliseconds since January 1, 1970.

long getTimestamp()

iOS

@property(nonatomic, readonly) NSDate* timestamp

See Also