Top |
Post New Question |
Read All |
MP2K Asks Microsoft
399
Eric Packwood
-
September 13, 2001
I was wondering if there was any direct method to do reverse geocoding. I have a lat/long and need to get a block address from it, but i haven't been able to find a clear way of doing this. Is there any code out there to show me what I need to do?
Answer:
The snippet below (meant to be used with MapPoint 2002) demonstrates a way
how it can done.
It creates a location using given lat and lon, and uses the
ObjectsFromPoint method of the map object to retrieve a FindResults
collection. It then outputs the name of the first (and usually best) hit:
More details and another sample can be found in the documentation of the
FindResults object - you'll probably want to check results quality,
retrieve alternative hits , and retrieve additional info about the found
locations. Note that this is not guaranteed to get you a street address.
Post New Answer / Follow-up