Community of VE/MapPoint Users and Developers
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 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| City and State For ZipCodes |
| ||||
| 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 |
| ||||
| 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 |
| |||
| 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 |
![]() |
| Tags |
| city, state, zipcodes |
| ||||
| 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 | |
| |
| ||||
| 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 |