geolocation - How to convert longitude and latitude value to address in windows phone? -


this question has answer here:

i latitude , longitude value using

 void _watcher_positionchanged(object sender, geopositionchangedeventargs<geocoordinate> e)     {               latitude = e.position.location.latitude;             longitude = e.position.location.longitude;             messagebox.show("latitude & longitude:" + latitude + "  " + longitude);     } 

result like: latitude & longitude: 12.56 77.34

now want these value relevant address. possible. please give brief explanation. in advance.

in windows phone 8 can using integrated reversegeocodequery class. example:

string address; reversegeocodequery query = new reversegeocodequery(); query.geocoordinate = new geocoordinate(12.56, 77.34); query.querycompleted += (s, e) =>    {         if (e.error != null)             return;          address = e.result[0].information.address.street;     }; query.queryasync(); 

as simple that.

for windows phone 7, however, need use bing services.


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 -