Compartilhar via


MapLocationAddress 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.

Contains address data for a specific location returned from a geocoding request.

Properties

FormattedAddress

Specifies the address in a local format. This address may not include the country or region.

Example: 1 Microsoft Way, Redmond, WA 98052-8300

Android

String getFormattedAddress()

iOS

@property (nonatomic, readonly) NSString* formattedAddress

AddressLine

Specifies the address line for the address.

Example: 1 Microsoft Way

Android

String getAddressLine()

iOS

@property (nonatomic, readonly) NSString* addressLine

Neighborhood

Specifies the neighborhood for the address.

Example: Ballard

Android

String getNeighborhood()

iOS

@property (nonatomic, readonly) NSString* neighborhood

Locality

Specifies the locality for the address.

Example: Seattle

Android

String getLocality()

iOS

@property (nonatomic, readonly) NSString* locality

AdminDistrict

Specifies the administrative district for the address.

Example: WA

Android

String getAdminDistrict()

iOS

@property (nonatomic, readonly) NSString* adminDistrict

AdminDistrict2

Specifies the second level administrative district for the address.

Example: King Co.

Android

String getAdminDistrict2()

iOS

@property (nonatomic, readonly) NSString* adminDistrict2

PostalCode

Specifies the postal code for the address.

Example: 98052

Android

String getPostalCode()

iOS

@property (nonatomic, readonly) NSString* postalCode

CountryRegion

Specifies the country/region for the address.

Example: United States

Android

String getCountryRegion()

iOS

@property (nonatomic, readonly) NSString* countryRegion

CountryCode

Specifies the two-letter ISO country code for the address.

Example: US

Android

String getCountryCode()

iOS

@property (nonatomic, readonly) NSString* countryCode

Landmark

Specifies the landmark name for the address.

Example: Space Needle

Android

String getLandmark()

iOS

@property (nonatomic, readonly) NSString* landmark

See Also