[Tutor] Geolocating objects

Terry Carroll carroll at tjc.com
Mon Feb 12 01:19:45 CET 2007


On Sat, 10 Feb 2007, anil maran wrote:

> i m trying to use python to find the proximity of a person using lat
> long gps and zipcodes. 

A google search on "distance latitude longitude" will find you a number of 
pages with the math you need to determine distance, if you know latitude 
and longitude.

http://mathforum.org/library/drmath/sets/select/dm_lat_long.html has links 
to a few different pages explaining.  Another is at 
http://www.movable-type.co.uk/scripts/LatLong.html .

To go from zip codes to latitude and longitude: I vaguely remember that 
the U.S. Census Bureau had a humongous file with that data.  Ah, here you 
go: http://www.census.gov/geo/www/gazetteer/places2k.html

Good luck!



More information about the Tutor mailing list