This document discusses location and mapping APIs in Windows Phone 8. It begins with an introduction to location providers and the Windows Phone Runtime (WinPRT) Location API. It then demonstrates how to get the current location of a Windows Phone 8 device using the Geolocator class. Additional topics covered include location tracking, the built-in Maps app, and the new Map control for displaying maps and tracking location in apps. Code samples are provided to illustrate various location and mapping features.
Report
Share
Report
Share
1 of 21
Download to read offline
More Related Content
Location and map api in windows phone 8
1. Location and Map
API in Windows
Phone 8
SENTHIL KUMAR B
TRIVIUM ESOLUTIONS PVT LTD.
2. About me
Work for Trivium eSolutions , Bangalore
BDotNetter
Windows Phone Enthusiast
Blogs about Mobile development at
MobileOSGeek.com
Twitter : @isenthil
3. Agenda
Introduction to Location Providers
WinPRT Location API
Get the WP8’s Current Location
Location Tracking
Map Control
Built in Maps App - Show Location , Directions , Download
Maps for Offline Use.
Q&A
7. Geolocator
Used by your app to monitor the location of the phone.
Properties
DesiredAccuracy
DesiredAccuracyInMeters
MovementThreshhold
etc
Events
PositionChanged
StatusChanged
8. How to Get Current Phone
Location in WP8 ?
Geolocator geolocator = new Geolocator();
Geoposition myLocation = await
geolocator.GetGeopositionAsync();
var latitude =
myLocation.Coordinate.Latitude;
var longitude =
myLocation.Coordinate.Longitude;
13. Built-In Map App
MapsTask
Launches the Maps application
Search string and find locations on map
MapsDirectionTask
Launch the Maps application and display driving directions between two
points.
MapsDownloaderTask
Lets the users download a map for offline use.
MapUpdaterTask
lets users check for updates to a map that they have previously
downloaded for offline use.