Reputation: 37
I want to get the geolocation by providing the locality address in windows phone app development.??//
Upvotes: 0
Views: 122
Reputation: 132
Now you can add the following Code in Map Hold event .
The point where you hold the mouse . it will show you the coordinates both longitude and lattitude.
And you can use them as a string or as a location wise any where
mapMain.Hold += (s, e) =>
{
Point p = e.GetPosition(this.mapMain);
GeoCoordinate geo = new GeoCoordinate();
geo = mapMain.ViewportPointToLocation(p);
txtBlock1.text = geo.ToString();
};
Hope It helps... :-)
Upvotes: 1