Leave leading 0's in US housenumbers #524
Comments
Could #651 be related to this? Not house number but postal code gets stripped of leading "0" in search. |
It's possible that this is related. note: we also have an elasticsearch token filter named removeAllZeroNumericPrefix which also strips leading zeros:
|
Well, that's quite unfortunate but Pelias finds some postal codes with leading zeros, for example searching for "07-300" returns 07300, Saint-Barthelemy-Le-Plain, France: https://mapzen.com/search/explorer/?query=search&text=07-300 and https://mapzen.com/search/explorer/?query=search/structured&postalcode=07-300 What's missing is "07-300" postal code http://www.geonames.org/postalcode-search.html?q=07-300&country= |
Yes, it seemed logical from the mathematical perspective that additional preceding 0's have no semantic value. It turns out, although uncommon, that some countries and cities assign a semantic value to additional zeros, treating them more like strings than numbers. Some work will need to be done to remove the 0 trimming code and test the effect of that change internationally. |
It's not that uncommon, at least in Poland. Country capital has "00-" to "04-", and some "05-". |
@zgoda let's not conflate the street number and postalcode issues, I don't believe we strip 0's from postalcodes. |
OK, so I assume this is not related. Thank you. |
This was fixed in pelias/openaddresses#310 |
We started removing these leading 0's a while back, but it looks like that may have been a bad idea because our friends in Portland just reported the following issue.
The text was updated successfully, but these errors were encountered: