I have spoken.
That is all.
61–70 of 113 posts
I have spoken.
That is all.
http://maps.googleapis.com/maps/api/geocode/json?address=488...
Unfortunately in some cases a zipcode is in fact not enough, as it's possible for a zipcode to spread across multiple towns. However, if you have a full 9 digit zipcode then you can in fact always determine. However, even if you can't always determine this information exactly, a zipcode should be enough to pre-populate these fields for you most of the time, and in those rare cases which they don't a choice can be pre…
Thanks! I will be looking into this more. I'm aware of the 9digit zipcodes. I'll look into the USPS API. Also, I'll address the other comment below. That might answer some questions.
Would be nice to see a complete, "best-practice" implementation.
When you query for an inexistent postal code (i.e. http://zip.elevenbasetwo.com/?zip=101 ) the page returns "404" as content but the response header is "200 OK". That is inconvenient, and RESTfully wrong. UPDATE: added pull request https://github.com/gbaygon/ziptastic/commit/7284cb2e4f863161...
It has nothing to do with REST. REST != HTTP
I'm not sure if this is supposed to be USA-only or not. It seems to ask for 'country', so I assume it's aimed at the whole world. And here's where reality disagrees with your simple organisation. * First "zip code" is mostly an American term, "post code" is used in other anglosphere countries. * Not all countries have "everyone is in a city" model, this seems to happen in the USA, where 'city' is often an administrat…
The same is true in some European countries; for example, Austria is a member state of the EU, but its subnational entities (Länder in German) are conventionally called states in English also.
Each city will typically have many block extensions, and probably multiple prefixes associated to it.
doesn't google do this too? http://maps.googleapis.com/maps/api/geocode/json?address=488...
I'm not sure if this is supposed to be USA-only or not. It seems to ask for 'country', so I assume it's aimed at the whole world. And here's where reality disagrees with your simple organisation. * First "zip code" is mostly an American term, "post code" is used in other anglosphere countries. * Not all countries have "everyone is in a city" model, this seems to happen in the USA, where 'city' is often an administrat…
On the third bullet point, that's just a word with two meanings, not a country-to-country difference. The USA is also a State in that sense: it has a Department of State to handle state-to-state affairs (i.e. foreign affairs), is a Member State of the United Nations, etc. The use of the term "state" for a subnational division, roughly akin to a Canadian "province", is a different meaning with the same spelling. The s…