Postal codes aren't returned anymore
See original GitHub issueDo you want to request a feature or report a bug? Bug
What is the current behavior? The API used to return postal code information, however, since a couple of hours, it doesn’t anymore.
If the current behavior is a bug, please provide all the steps to reproduce and a minimal
JSFiddle example or a repository on GitHub that we can npm install
and npm start
.
- Type an address in the example page.
- Look at the API output, the postal code isn’t returned anymore.
What is the expected behavior? Postal code should be returned, it’s a very important part of an address.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:7
- Comments:11 (2 by maintainers)
Top Results From Across the Web
How to shop online if you don't have a postal code ... - Quora
If you dont have a postal code where you live, then go to the local/county EMA office and ask them for an address...
Read more >507 Mailer Services | Postal Explorer
The service type code in the Intelligent Mail barcode will take precedence over ... Pieces endorsed “Change Service Requested” are not returned to...
Read more >What's a credit card postal code? - WalletHub
A credit card postal code is the ZIP code associated with a credit card's ... Credit card postal codes aren't the most complex...
Read more >Where's My Mail? | USPS Office of Inspector General
My zip code is 60803, our post office is the Mt. Greenwood post office, we have not had mail delivery since May 5th...
Read more >No more 'return to sender?' Latin American countries move to ...
In many parts of Latin America, these are not just the directions you ... Efforts to name streets and introduce postal codes in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks everyone for the reports.
Issues with the data present in Places can arise in two locations:
I have investigated each address that was provided in this thread, and I will try to answer what might be causing the issue for each of them.
Calabasas, CA
Calabasas, CA
does not have postcode data in OSM. Geonames does have data aboutCalabasas, CA
but there was a change in its status last year (moved from PPL - populated place - to PPLX - section of populated place).We do not rely on PPLX because there is too much outdated data in this type of records in Geonames, and the decomposition of PPLX is unclear with it sometimes being suburbs, general areas known by a name, etc. We do not plan on supporting PPLX type of data in our Geonames processing pipeline.
How to fix
226 rue St-Joseph E
226 rue St-Joseph E
does not have postcode data in OSM. Geonames dataset only covers cities and is not applicable to this situation. Based on the data available in the OSM snapshot, we could not derive a postcode for this street. This can happen if nearby features in OSM changed in notable ways. I checked the data processed for our next release and it seems that we should be able to derive a postcode for this street.How to fix
Volgograd
Volgograd
does not have postcode data in OSM, nor in GeonamesHow to fix
Ciudad de Mexico
Ciudad de Mexico
is a very large city, and spans many postcodes areas. Because of that, the OSM format is not suited to hold postcode information, as OSM features can only have oneaddr:postcode
attribute. Therefore the OSM data does not have postcode data. To compensate for that, we leverage Geonames in this situation as Geonames cities can have multiple postcodes. Unfortunately Geonames does not have postcode data for the city of Mexico.How to fix
Guadalajara
Guadalajara
does not have postcode data in OSM, nor in Geonames. However, in this specific case, a recent update to the boundaries of the city in OpenStreetMap and the type of record used to define the city in OpenStreetMap make it so that we can have a computed postcode for this city in the next planet update that we do. Unfortunately, the change of boundaries happened after the OpenStreetMap data import that is currently reflected in Places, so the postcode could not be computed.How to fix
We do not know why some postcodes disappeared from OSM in that specific snapshot, but we can confirm that some are back in the latest snapshot we have.
There can be many thousands of updates between different snapshots, with very subtle changes that can have large impacts, and we do not have the bandwidth to ensure that values stay consistent at the attribute level for every address on the planet between different snapshots, and we therefore rely on testing a reasonable number of addresses, which we can extend with new problematic addresses.
If you have any additional example of problematic addresses, don’t hesitate to share them with us in this thread.
Hi everyone 👋
FYI following all of your comments, we decided to rollback to the previous data.
In the meantime, we will investigate why we lost some postcodes during the processing phase and will release a new version once fixed.
We are really sorry for the inconvenience, we will make sure to catch up such problems before update our data next time 🙏
Will keep you up when the next version is available.