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

wizard/Nominatim: searching in places broken #165

Closed
malenki opened this issue May 15, 2015 · 6 comments

Comments

@malenki
Copy link

commented May 15, 2015

When entering e.g.

sport=skateboarding in Berlin

and exectuing the query, overpass turbo immediately returns

Nominatim Error
Could not find anything with the following name: Berlin
@tyrasd

This comment has been minimized.

Copy link
Owner

commented May 18, 2015

see http://wiki.openstreetmap.org/wiki/Talk:Overpass_turbo#in_doesn.27t_seem_to_work_in_wizard

Does it still fail in the master branch? edit: I see it does. Will investigate

@tyrasd tyrasd added the bug label May 18, 2015

@mmd-osm

This comment has been minimized.

Copy link
Contributor

commented May 18, 2015

Seems to be this bug: EFForg/https-everywhere#49

OpenStreetMap.org ruleset does an automatic switch from http://nominatim.openstreetmap.org to https://nominatim.openstreetmap.org in the background. To verify that, you can manually deactivate that rule in HTTPS everywhere -> nominatim works as before.

One option could be to add a corresponding rule to HTTPS everywhere to do an automatic switch from http://overpass-turbo.eu to https://overpass-turbo.eu and all should be fine, at least when using overpass-turbo.eu/master.

BTW: Another error message needs to resolved here: "Blocked loading mixed display content "http://wiki.openstreetmap.org/w/images/b/b3/Powered_by_Overpass_API.png" "

Message on Javascript console:

http://nominatim.openstreetmap.org/search?X-Requested-With=overpass-turbo&format=json&q=Berlin

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://nominatim.openstreetmap.org/search?X-Requested-With=overpass-turbo&format=json&q=Berlin. (Reason: CORS header 'Access-Control-Allow-Origin' missing).
An error occured while contacting the osm search server nominatim.openstreetmap.org :(
turbo.m...5-04-23 (line 25)
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://nominatim.openstreetmap.org/search?X-Requested-With=overpass-turbo&format=json&q=Berlin. (Reason: CORS request failed).
@tyrasd

This comment has been minimized.

Copy link
Owner

commented May 18, 2015

Thanks for linking the ticket.

The only issue with adding overpass turbo to HTTPSeverywhere is that I don't have a signed certificate for https://overpass-turbo.eu/.

An alternative workaround would be to hardcode all nominatim queries to https

tyrasd added a commit that referenced this issue May 18, 2015
work around http-everywhere issues in firefox, #165
by hardcoding https protocol for nominatim XHR requests

@tyrasd tyrasd closed this May 18, 2015

@tyrasd

This comment has been minimized.

Copy link
Owner

commented May 18, 2015

An alternative workaround would be to hardcode all nominatim queries to https…

this is now live on the main instance

@malenki

This comment has been minimized.

Copy link
Author

commented May 18, 2015

@HolgerJeromin

This comment has been minimized.

Copy link
Contributor

commented May 18, 2015

You can get a certificate for free from Startssl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.