Community of MapPoint and Bing Maps Users and Developers
This is a discussion on Export Zip Codes Along A Route within the MapPoint Desktop Discussion forums, part of the Map Forums category; Here is what we would like to do: Use the route planner to generate a route as well as a ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Export Zip Codes Along A Route Use the route planner to generate a route as well as a boundary around that route. Let's say the route would be from Boston to New York and we want to have a 25 mile boundary along that route. Now, I want to export all zip codes that either fall within that boundary or cross that boundary. The catch is, I don't want this from data I've already imported, I just want the standard zip codes already in MapPoint. |
| |||
| Re: Export Zip Codes Along A Route
Hi, Programatically this is possible. You make a shape around the route and get all zip code.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz www.comfortsoftware.be MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: Export Zip Codes Along A Route
Wilfried, is it possible to give some general guidance on how you would draw up a shape like this along a route using code. I had a similar issue a few months back and couldn’t come up with a solution so I ended up drawing free form sausage shapes!! The other idea I had was to set waypoints at small intervals along the route and then find postcode (zip) centroids within 25km of each one but again I couldn’t figure out how to add in the waypoints. Rgds |
| ||||
| Re: Export Zip Codes Along A Route
Depends on how accurate and how bendy the roads are! You need some locations along the route. The individual directions have locations but these are for views of that particular direction. These might be good enough but there's no guarantee that they'll actually be on the road route. The alternative would be to set the route to "shortest distance" and add lots of rest stops (every few minutes). Then extract the locations for each rest stop. These will be on the route. Then you use some geometry to find two points on each side of these central points. Then connect up into a polygon. You will need to code the geometry yourself - finding the normal to the route is probably a good start, then project outwards.
__________________ Winwaed Software Technology LLC http://www.winwaed.com See http://www.mapping-tools.com for MapPoint Tools See the Geoweb Guru for online mapping |
| |||
| Re: Export Zip Codes Along A Route
I did try the ‘rest stops at tiny intervals’ strategy, with the idea being to identify each postcode sector centroid within 25km of a rest stop and then sift out duplicates. If I recall rightly what happened, on motorways and fast dual-carriageways the rest stops become much further apart because of the scarcity of junctions and when you plot the results the sausage gets very narrow along these stretches!! |
| |||
| Re: Export Zip Codes Along A Route
Hi, I think the thechnique that Richard describes is the best one to go
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz www.comfortsoftware.be MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: Export Zip Codes Along A Route
This is a bit academic but another question. If you calculate a route from A to B and then trace that route with the scribble or freeform tool, is it possible to work out latitude and longitudes for points along that line, say at 1km intervals. I can see how that would then be a basis for drawing an accurate shape around the route and calculating zips. |
| |||
| Re: Export Zip Codes Along A Route
I’ve just realised that it’s possible to draw the sausage shape along a route by using Find Nearby on the route. Therefore it must be straightforward with some code to output all the zip centroids falling into the shape. |
| |||
| Re: Export Zip Codes Along A Route
Hi David, I thought that this was the problem: " The catch is, I don't want this from data I've already imported, I just want the standard zip codes already in MapPoint." Mike Mattys |
| ||||
| Re: Export Zip Codes Along A Route
davidb: If there is a long distance between two points, then why not simply interpolate between the two points? To do it properly, you should interpolate along a great circle arc, but for the tens of miles at a 'temperate' latitude (doesn't work for polar regions!) that I think we're talking about, then a simple linear interpolation should be okay.
__________________ Winwaed Software Technology LLC http://www.winwaed.com See http://www.mapping-tools.com for MapPoint Tools See the Geoweb Guru for online mapping |
![]() |
| Tags |
| codes, export, route, zip |
| ||||
| Posted By | For | Type | Date | |
| Export Nearby Places List to Excel - MAP POINT 2009 - microsoft.public.mappoint | Google Groups | This thread | Refback | 08-12-2009 02:09 PM | |
| Export Nearby Places List to Excel - MAP POINT 2009 - microsoft.public.mappoint | Google Groups | This thread | Refback | 07-20-2009 08:50 PM | |
| MapPoint 2009 — Covering the latest version of the MapPoint Desktop Product - MapPoint 2009. | This thread | Refback | 07-06-2009 11:34 PM | |
| MapPoint For Dummies - MP2K Magazine | This thread | Refback | 07-06-2009 08:47 AM | |
| The Magazine for MapPoint - MP2K Magazine | This thread | Refback | 07-06-2009 04:42 AM | |
| Alltop - Top Geography News | This thread | Refback | 07-02-2009 04:29 PM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Does MapPoint 2006 export Zip Codes to Excel (if territories are counties)? | SentryEquip | MapPoint Desktop Discussion | 0 | 06-25-2008 03:41 PM |
| Draw shape, select zip codes and export to SQL | mmartin | MapPoint Desktop Discussion | 2 | 04-02-2007 05:24 PM |
| Export Zip Codes To Excel | JimS | MapPoint Desktop Discussion | 4 | 01-24-2006 02:46 PM |
| Export Zip Codes to Excel Problem | Anonymous | MapPoint Desktop Discussion | 0 | 11-09-2004 05:24 PM |
| Find and Export of ZIP Codes | Anonymous | Wish List | 1 | 01-16-2003 07:22 PM |