algolia / places

:globe_with_meridians: Turn any <input> into an address autocomplete
https://community.algolia.com/places/
MIT License
5.35k stars 234 forks source link

Wrong postal code in Italy #447

Closed CloudPower97 closed 5 years ago

CloudPower97 commented 6 years ago

Hi, It seems I've found a bug regarding the suggested postal code in Italy. The current behavior is not completely wrong, in fact it recognize the correct postal code for the city but not for the various district.

For example:

It seems that's a common problem, and it seems that you are currently rewriting postcodes processing pipeline. Anyway, I think it's worth reporting, so you can check that everything is ok once the bug is fixed.

raphi commented 6 years ago

Hi @CloudPower97

Indeed this is useful to note while working on the postcodes rewrite to make sure it's working well.

Part of the issue in these cases are data coming from OSM: https://www.openstreetmap.org/search?query=Via%20Ricasoli%2C%20Firenze%2C%20FI%20#map=18/43.77542/11.25749

For the Firenze example, OSM postcode is 50123 and we use that value.

Do you have a data source that states the postcode is indeed 50122?

Thanks for contributing!

CloudPower97 commented 6 years ago

Sure, @raphi, you can check it on Google Maps. Here is the Firenze example.

You are welcome!

san4io commented 6 years ago

Well, for Lithuania some post codes are wrong too. But as i understand it's OSM's data.

raphi commented 5 years ago

Hi @CloudPower97 this issue is now fixed!