Language: HTML | XAML

Detecting geolocation (XAML)

Applies to Windows and Windows Phone

Purpose

Developers can create Windows Runtime apps that detect the user's geographic location. For example, an app 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 a user's location

This topic shows you how to detect geographic location.

How to display your location using Bing Maps

This topic shows you how to display your location using Bing Maps and then test your app with a variety of locations using the Simulator included in Microsoft Visual Studio.

How to respond to location updates

This topic shows you how to subscribe to location updates so that your app can respond to location changes.

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.

Quickstart: Setting up a geofence

This topic will guide you through the steps of setting up a Geofence in your Windows Runtime app using C++, C#, or Visual Basic.

Quickstart: Handling geofence notifications in the foreground

This topic will guide you through the steps of handling Geofence notification in the foreground, in your Windows Runtime app using C++, C#, or Visual Basic.

Quickstart: Listening 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 Windows Runtime app using C++, C#, or Visual Basic.

Quickstart: Handling geofence notifications from a background task

This topic will guide you through the steps of handling Geofence notifications from a background task, in your Windows Store app using C++, C#, or Visual Basic.

Testing and debugging 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.

 

Developer audience

You should be familiar with XAML and C#.

Related topics

Roadmap for creating apps using C#, C++, or VB

 

 

Show:
© 2014 Microsoft