Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

U.S. ZIP Code 5 Plus 4 (also known as ZIP+4) Broken/Misunderstood #3324

Open
OdinVex opened this issue Feb 3, 2024 · 2 comments
Open

U.S. ZIP Code 5 Plus 4 (also known as ZIP+4) Broken/Misunderstood #3324

OdinVex opened this issue Feb 3, 2024 · 2 comments

Comments

@OdinVex
Copy link

OdinVex commented Feb 3, 2024

What did you search for?

Any address using ZIP+4 instead of ZIP. Example: https://nominatim.openstreetmap.org/ui/search.html?q=901+South+Stewart+Street%2CCARSON+CITY%2C+NEVADA+89701-5267%2CUS

What result did you get?

"No search results found"

What result did you expect?

"901 South Stewart Street, CARSON CITY, NEVADA 89701-5267,US"

Further details

The US (of America) uses ZIP and ZIP+4 codes when referring to a location. It is common practice to use ZIP, but ZIP+4 is mostly used for accelerating processing/delivery of items. You can probably offer a suggestion with the zip code converted to ZIP instead of ZIP+4 such as "901 South Stewart Street, CARSON CITY, NEVADA 89701,US"

@OdinVex OdinVex changed the title U.S. ZIP Code 5 Plus 4 (also known as ZIP+4) Broken U.S. ZIP Code 5 Plus 4 (also known as ZIP+4) Broken/Misunderstood Feb 3, 2024
@lonvia
Copy link
Member

lonvia commented Feb 5, 2024

This used to work in the PHP frontend. I dropped it in Python because it seemed such a niche application. Maybe we should find a proper solution for #1011 instead of hacking ZIP+4 codes back in.

@OdinVex
Copy link
Author

OdinVex commented Feb 5, 2024

I think it will be fine to detect zip+4 and query for both types, returning both as a single response (or a "did you mean?" response).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants