Re: Zip Code Proximity - Mailing list pgsql-general

From Jeff Hoffmann
Subject Re: Zip Code Proximity
Date
Msg-id 3924049C.1D823767@propertykey.com
Whole thread Raw
In response to Zip Code Proximity  (Andy Lewis <alewis@recruitersonline.com>)
Responses Re: Zip Code Proximity  (Dustin Sallings <dustin@spy.net>)
List pgsql-general
Jeff Hoffmann wrote:

> select zip, location <@> '(lat, lon)'::box
>   from zipcodes
>  order by location <@> '(lat, lon)'::box
>  limit 10;
>

oops, typo.  those boxes should be points.  plus, it looks like you can
get zipcodes & lat-longs from the census at:

http://ftp.census.gov/geo/www/gazetteer/places.html

pgsql-general by date:

Previous
From: Jesse Estevez
Date:
Subject: Character Data Types, Why is Text Best?
Next
From: Tom Lane
Date:
Subject: Re: initdb and "exit_nicely"...