Detect location (HTML)

Purpose

Developers can create 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

Topic Description

Detect 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.

Respond to location updates

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

Detect location using HTML5

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

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.

Set up a geofence

This topic will guide you through the steps of setting up a Geofence in your app.

Handle geofence notifications in the foreground

This topic will guide you through the steps of handling Geofence notification in the foreground, in your app.

Listen for geofence events in the background

This topic will guide you through the steps of setting up a background task to listen for Geofence notifications in your app.

Handle geofence notifications from a background task

This topic will guide you through the steps of handling Geofence notifications from a background task, in your app.

Test and debug geofencing apps

Testing and debugging geofencing apps can be a challenge because they depend on a device's location. Here we outline several methods for testing both foreground and background geofences.