O'Reilly logo

Learning Bing Maps API by Artan Sinani

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Bing Maps REST resources

RESTful services provide their data in form of resources accessible via a URL. The Bing Maps Location API responds with location resources, whereas the other API responses, in JSON, or XML format, contain imagery, route, or traffic information.

The fields returned by the API are quite large, and need to be serialized in other programming languages, such as JavaScript, C# or Ruby. In .NET we can use a collection of DataContracts that correspond to the JSON format of the REST APIs (the latest version of them can be found at http://msdn.microsoft.com/en-us/library/jj870778.aspx). We will also use them in our project, so let's copy them to a JsonDataContracts.cs file inside the Models folder.

Now, it's time to write our proxy ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required