Skip to Content
Windows® Phone 7 Programming for Android™ and iOS Developers
book

Windows® Phone 7 Programming for Android™ and iOS Developers

by Baijian Yang, Zhinan Zhou, Pei Zheng, Robert Zhu
August 2011
Intermediate to advanced
360 pages
9h 14m
English
Wrox
Content preview from Windows® Phone 7 Programming for Android™ and iOS Developers

Chapter 7

Leveraging Location and Maps

WHAT’S IN THIS CHAPTER?

  • Locating frameworks on smartphones
  • Getting the current location
  • Using GPS on the WP7 Emulator
  • Using the Bing Maps control
  • Showing locations on Bing Maps

Location-based applications are becoming one of the most popular categories of mobile application across major mobile OSs. GPS enables applications to obtain accurate geographic location information, which is essentially a built-in component on smartphones, together with the required cellular data and sometimes a Wi-Fi location database. Each mobile OS has to provide an easy-to-use location framework that allows developers to programmatically use location data, maps, and map overlays for a wide range of scenarios. Windows Phone 7 (WP7) is no exception.

This chapter starts with an overview of the location framework on three smartphone platforms: WP7, iOS, and Android. In addition, you’ll see examples that show you how to get the location information on WP7 and demonstrate how to use the Bing Maps Control. In particular, you’ll learn how to acquire current geographical location information using the System.Device.Location namespace and how to test your location-aware applications on WP7 emulators. In addition, you’ll find out how to use Bing Maps web services to convert addresses (such as a street name) to geographic coordinates. You’ll also discover how to use the Microsoft.Phone.Controls.Maps namespace to draw and navigate maps on WP7 devices. An example is also ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Web Geek’s Guide to the Android™-Enabled Phone

Web Geek’s Guide to the Android™-Enabled Phone

Jerri Ledford, Bill Zimmerly, Prasanna Amirthalingam

Publisher Resources

ISBN: 9781118154229Purchase book