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

Some Reverse Geocode Nominatim API results does not include city, town or village - Example: Katy, USA #3621

Open
janitdevelopers opened this issue Dec 29, 2024 · 4 comments

Comments

@janitdevelopers
Copy link

janitdevelopers commented Dec 29, 2024

I have noticed that Nominatim API does not return any value for City, Town, or Village in some places like Katy and Fulshear in Texas US. However, these Cities are well defined in the system.

Example of Response with Issue.

Example 1 : Katy
APIs
https://nominatim.openstreetmap.org/reverse?format=geojson&lat=29.68214&lon=-95.90450
https://nominatim.openstreetmap.org/reverse?format=geojson&lat=29.82084&lon=-95.77044

Result: Platinum Inn, Peek Road, Harris County, Texas, 77493, United States
Expected Result: Platinum Inn, Peek Road, Katy, Harris County, Texas, 77493, United States

Example 2 : Fulshear
APIs
https://nominatim.openstreetmap.org/reverse?format=geojson&lat=29.68214&lon=-95.90450
https://nominatim.openstreetmap.org/ui/reverse.html?lat=29.68214&lon=-95.90450&zoom=18

Result: 5372, Streamside Trail, Fort Bend County, Texas, 77441, United States
Expected Result: Streamside Trail, Fulshear, Fort Bend County, Texas, 77441, United States

Example 3: Houston - This has correct result with city included.

APIs
https://nominatim.openstreetmap.org/reverse?format=geojson&lat=29.71593&lon=-95.61287
https://nominatim.openstreetmap.org/ui/reverse.html?lat=29.71593&lon=-95.61287&zoom=18

Result: 4023, Rose Mary Bend, Ashford Point, Houston, Harris County, Texas, 77082, United States
Expected Result: 4023, Rose Mary Bend, Ashford Point, Houston, Harris County, Texas, 77082, United States

@mtmail
Copy link
Collaborator

mtmail commented Dec 29, 2024

The address lookup is too literal. It uses the exact legal boundaries of Houston, not what people living there think how big Houston is. #1120 (comment)

image

Fulshear is similar https://www.openstreetmap.org/relation/6586782

@janitdevelopers
Copy link
Author

janitdevelopers commented Dec 29, 2024

@mtmail , Thank you for your response. My concern isn't related to the boundaries themselves. The issue is that the Nominatim API responses for Katy and Fulshear do not include values for the city field, unlike Houston. However, Nominatim does have the correct boundaries for all three cities. See the example API calls and responses I provided.

Example 1 : Katy --> City boundaries exist, but API response does not have value for city.

API
https://nominatim.openstreetmap.org/ui/reverse.html?lat=29.82084&lon=-95.77044&zoom=18

No Value for Katy City

Expected Response: Platinum Inn, Peek Road, Katy, Harris County, Texas, 77493, United States
Actual Response: Platinum Inn, Peek Road, Harris County, Texas, 77493, United States ----->Missing City = Katy

Example 2 : Fulshear--> City boundaries exist, but API response does not have value for city.

API
https://nominatim.openstreetmap.org/reverse?format=geojson&lat=29.68214&lon=-95.90450

No Value for Fulshear City

Example 3: Houston ---> This has the correct reponse with City =Houston included.

APIs
https://nominatim.openstreetmap.org/reverse?format=geojson&lat=29.71593&lon=-95.61287
https://nominatim.openstreetmap.org/ui/reverse.html?lat=29.71593&lon=-95.61287&zoom=18

Actual Response: 4023, Rose Mary Bend, Ashford Point, Houston, Harris County, Texas, 77082, United States
Expected Response: 4023, Rose Mary Bend, Ashford Point, Houston, Harris County, Texas, 77082, United States

@mtmail
Copy link
Collaborator

mtmail commented Dec 29, 2024

I hope the additional map screenshots make the issue clearer. Nominatim uses the city boundaries but the coordinates are not inside the boundaries. It's the same issue as #1120 where Nominatim should essentially be more flexible in matching.

image

image

@janitdevelopers
Copy link
Author

@mtmail, Thanks again. I see what you mean. My concern now would be how it is that these coordinates do not map to any City, Town, Village, or neighborhood.

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