reverse geocoding - does windows phone API have geocoder? -


how transform geo coordinate address in windows phone? in android possible via android.location.geocoder.

this should definetly going :) made extract blog @ botton of message know if for.

http://www.dizzey.com/development/net/getting-started-windows-phone-7-getting-location-reverse-geocoding-weather/


get system.device.dll holds geocode api.

//instantiate  geocoordinatewatcher watcher = null; watcher = new geocoordinatewatcher(geopositionaccuracy.default); watcher.positionchanged +=      new eventhandler<geopositionchangedeventargs<geocoordinate>>(onpositionchanged); watcher.start();  //use void onpositionchanged(object sender, geopositionchangedeventargs<geocoordinate> e)     {     //stop & clean up, don’t need anymore     watcher.stop();     watcher.dispose();     watcher = null;        location = e.position.location; } 

and geocoding:

var reversegeocoderequest = new reversegeocoderequest();  // set credentials using valid bing maps key reversegeocoderequest.credentials = new bingmaps.credentials();     reversegeocoderequest.credentials.applicationid = "enter bing maps key here";  // set point use find matching address     bingmaps.location point = new bingmaps.location(); point.latitude = location.latitude; point.longitude = location.longitude;  reversegeocoderequest.location = point;  // make reverse geocode request geocodeserviceclient geocodeservice = new       geocodeserviceclient("basichttpbinding_igeocodeservice");  geocodeservice.reversegeocodecompleted += new     eventhandler<reversegeocodecompletedeventargs>         (geocodeservice_reversegeocodecompleted);  geocodeservice.reversegeocodeasync(reversegeocoderequest); 

Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -