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.
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
Post a Comment