geolocation - How to get address from latitude and longitude values in windows phone? -


i want full address of particular place, have longitude , latitude values.

how convert address, using terra, times it's throw error like.

an exception of type 'system.servicemodel.communicationexception' occurred in system.servicemodel.ni.dll , wasn't handled before managed/native boundary

and application crashed.

my code

 try         {             _watcher = new geocoordinatewatcher();              _watcher.positionchanged += _watcher_positionchanged;             _watcher.start();         }         catch (exception ex)         {             messagebox.show(ex.message);         }  void _watcher_positionchanged(object sender, geopositionchangedeventargs<geocoordinate> e)     {         latitude = e.position.location.latitude;         longitude = e.position.location.longitude;         //messagebox.show("latitude & longtitude:" + latitude + "  " + longitude);          client.convertlonlatpttonearestplaceasync(new servicereference1.lonlatpt { lat = latitude, lon = longitude });     }      void client_convertlonlatpttonearestplacecompleted(object sender, convertlonlatpttonearestplacecompletedeventargs e)     {              captured_address.text = e.result;     } 

how solve it. please me.

in windows phone 7 can use rest location api bing. see:

find location point


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -