spacer1
spacer2 1_1 1_2
2_1
 Subscribe
 The MP2K Update!
 
 
 
 Magazine
Front Cover
What's New
Articles
News
Sample Data
Gallery
Advertise
About
 Features
MapPoint 2013
Press Releases
MapPoint Forums
Companies
Link to MP2Kmag
Wish List
MapPoint Trial
Authors
 Earlier Content
Past News Items
Past What's New Announcements
 Sponsors
 Order

MapPoint 2013

Programming MapPoint in .NET

MapPoint Book

  Spatial Community
SVG Tutorials
MapPoint

Map Visitors

  MAPPOINT Q & A  

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


Google
 
MP2Kmag Internet


 Recent Discussion
 Resources


Want Your Site To Appear Here?

   © 1999-2012 MP2K. Questions and comments to: website@mp2kmag.com
  Microsoft and MapPoint 2002/2004/2006/2009/2010/2011/2013 are either trademarks or registered trademarks of Microsoft.