MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




City and State For ZipCodes

This is a discussion on City and State For ZipCodes within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am using mappoint 2006 on excel vba and I am able to calculate distance between two zipcodes by adding ...


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

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



Click here to register

Reply

 

LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 09-01-2008
Junior Member
White Belt
 
Join Date: Sep 2008
Posts: 5
City and State For ZipCodes

I am using mappoint 2006 on excel vba and I am able to calculate distance between two zipcodes by adding vba codes to exccel but what I am not able to do is to find "city and state" on given zipcodes. Basically I want to be able by entering zipcodes into excel cells, "city and state" affliated with that zipcodes shows up into anther cell just like "distance" doses. Anybody knows the codes for this?
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 09-02-2008
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 893
Blog Entries: 10
Re: City and State For ZipCodes

How would your code behave if it has a zipcode that contains multiple cities?


Richard
__________________
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 09-02-2008
Junior Member
White Belt
 
Join Date: Sep 2008
Posts: 5
Re: City and State For ZipCodes

I thought zipcode only refer to one city...I have never seen same zipcode for two different cities. If there is such thing, maybe code will pick the main city or the city is bigger..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 09-02-2008
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 893
Blog Entries: 10
Re: City and State For ZipCodes

In rural areas, zipcodes can cover large areas and the US has a tendency to use the name "city" for the smallest little settlement!

I think you're going to have problems getting a city, zip from MapPoint. You would be better off with a database from someone like the USPS. With MapPoint you might be able to code something to find a close point, but it might not do what you want - eg. pick up a neighbouring city.


Richard
__________________
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 09-02-2008
Junior Member
White Belt
 
Join Date: Sep 2008
Posts: 5
Re: City and State For ZipCodes

That's ok to me because I only use this mainly for one state or more..so it doesn't have to be all accurate..plus I have got my own idea for that.So, my only problem here is to be able associate city and state with given zipcodes. or other way around mybe when I give "city and state" mappoint would find zip code. Do you know any code for that? Thanks per your info this is code I'am using right now:

private Sub CommandButton1_Click()
Dim oApp As MapPoint.Application

Set oApp = CreateObject("MapPoint.Application.NA.13")
oApp.Visible = True
Set objMap = oApp.NewMap
Set objRoute = objMap.ActiveRoute

szZip1 = Worksheets("Car").Cells(5, 2)
szZip2 = Worksheets("Car").Cells(6, 2)

'Add route stops and calculate the route
objRoute.Waypoints.Add objMap.FindResults(szZip1).Item(1)
objRoute.Waypoints.Add objMap.FindResults(szZip2).Item(1)
objRoute.Calculate

Worksheets("Car").Cells(7, 3) = objRoute.Distance

Dim objApp As MapPoint.Application

objMap.Saved = True

objMap.Saved = True
End Sub
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, state, zipcodes


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/city-state-zipcodes-8382.html

Posted By For Type Date
Using Geographic Codes to Import Data into MapPoint 2004 - MapPoint Articles - MP2K Magazine This thread Refback 09-02-2008 08:14 AM

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
Location & FindResults not always returning City/State/etc.? OOT MapPoint 2006/2009 Discussion 3 05-07-2008 03:58 PM
How do you find the territory for a given city and state UncleJaz MapPoint 2006/2009 Discussion 0 04-05-2006 11:50 AM
Removing City and State Names from a data map klkrueg MapPoint 2006/2009 Discussion 1 06-07-2005 06:59 AM
Validating City/State Names jbendiner MapPoint 2006/2009 Discussion 2 08-06-2004 03:33 PM
City, State and Country info for a loc found using lat/lng lavend MapPoint 2006/2009 Discussion 0 04-28-2004 03:17 PM


All times are GMT -5. The time now is 02:08 PM.


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


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