Partilhar via


MapLocationData Class

Note

Bing Maps SDK for Android and iOS retirement

Bing Maps SDK for Android and iOS is deprecated and will be retired. Free (Basic) account customers can continue to use Bing Maps SDK for Android and iOS until June 30th, 2025. Enterprise account customers can continue to use Bing Maps SDK for Android and iOS until June 30th, 2028. To avoid service disruptions, all implementations using Bing Maps SDK for Android and iOS will need to be updated to use Azure Maps Web SDK by the retirement date that applies to your Bing Maps for Enterprise account type.

Azure Maps is Microsoft's next-generation maps and geospatial services for developers. Azure Maps has many of the same features as Bing Maps for Enterprise, and more. To get started with Azure Maps, create a free Azure subscription and an Azure Maps account. For more information about azure Maps, see Azure Maps Documentation. For migration guidance, see Bing Maps Migration Overview.

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