There’s no question how awesome Bing Maps is. It is loaded with innovation and tons of awesome data that now you can include in your application by using their REST based services. The services provide a lot of value to developers and their apps including data source management:
New: Bing Maps Account Center now provides the ability to manage data sources created by Data Source Management API (Bing Spatial Data Services). You can now use the Manage my data sources page to view and edit all the data sources associated with your account in one place.
But the core of the Bing Maps service is the API.
There are four API services:
- Locations API – Use the Locations API to geocode and reverse-geocode location data.
- Imagery API – Use the Imagery API to get a static map and imagery data information such as map tiles and providers.
- Routes API – Use the Routes API to get directions and route information for driving, walking or using transit.
- Traffic API – Use the Traffic API to get information about traffic incidents and issues in a specified area.
This article will be using the Locations API specifically. Using this we can leverage data from other services like Bing’s Search and plot them on a map control.
The are three Location API queries:
- Find a Location by Address Use these URL templates to get latitude and longitude coordinates for a location by specifying values such as a locality, postal code, and street address.
- Find a Location by Point Use this URL template to get the location information associated with latitude and longitude coordinates.
- Find a Location by Query Use these URL templates to get latitude and longitude coordinates that correspond to location information provided as a query string.
This article will implement all three of these methods – yep, all of them. Each has their own use and implementing just one would be a sick waste of time. So here it goes.
First, get a key
The Bing Maps Portal is where you start. A developer key is quick, simple, and free. In fact, using the Bing Map services is completely free. That’s great. Once you have your key, we can really get started.