MapLocationEntityTypes Enumeration
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.
Specifies the entity types that you want returned in the response for a geocoding request. Only the types you specify will be returned. If the point cannot be mapped to the entity types you specify, no location information is returned in the response.
These entity types are ordered from the most specific entity to the least specific entity. When entities of more than one entity type are found, only the most specific entity is returned. For example, if you specify Address
and AdminDivision
as entity types and entities were found for both types, only the Address
entity information is returned in the response. One exception to this rule is when both PopulatedPlace
and Neighborhood
entity types are specified and information is found for both. In this case, the information for both entity types is returned. Also, more than one neighborhood may be returned because the area covered by two different neighborhoods can overlap.
The values can be combined using bitwise OR
.
Android
public class MapLocationEntityTypes { public static final int NOT_SET = 0; public static final int ADDRESS = 1; public static final int NEIGHBORHOOD = 2; public static final int POPULATED_PLACE = 4; public static final int POSTCODE = 8; public static final int ADMIN_DIVISION = 16; public static final int ADMIN_DIVISION_2 = 32; public static final int COUNTRY_REGION = 64; }
iOS
typedef NS_OPTIONS(NSUInteger, MSMapLocationEntityTypes) { MSMapLocationEntityTypeNotSet = 0, MSMapLocationEntityTypeAddress = 1, MSMapLocationEntityTypeNeighborhood = 2, MSMapLocationEntityTypePopulatedPlace = 4, MSMapLocationEntityTypePostcode = 8, MSMapLocationEntityTypeAdminDivision = 16, MSMapLocationEntityTypeAdminDivision2 = 32, MSMapLocationEntityTypeCountryRegion = 64 };
Values
NotSet
Default value, does not set EntityTypes
parameter in the request.
Address
Include addresses in the response.
Neighborhood
Include neighborhoods in the response.
PopulatedPlace
Include populated areas in the response.
Postcode
Include postcode areas in the response.
AdminDivision
Include administrative divisions in the response.
AdminDivision2
Include second level administrative divisions in the response.
CountryRegion
Include countries/regions in the response.