Detecting geolocation (Windows Store apps using JavaScript and HTML)

Language: JavaScript and HTML | VB/C#/C++ and XAML
12 out of 16 rated this helpful - Rate this topic

Purpose

Developers can create Windows Store apps that detect the user's geographic location. For example, an application can plot the user's location on a map, tag a photo or email message with geographic coordinates, or respond to a change in the user's location by updating a list of points of interest.

This section includes how-to topics and guidelines for detecting a user's geographic location. For additional information on using location and maps, see the Bing Maps SDK Samples.

In this section

TopicDescription

Quickstart: detecting the user's location

This tutorial discusses the steps that are required to detect a user's geographical location by using the Windows Runtime Geolocation API.

Quickstart: detecting location using HTML5

This quickstart shows you how to detect a user's geographical location, by using the W3C Geolocation API available in HTML5.

How to respond to location updates

This topic explains how to respond to changes in the user's location.

How to respond to location updates using HTML5

This topic shows you how to respond to changes in the user's geographic position, using the W3C Geolocation API in HTML5.

How to adjust the distance between location updates

Some apps need location updates only when the user has moved a large distance. This topic shows you how to create an app that lets the user adjust the distance between location updates. This distance is known as the movement threshold, and is the minimum change in position required to raise a location update event. By implementing a movement threshold, you can create an app that provides only local information, like news or weather, and may not need location updates unless the user's location has changed to a different city

Guidelines for location-aware applications

This topic describes performance guidelines for building a location-aware app. It also lists the requirements your app must meet to ensure a good user experience.

 

Developer audience

You should be familiar with HTML, JavaScript, and events.

 

 

Build date: 11/29/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.