MapPoint Forums

MapForums

Community of VE/MapPoint 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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #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


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 01:28 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map

Gatwick Flights
Find out key information about Gatwick airport on Holiday Hypermarket. We can help book great value flights to and from Gatwick as well.

Italy Holidays
Find and book Italy Holidays with Travel Counsellors. Holiday destinations around the world including Italy.

Flights Canada
Our search results will show you a selection of airlines, travel agents and tour operators offering cheap flights to Canada. See for yourself who has the cheapest deals.

Bahamas Holidays
Bahamas Holidays offer pure blue skies, soft white beaches and the holiday of a lifetime. Visit us for a great deal to the Bahamas.

Cyprus
Before visiting Cyprus, make sure you are well informed to make the most of your holiday. Online at ulookubook.com you check out our useful travel guides. Find out all about the Cyprus nightlife, shopping, eating and customs.

Holiday
For the holiday of your life, that is easy to plan, visit Travel.co.uk to see all the options.

Goa Holidays
Enjoy the warm and sunny climate of Western India. Visit On The Beach for information on Goa holidays.


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