Community of MapPoint and Virtual Earth Users and Developers
This is a discussion on Getting the Zip code and City when user Clicks Map within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; How can I get the city and zip code of a location where the user CLICKS on the map using ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
|
Here is how I have done it in the past: Implement the BeforeClick event of the Map object. The X and Y pixel location of where the user clicked is included in the parameters. Call the XYToLocation on the map object to convert the co-ordinates into a location. Call the FindNearby method on the location object. This will return a collection of of Location objects, one of which will likely contain the information you require. Note that the locations returned from the call to FindNearby depend on the settings of the [map].PlaceCategories collection. Hope this helps. |
![]() |
| Tags |
| city, clicks, code, map, user, zip |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Locate City and zip code using lat and long (Excel Macro) | sberhe | Wish List | 0 | 04-01-2005 09:31 AM |
| How to get alll zip code of one city | confach | MapPoint 2006/2009 Discussion | 6 | 03-14-2005 02:30 AM |
| Having problems retrieving city name from Zip Code | Anonymous | MapPoint 2006/2009 Discussion | 0 | 11-18-2004 02:22 PM |
| Is it possible to enter a City or Zip Code, and re.... | Anonymous | MapPoint 2006/2009 Discussion | 3 | 06-04-2002 04:42 PM |
| When the user clicks on the MP2K map, the 'Select .... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 08-11-2001 04:19 AM |
Antalya Holiday
Check out the Antalya holiday options through UlookUbook and find amazing offers that suit your pocket...