3 ms·
I am from Brazil... Most programmers here assume stuff US-like in addresses. Well, and government forms even frequently require a specific style of address (S
by speeder 13y ago
I am from Brazil...
Most programmers here assume stuff US-like in addresses.
Well, and government forms even frequently require a specific style of address (Street - building number, city, state, zipcode)
But in Brasilia (Brazil capital) it already breaks.
A typical address there for example is: Building 3, Apartment 12, Block H2, Residental Section, North Wing, Brasilia
As you can see, Brasilia does not have street-based addresses, in fact most streets there are not named at all, the city was made on purpose to allow this new type of adressing that the city planners thought it was better.
Also, zipcode precision is almost random, I lived once in a building with 20 apartments that had its own zipcode, and I also lived in a city with 150.000 people that had only one zipcode, and I know a building that has has three zipcodes.
And there is zipcodes for streets, neighborhoods, and several other random things.
And the coolest feature of all: brazillian zipcodes can start with a zero, breaking every stupid database that store them as number instead of string.
Also, streets not only can have more than one name, it is possible to the post office have the WRONG name.
I lived once in a street named "Gracia Mauro Chieni", and for many years it was listed on post office as "Graça Maria Cheni"
After nagging them a lot, they fixed...
It was now: "Gracia Mauro Cherene"
And of course, sites that used the post office company API to find the zipcode worked great with the name of that street ;) (NOT)
Oh yeah, remember the street I mentioned, the one with two wrong names in the post office? Well, in the power service registry (That in Brazil is valid as address proof and some other address related things), the name of the street is "H", yes, just one letter... It was the original name of the street when it was first opened, and they never bothered to fix it in their database.
- Bognar 13y agoThere are US zip codes that start with 0 as well.
- masklinn 13y ago> And the coolest feature of all: brazillian zipcodes can start with a zero, breaking every stupid database that store them as number instead of string. Considering the number of countries with alphanumeric zipcodes, or zipcodes with interspersed signs (e.g. japan is \d{3}-\d{4})... the mind boggles.
- dasil003 13y agoYour address for Brasília looks strange to me. Typically I recall them being like: SQS 102, Bloco A, Apt 100 Brasília, DF 70000-000 That is SQS or SQN and the number indicating which wing and which section. And the Block and Building are also the same. Are there places in the city that actually require the long format you describe?
- speeder 13y agoI was using this from memory, but yes, your short form is correct.