Get location coordinates with windows phone application

Location API

You can use Windows Phone’s location API if your windows phone application needs location of user. In this post we will see how to use location API.

Let’s code

Getting started by creating new windows phone application.

CreateProject

Double click on ‘WMAppManifest.xml’ file.(You can read here for more details.) You will find this file inside projects Properties.

Capabilities

Go to Capabilities tab and then select ‘ID_CAP_LOCATION’ capability. This will tell to Windows Phone Store that this application need access to users location. While installing application user will see prompt message about the need of location service. This is the first step of get permission to access location from the user.

LocationServiceCapabilities

Continue reading Get location coordinates with windows phone application