Show HN: ZipLocate, a free API for zip code geolocation
ziplocate.us
ziplocate.us
Imagine honing in on familiar areas simply by typing the first few digits of a zip code—type “9” to immediately zoom into the US west coast, followed by “4” to zoom into the SF bay area and then “5” for the east bay. Because of the immediate feedback, the user can stop typing when she gets close enough, and use relative navigation from there.
I coded up an example a little while ago (http://andrewcou.ch/zip-to-it/).
Not sure what would be more performant, REST or a websocket. Not doing anything would be the fastest, though!
ga('send', 'event', 'input', 'search', 'zip', zipCode);If it were integrated with zipcode boundary information as this [ http://www.usnaviguide.com/zip.htm ] site does with google maps, it would be pretty awesome.
http://catalog.data.gov/dataset/tiger-line-shapefile-2013-20...
That being said, zip+4 is a bigger DB. Although, I have heard those last four digits are meaningless.
That is to say, going the other way is a bit more computationally intensive.
https://www.dailycred.com/api/info.json
A few of our clients needed this, so we just made it open to everyone.
It's based on GeoIP and ua-parser.
we aggregate OSM, Datascience tool kit, geonames, and more. All feedback welcome
The website says that it's very lightweight (everything stored in memory) and currently running on a low cost server.
Download a copy now and save it just in case, if your business really depends on it then it would be better to host yourself anyways.
One thing I don't get, is why you're not using the zip code as the primary key (or have any other sort of index on it). The id isn't even used as far as I can tell. Is it just blazingly fast enough as it is?
Like disdev, I always use an auto-incrementing id, but you're right that the index should be on the zip code instead of the id.
Here's a 44 line node script to exercise it with:
$ wget https://raw.githubusercontent.com/johnnylambada/commandline-...
$ chmod a+x ziplocate
$ ./ziplocate ll -z 90210
latitude : 34.0908301410233
longitude: -118.409045888318
http://www.ordnancesurvey.co.uk/business-and-government/prod...
This is a real shame as people had to campaign for years before the data was made freely available to begin with.[1]
Hopefully though, as long as the government still holds a large stake, we'll at least have Code Point. The Royal Mail also offer some developer options[2]
[0] http://www.bbc.co.uk/news/business-26605375
[1] http://www.theguardian.com/technology/2009/jul/22/free-our-d...
which uses browser location finding to tell you what postcode you are in (more or less). If you'd be interested, I have a beta API which will return full postcode info based on latitude/longitude; it's kind of beta, but I'd be happy to provide access if you need it.
I'm not saying they don't exist, but I'm not sure I've ever seen one.
The US-based organizations using the term "zip code" for non-US addresses are doing so either out of ignorance or expediency, since fitting "zip/postal code" into a space is sometimes not possible.
That doesn't make it correct, and I don't believe that some peoples unequivocally wrong usage of a term should oblige other people to qualify their correct and unambiguous usage of it.
As a recent example, see KanbanFlow for example https://sites.fastspring.com/kanbanflow/order/customer
The "Zip code" input field is simply hard coded for every country.