We have a pretty good idea now of how the APIs to the Bing Maps data work. They are normally URL templates we can query for a single point of data, like a coordinate, or entire sets, as we did with the spatial geocoding. In Chapter 2, Diving into Bing Maps AJAX Control Version 7, we went to Paris, and when we clicked on the map, the Bing Maps gave us the address of that location.
Now we will go back to the United States and have a look at the Geodata API; it is at the moment in preview mode, which makes it interesting in giving us an insight to the direction of where the Bing Maps are headed.
The Geodata API produces a set of polygons that constitute the boundaries of a geographic area, such as different levels of postcodes, province, or state.
In this chapter, we will build a small web app that shows the postcode of the point where the user clicks on a map. The main structure of the application is the same as in the previous chapters, starting with...