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.
Getting started by creating new windows phone application.
Double click on ‘WMAppManifest.xml’ file.(You can read here for more details.) You will find this file inside projects Properties.
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.