GeoDecoding

zanabonir
09-05-2007, 04:57 AM
Hello,

I have the latitude and longitude of a position. I need to get the nearest street for that point
whit Mappoint 2006.
Does anyone have VisualBasic examples.

Thanks in advance

Eric Frost
09-05-2007, 06:19 PM
Yes, definitely. Search this forum for "reverse geocoding", this is discussed frequently..

Eric

JoeBo
09-08-2007, 02:00 AM
Hi Zanabonir

I posted a similar question a short while ago and was pointed towards Walt Cygan's excellent code. I found that it was accurate in finding a place name for the location on most occasions. I added another loop to the code which adjusts increments the altitude by 10 miles if a location is not found and passes through the code again. This has been successful with all the data I have passed to the routine.

The code is in the attachment. The example works with an SQL table on the local machine, but it will work with any data source. The sample is written in vb.net




Regards
Joe

 
Web mp2kmag.com
mapforums.com