Forum Moderators: coopster
I am looking to create a system where users
can find other users within a certain radius of their zip code.
Does anyone know of a good script/etc that could help me with this? So far the best I've found is PHPZipLocator, but i'm not entirely sure how to use it.
IF someone could walk me through this, it would very much be appreciated.
Thanks,
Neil
I've managed to get everything up and running, but
it seems the zip code file i'm using is outdated/just plain not accurate.
I found this:
ht*p://www.census.gov/ftp/pub/tiger/tms/gazetteer/zcta5.zip
but, the data is in a crazy columnar format and not that easy to access. if anyone here is really good at parsing, i'd really appreciate a way to turn this file into one that just has
zip ¦ longitude ¦ latitude
(long and lat are the last 2 columns in the table... the zipcode is the first column minus the first 2 letters(the state) )
-Neil
When you do, all of the data is placed into
one column, just spaced apart- sort of like this:
A.................¦ b ¦ c ¦ d ¦ e ¦
--------------------------------------
col1 col2 col3....¦ ¦ ¦ ¦ ¦
col1 col2 col3....¦ ¦ ¦ ¦ ¦
see the file i linked to to understand better!
-Neil