Re: Zip Code Proximity

From: Jeff Hoffmann <jeff(at)propertykey(dot)com>
To: Andy Lewis <alewis(at)recruitersonline(dot)com>, pgsql-general(at)HUB(dot)ORG
Subject: Re: Zip Code Proximity
Date: 2000-05-18 14:56:28
Message-ID: 3924049C.1D823767@propertykey.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Pierre AUSSOURD 2000-05-18 15:03:54 [ Postgres DLL for Apache/PHP Win32 ]
Previous Message Andy Lewis 2000-05-18 14:56:02 Re: Zip Code Proximity