Location Services and Bing Maps in Windows Phone 7
-
Upload
aaron-stannard -
Category
Technology
-
view
7.393 -
download
0
description
Transcript of Location Services and Bing Maps in Windows Phone 7
Location Services and Bing Maps in WP7
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
Location in WP7
UsesGeo-tagging (tweets, pictures)Discovering services nearbySharing location with friends
GeoCoordinateWatcher
Does EVERYTHINGGets location (altitude, lat / long)Gets course and speedCan control what mechanisms it uses to grab location
GeoCoordinateWatcher (Code)
DEMO
GeoCoordinateWatcher Demohttps://github.com/Aaronontheweb/wp7-location-services-demo
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
Bing Maps
You don't have to code anything
Includes default templates for everything
Get a free developer key from http://www.bingmapsportal.com/
Bing Maps (Code)
DEMO
Bing Maps Demo https://github.com/Aaronontheweb/wp7-maps-demo
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
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
Futures
Geolocation EmulatorReal Background TasksView the sessions online at Channel 9
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