MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Getting the Zip code and City when user Clicks Map

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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-20-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Getting the Zip code and City when user Clicks Map

How can I get the city and zip code of a location where the user CLICKS on the map using Map Point and VB????

Thank you!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 01-21-2005
Junior Member
White Belt
 
Join Date: Jan 2005
Posts: 3
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
city, clicks, code, map, user, zip


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

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


All times are GMT -5. The time now is 08:29 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Antalya Holiday
Check out the Antalya holiday options through UlookUbook and find amazing offers that suit your pocket...



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59