First try to access your current location.
By using
Windows.Devices.Geolocation
, you can access that
async private void GetLocation()
{
var geolocator = new Geolocator();
geolocator.DesiredAccuracyInMeters = 100;
Geoposition position = await geolocator.GetGeopositionAsync();
Geocoordinate coordinate = position.Coordinate;
MessageBox.Show("Latitude = " + coordinate.Latitude + " Longitude = " + coordinate.Longitude);
}
Refer this:
https://msdn.microsoft.com/en-us/library/windows/apps/jj206956(v=vs.105).aspx[
^]
https://msdn.microsoft.com/en-us/library/windows/apps/jj735578(v=vs.105).aspx[
^]
Using GPS for Getting Location in Windows Phone 8[
^]
Now map your nearby places using your location.
BingMapsTask bingMapsTask = new BingMapsTask();
bingMapsTask.Center = new GeoCoordinate(position.Coordinate.Latitude, position.Coordinate.Longitude);
bingMapsTask.ZoomLevel = 2;
bingMapsTask.SearchTerm = "restaurant";
bingMapsTask.Show();
-KR