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

Add Setting for Nominatim Country Code #912

Open
northshorenature opened this issue Jan 3, 2023 · 0 comments
Open

Add Setting for Nominatim Country Code #912

northshorenature opened this issue Jan 3, 2023 · 0 comments

Comments

@northshorenature
Copy link

I was wanting the search widget to be able to find US zip codes without appending the ',US' to the end of the search string.

Probably not recommended but I modified line 428 of geo-mashup-geocoders.php
to hardcode 'US' as the countrycodes param :

$geocode_url = 'http://nominatim.openstreetmap.org/search?format=json&polygon=0&addressdetails=1&countrycodes=us&q=' .

It works as desired but will get blown away during the next update.

I started to look at how hard it would be to modify geo-mashup-options.php and OverallPanel.php (and others?) to make a Nominatim Country Code Setting and quickly realized that is beyond my abilities, so submitting as an enhancement request instead.

Thanks so much for the amazing plugin

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

No branches or pull requests

2 participants