Cursos
Ruta de aprendizaje
Use advance techniques in canvas apps to perform custom updates and optimization - Training
Use advance techniques in canvas apps to perform custom updates and optimization
Este explorador ya no se admite.
Actualice a Microsoft Edge para aprovechar las características y actualizaciones de seguridad más recientes, y disponer de soporte técnico.
Nota
Bing Maps for Enterprise service retirement
Bing Maps for Enterprise is deprecated and will be retired. Free (Basic) account customers can continue to use Bing Maps for Enterprise services until June 30th, 2025. Enterprise account customers can continue to use Bing Maps for Enterprise services until June 30th, 2028. To avoid service disruptions, all implementations using Bing Maps for Enterprise REST APIs and SDKs will need to be updated to use Azure Maps 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.
The PointsOfInterest data source contains information about points of interest (POIs) for over 150 countries/regions worldwide. POI coverage varies by country/region. You can query this data source by using the Bing Spatial Data Services Query API and any Bing Maps Key. The results are limited to 25 points of interest when using a Basic key. Enterprise keys do not have such limit.
Importante
When you query this data source for specific property values, you must include a geographical area to search. This does not apply if you are querying for specific entities using entity ID. See Query by Area and Query by ID for details. POI entities may not be available for every location.
Note: The PointsOfInterest data source does not support the intersects and nearRoute filters.
The following table describes the properties that you can query to get information about worldwide points of interest. These properties make up the PointsOfInterest entity type that is used by the Microsoft data source.
Property | Data Type | Example Value |
---|---|---|
EntityID (Primary Key) | Edm.String | 987654321123456789 |
Name | Edm.String | Contoso Cafe |
DisplayName | Edm.String | Contoso Cafe |
Latitude | Edm.Double | 47.610005 |
Longitude | Edm.Double | -122.185992 |
AddressLine | Edm.String | 1234 Main Street |
Locality | Edm.String | Bellevue |
AdminDistrict | Edm.String | Washington |
AdminDistrict2 | Edm.String | King |
PostalCode | Edm.String | 98004 |
CountryRegion | Edm.String | USA |
Phone | Edm.String | +(1)-(425)1231234 |
EntityTypeID | Edm.String | 9996 |
For a complete list of the entity type IDs that you can query, see POI Entity Types.
You can query PointsOfInterest data source by using the following base URL and adding additional parameters such a geographical area to search and the properties you want to return. For a complete description of query options and more examples, see Query API.
Importante
When you query this data source for specify property values, you must include a geographical area to search. This does not apply if you are querying for specific entities using entity ID. See Query by Area and Query by ID for details.
Base Query URL
http://spatial.virtualearth.net/REST/v1/data/Microsoft/PointsOfInterest
Query Example
The following query example queries for banks within 5 kilometers of the specified latitude and longitude. The query key you use can be any Bing Maps Key. For complete information about querying a data source, see Query API.
http://spatial.virtualearth.net/REST/v1/data/Microsoft/PointsOfInterest?spatialFilter=nearby(40.83274904439099,-74.3163299560546935,5)&$filter=EntityTypeID%20eq%20'6000'&$select=EntityID,DisplayName,Latitude,Longitude,__Distance&$top=3&key=anyBingMapsKey
Cursos
Ruta de aprendizaje
Use advance techniques in canvas apps to perform custom updates and optimization - Training
Use advance techniques in canvas apps to perform custom updates and optimization
Documentación
This article provides URL templates used to search a data source for entity types that are within a specified area. Also includes a table listing all of the template parameters with descriptions and values for each parameter, an explanation of query responses and an example that queries a data source by specifying a bounding box, another example that queries a data source by specifying a point and distance to search from that point. and a final example that queries a data source by specifying a point and di
Describes the Geodata API and provides supported HTTP methods, the URL template, template parameters, examples, and HTTP status codes.
Public Data Sources - Bing Maps
The overview page for the Public Data Sources section, with a list of links to each data source available and a description for each.