Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Windows Phone 7.5: Building Location-aware Applications

You're reading from   Windows Phone 7.5: Building Location-aware Applications Build your first Windows Phone application with Location and Maps with this book and ebook.

Arrow left icon
Product type Paperback
Published in Jul 2012
Publisher Packt
ISBN-13 9781849687249
Length 148 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Table of Contents (11) Chapters Close

Windows Phone 7.5: Building Location-aware Applications
Credits
About the Author
About the Reviewers
1. www.PacktPub.com
2. Preface
1. The Location-based World FREE CHAPTER 2. Using Location in Windows Phone 7.5 3. Using Maps in your Windows Phone App 4. Events App - PacktEvents 5. Location-aware News App — PacktNews

Working with Bing Maps geocoding and reverse geocoding services


The Bing Maps REST Services API provides API end points for forward geocoding (or just simple geocoding) as well as reverse geocoding. Static Maps API, Routing and Traffic APIs are supported as well. Refer to the following MSDN documentation for a complete look at the APIs:

http://msdn.microsoft.com/en-us/library/ff701722.aspx

In our previous example, we showed an alert when a user clicked or touched on a pushpin. The content of the alert was geocodes, however to make the app more informational and useful, we could use the reverse geocoding API from Bing Maps, and convert the geocodes to meaningful addresses. Here's how:

  1. 1. We use the Find a Location by Point API endpoint from the Bing Maps REST Service at:

    http://msdn.microsoft.com/en-us/library/ff701710.aspx

  2. 2. Import the following XML namespaces in your project so that we can parse the API response:

    using System.Xml;
    using System.Xml.Linq;
    
  3. 3. In your global class namespace...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image