location services and bing maps in windows phone 7

14
Location Services and Bing Maps in WP7

Upload: aaron-stannard

Post on 04-Dec-2014

7.393 views

Category:

Technology


0 download

DESCRIPTION

How to use Location Services and Bing Maps Controls in Windows Phone 7.

TRANSCRIPT

Page 1: Location Services and Bing Maps in Windows Phone 7

Location Services and Bing Maps in WP7

Page 2: Location Services and Bing Maps in Windows Phone 7

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

Location in WP7

UsesGeo-tagging (tweets, pictures)Discovering services nearbySharing location with friends

Page 4: Location Services and Bing Maps in Windows Phone 7

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

GeoCoordinateWatcher (Code)

Page 6: Location Services and Bing Maps in Windows Phone 7

DEMO

GeoCoordinateWatcher Demohttps://github.com/Aaronontheweb/wp7-location-services-demo

Page 7: Location Services and Bing Maps in Windows Phone 7

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

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

Bing Maps (Code)

Page 11: Location Services and Bing Maps in Windows Phone 7

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

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

Futures

Geolocation EmulatorReal Background TasksView the sessions online at Channel 9

Page 14: Location Services and Bing Maps in Windows Phone 7

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