pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Geographic DB
2+ messages / 1 participants
[nested] [flat]

* Geographic DB
@ 2005-11-17 17:37 PaulD <pauldacus@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: PaulD @ 2005-11-17 17:37 UTC (permalink / raw)
  To: pgsql-sql

Hi,

I actually implemented something in PHP/mySQL that is a DB of latitudes
& longitudes and zipcodes.  The formula computes distance 'as the crow
flies' using the radius of the Earth between 2 zipcodes, etc.  It's

here:

http://www.deschuteshay.com/distance/ziptest1.php

I wish I could remember where I got this data... maybe
hotscripts.com <http://hotscripts.com/;?
If needed, I can gzip a mysql dump... I'll leave the PG conversion to
you :-)  Very simple though... only 3 fields!

Tell me if you'd like... maybe I'll post a download link to a page.

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Geographic DB
@ 2005-11-17 18:40 PaulD <pauldacus@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: PaulD @ 2005-11-17 18:40 UTC (permalink / raw)
  To: pgsql-sql

Having been asked, I posted a mySQL dump of latitude, longitude and zip
codes for the US. I've also included a PHP zipcode computational piece of
code, a DB manager, and the page itself.... all in GZIP format. Instructions
are on the page.

P.S. I can't possibly help you if you're having problems! Unzip it all, put
the dump into mySQL, edit the db.inc file (username/pwd/host/db_name), run
the ziptest1.php script, and if it works GREAT! If it doesn't... you'll have
a new opportunity to learn! I would never want to take that away from you
:-) It works for me, so if it doesn't work for you, I probably can't fix it.


Paul Dacus

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2005-11-17 18:40 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-11-17 17:37 Geographic DB PaulD <pauldacus@gmail.com>
2005-11-17 18:40 Geographic DB PaulD <pauldacus@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox