Skip to content

Fix geocoder endpoint used by location search#905

Open
arpitjain099 wants to merge 1 commit into
NASAWorldWind:developfrom
arpitjain099:fix/nominatim-search-endpoint
Open

Fix geocoder endpoint used by location search#905
arpitjain099 wants to merge 1 commit into
NASAWorldWind:developfrom
arpitjain099:fix/nominatim-search-endpoint

Conversation

@arpitjain099

@arpitjain099 arpitjain099 commented Jun 18, 2026

Copy link
Copy Markdown

Description of the Change\nSwitch NominatimGeocoder to the current OpenStreetMap Nominatim endpoint and build request URLs with encodeURIComponent. I also made the API key optional so custom services can still pass one when needed.\n\nAdded unit coverage for URL generation and callback behavior in test/util/NominatimGeocoder.test.js.\n\n### Why Should This Be In Core?\nThe current default endpoint points to open.mapquestapi.com, which no longer resolves. That makes text searches in the GoToLocation example look broken because the geocoder request never succeeds.\n\n### Benefits\n- Restores working location search for place names\n- Properly encodes full user queries\n- Keeps optional key support for alternate geocoder services\n- Adds regression tests around the request URL and callback handling\n\n### Potential Drawbacks\nThe default geocoder backend changes from MapQuest-hosted Nominatim to OpenStreetMap Nominatim.\n\n### Applicable Issues\nFixes #897

Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant