![Page 1: Location Services and Bing Maps in Windows Phone 7](https://reader035.vdocuments.us/reader035/viewer/2022062615/547fa713b4af9f0f1d8b463b/html5/thumbnails/1.jpg)
Location Services and Bing Maps in WP7
![Page 2: Location Services and Bing Maps in Windows Phone 7](https://reader035.vdocuments.us/reader035/viewer/2022062615/547fa713b4af9f0f1d8b463b/html5/thumbnails/2.jpg)
Overview
Geolocation inWindows Phone 7
Location Services
Bing Maps
Metro UI Guidelines
Futures (Mango)
Accuracy
Position
Heading
Maps Control
Getting API Keys
Marketplace
Opt-in
Settings Page
Geo-support inEmulator
Background Tasks
![Page 3: Location Services and Bing Maps in Windows Phone 7](https://reader035.vdocuments.us/reader035/viewer/2022062615/547fa713b4af9f0f1d8b463b/html5/thumbnails/3.jpg)
Location in WP7
UsesGeo-tagging (tweets, pictures)Discovering services nearbySharing location with friends
![Page 4: Location Services and Bing Maps in Windows Phone 7](https://reader035.vdocuments.us/reader035/viewer/2022062615/547fa713b4af9f0f1d8b463b/html5/thumbnails/4.jpg)
GeoCoordinateWatcher
Does EVERYTHINGGets location (altitude, lat / long)Gets course and speedCan control what mechanisms it uses to grab location
![Page 5: Location Services and Bing Maps in Windows Phone 7](https://reader035.vdocuments.us/reader035/viewer/2022062615/547fa713b4af9f0f1d8b463b/html5/thumbnails/5.jpg)
GeoCoordinateWatcher (Code)
![Page 6: Location Services and Bing Maps in Windows Phone 7](https://reader035.vdocuments.us/reader035/viewer/2022062615/547fa713b4af9f0f1d8b463b/html5/thumbnails/6.jpg)
DEMO
GeoCoordinateWatcher Demohttps://github.com/Aaronontheweb/wp7-location-services-demo
![Page 7: Location Services and Bing Maps in Windows Phone 7](https://reader035.vdocuments.us/reader035/viewer/2022062615/547fa713b4af9f0f1d8b463b/html5/thumbnails/7.jpg)
Gotchas
PositionChanged event never fires in the emulatorThis is changing in Mango
No background tracking yetComing in Mango
GeoPositionAccuracy.High DESTROYS battery lifeMeant for real-time geotrackingUse GeoPositionAccuracy.Default to conserve power
![Page 8: Location Services and Bing Maps in Windows Phone 7](https://reader035.vdocuments.us/reader035/viewer/2022062615/547fa713b4af9f0f1d8b463b/html5/thumbnails/8.jpg)
Bing Maps
You don't have to code anything
Includes default templates for everything
Get a free developer key from http://www.bingmapsportal.com/
![Page 9: Location Services and Bing Maps in Windows Phone 7](https://reader035.vdocuments.us/reader035/viewer/2022062615/547fa713b4af9f0f1d8b463b/html5/thumbnails/9.jpg)
Bing Maps (Code)
![Page 10: Location Services and Bing Maps in Windows Phone 7](https://reader035.vdocuments.us/reader035/viewer/2022062615/547fa713b4af9f0f1d8b463b/html5/thumbnails/10.jpg)
DEMO
Bing Maps Demo https://github.com/Aaronontheweb/wp7-maps-demo
![Page 11: Location Services and Bing Maps in Windows Phone 7](https://reader035.vdocuments.us/reader035/viewer/2022062615/547fa713b4af9f0f1d8b463b/html5/thumbnails/11.jpg)
Marketplace / Metro UI / Privacy Guidelines
Privacy is a big concern..User needs to be able to control how their data is usedAll location-data must be opt-inApp is tested for privacy policy compliance in marketplace
![Page 12: Location Services and Bing Maps in Windows Phone 7](https://reader035.vdocuments.us/reader035/viewer/2022062615/547fa713b4af9f0f1d8b463b/html5/thumbnails/12.jpg)
What Developers Need to DoProvide Yes / No prompt to users giving Geolocation consent upon first application run
Provide settings page where user can change settings at any time
![Page 13: Location Services and Bing Maps in Windows Phone 7](https://reader035.vdocuments.us/reader035/viewer/2022062615/547fa713b4af9f0f1d8b463b/html5/thumbnails/13.jpg)
Futures
Geolocation EmulatorReal Background TasksView the sessions online at Channel 9
![Page 14: Location Services and Bing Maps in Windows Phone 7](https://reader035.vdocuments.us/reader035/viewer/2022062615/547fa713b4af9f0f1d8b463b/html5/thumbnails/14.jpg)
Thanks!
Follow me [email protected]@Aarononthewebhttp://www.aaronstannard.com/
SourceLocation Services: https://github.com/Aaronontheweb/wp7-location-services-demoBing Maps: https://github.com/Aaronontheweb/wp7-maps-demo