MapPoint Forums

MapForums

Community of MapPoint and Bing Maps Users and Developers




Straight Line Distance Between Zip Codes

This is a discussion on Straight Line Distance Between Zip Codes within the MapForums Plus Downloads forums, part of the MapForums Plus category; Here's a little Access database for calculating the straight line distance between zip codes. It uses MapPoint to get the ...


Go Back   MapPoint Forums > MapForums Plus > MapForums Plus Downloads

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-08-2009
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 3,420
Blog Entries: 3
Straight Line Distance Between Zip Codes

Here's a little Access database for calculating the straight line distance between zip codes. It uses MapPoint to get the lat/lon (geocode) of the zip code. It just puts in 0 if it can't find the zip code. Also, there is a routine to try to standardize the zip code and it writes the formatted zip code back into the original table.

Your database must be placed in a table called ZipCodeList with columns ZipA, ZipB, and StraightLineDistance.

There is a macro "Run Program" which kicks off the code.

See screenshots of the sample data before and after the program is run.

Let me know if you would like help with this or have any questions!

Eric
Attached Images
File Type: gif Zip_Code_Distance_afterrunning.gif (8.6 KB, 4 views)
File Type: gif Zip_Code_Distance_beforerunning.gif (7.6 KB, 3 views)
Attached Files
File Type: zip Straight Line Distance Between Zip Codes.zip (17.7 KB, 4 views)
__________________
~ Now taking orders for MapPoint 2010 ~
~~
~ Upgrade to MapForums Plus membership ~

Last edited by Eric Frost; 05-10-2009 at 02:01 PM..
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 05-10-2009
Junior Member
White Belt
 
Join Date: Apr 2009
Posts: 4
Re: Straight Line Distance Between Zip Codes

Eric, this is a great little program and does exactly what I need. Thanks so much for your help on this problem.

flystol
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 05-10-2009
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 3,420
Blog Entries: 3
Re: Straight Line Distance Between Zip Codes

Ah - awesome. I was afraid it's a little specific in terms of general needs in the MapPoint Community to add to our Downloads section...

I can think of lots of slight variations that would require only minor code changes. If any other MapForums Plus subscriber needs something similar let me know know and I'll take a stab!

Happy Mothers Day!

Eric
__________________
~ Now taking orders for MapPoint 2010 ~
~~
~ Upgrade to MapForums Plus membership ~
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
codes, distance, line, straight, 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
Distance between post codes nick72blue MapPoint Desktop Discussion 6 3 Weeks Ago 05:56 AM
How to get distance by zip codes data? Catkins MapPoint Desktop Discussion 1 09-18-2007 05:33 AM
calculate straight line distance frizzello MapPoint Desktop Discussion 2 12-14-2006 01:58 PM
Narrowing down lists with zip codes/distance nicholali MapPoint Desktop Discussion 1 11-10-2006 11:15 AM
Points in a straight line Dazzer MapPoint Desktop Discussion 6 05-25-2004 12:27 PM


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


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
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 55 56 57 58 59 60 61 62 63 64 65 66 67