Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Calculate distance between two zip codes


From   "Knill, April" <[email protected]>
To   <[email protected]>
Subject   st: Calculate distance between two zip codes
Date   Wed, 7 May 2008 08:09:59 -0400

Good afternoon Statalisters,
 
Does anyone have code that calculates the distance (miles or km is fine) between two locations using zip code?  I have data on zip codes which includes city, county, state, and latitude/longitude coordinates.  I have found code online that uses the longitude/latitude coordinates but it is not Stata code and I have no knowledge on how to convert or make it usable within Stata.  Other than that, there are plenty of websites that allow one to put in two zip codes and will calculate the distance but I'm looking for code that will do it for me.  Thanks in advance!
 
Best Regards,
 
April Knill

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index