How to get address from Lat/Long?

chance1166
01-16-2008, 07:35 AM
I need some c# code to get an address from a Lat/Long. I have already tried the mechanism used in the book Programming MapPoint in .NET. This works but we can't use it due to the zooming in mechanism that it uses. Can anyone suggest an alternate algorithm?

tia,
chance.

Wilfried
01-18-2008, 02:01 AM
Hi,

Something like this:
Location loc = map.GetLocation(lat, lon, 1);
loc.GoTo();
FindResults streetResults = map.ObjectsFromPoint(map.LocationToX(loc), map.LocationToY(loc));
foreach (object o in streetResults) {
...

 
Web mp2kmag.com
mapforums.com