Talk:Overpass turbo
Here is some room for discussions, feedback, bug reports or feature requests about overpass turbo.
General Talk
Disable Rich code editor
Hi, i need to open via html overpass-turbo without rich code editor enabled by default or to reduce his width to 0, it is possible ? if yes which parameter i need to pass ?
Include in Template:ValueDescription?
It is possible to include a link to Template:ValueDescription and Template:KeyDescription? I would be very nice to direct visualize a searched tag from the wiki. Is the Webserver able to handle this traffic?
- Good idea! And I'm pretty sure Overpass API could handle the additional traffic.
- Unfortunately, I have no clue on how to edit wiki templates, and I don't want to break anything... Do you know how to do that?
BTW, there should be a hint, that i have to search my interested region and click "run" ("Ausführen" in german translation). This is not intuitive right now. Perhaps via extending the description text on the left like:
this query looks for nodes, ways and relations with the given key/value combination. please choose your region and click the first button at the top left.
- Good point! I'll update the descriptions with the next update!
- --Tyr (talk) 16:30, 26 February 2013 (UTC)
Please link pages!
Category:Software ??? --Reneman (talk) 17:43, 24 March 2013 (UTC)
- added a few, thx for the hint! --Tyr (talk) 18:07, 24 March 2013 (UTC)
- Ich danke dir für dein super schnelles Handeln, denkst du auch an Overpass turbo/Polygon Features? Wäre es sinnvoll eine zusätzliche Kategorie (z.B. Overpass turbo) anzulegen? Es wird sicherlich noch mehr Seiten zum Turbo geben (Hilfe, technische Seiten, Beispiele, Bilder, usw.). --Reneman (talk) 18:24, 24 March 2013 (UTC)
- Hast Recht, es gibt mittlerweile schon ein paar Seiten. Habe Category:overpass turbo angelegt. --Tyr (talk) 20:53, 24 March 2013 (UTC)
- Ich danke dir für dein super schnelles Handeln, denkst du auch an Overpass turbo/Polygon Features? Wäre es sinnvoll eine zusätzliche Kategorie (z.B. Overpass turbo) anzulegen? Es wird sicherlich noch mehr Seiten zum Turbo geben (Hilfe, technische Seiten, Beispiele, Bilder, usw.). --Reneman (talk) 18:24, 24 March 2013 (UTC)
Piwik Tracking
Please include an Opt out link on your page to disable Piwik tracking. Also please consider removing tracking code for individual buttons (such as "try{piwikTracker.trackPageView('Tool/Run');}catch(e){}"). Thanks. I guess not (talk) 10:37, 27 October 2013 (UTC)
- Hm. Piwik does respect the do-not-track header. Why is there a need for yet another out-out mechanism?
- And note that the tracking of the individual tools/buttons is basically the only reason to include something like piwik at all (almost everything else is already accessible via the server's access logs).
- --Tyr (talk) 13:51, 27 October 2013 (UTC)
- Well, some users raised some concerns regarding Piwik tracking on OSM's main page. As you're also using Piwik this discussion might be relevant to some extent here. Please take a look at the document Marc mentioned in his post, especially chapter 3.2: http://forum.openstreetmap.org/viewtopic.php?pid=372670#p372670. Other pages already seem to have an explicit opt-out mechanism implemented (example: blog.openstreetmap.de/kontakt). I don't think offering DNT as the only way to opt-out is sufficient, but IINAL.
- BTW: do you have any specific need to track individual buttons? Do you need it to improve your page? You probably know a lot of other software packages which ask for permission first before collecting anonymous user information (opt-in). After all it should be the user's decision if he/she wants to participate or not. I hope this doesn't sound too harsh and you get the idea .) I guess not (talk) 20:44, 27 October 2013 (UTC)
- OK, thanks for pointing me to the discussion in the forum. I'll follow the thread and eventually react if there really was an issue with using piwik.
- @tracking buttons: Well, this is the only reliable source of information about how much the individual features of the site are actually used. Otherwise I cannot know where to invest my development time.
- --Tyr (talk) 09:12, 28 October 2013 (UTC)
ffs wizard
The cleaned up syntax used for the new query wizard (in ffs branch) looks interestering also for Overpass API itself. Did you talk to Roland already to have this integrated in the C++ implementation part? A lot of other applications could benefit from this. Mmd (talk) 10:43, 17 November 2013 (UTC)
- Oops, I completely overlooked this comment. Sorry!
- No, I've not yet spoken with Roland about this. Let's see… --Tyr (talk) 21:01, 2 January 2014 (UTC)
How often is the data refreshed?
I thought it was five minutes or so but seems to be taking longer just now. How often is it refreshed from the main OpenStreetMap database? Alex Sims (talk) 09:30, 26 March 2014 (UTC)
- Often it is faster than five minutes, but not always: http://overpass-api.de/munin/de/overpass-api.de/index.html#other has a chart with the import lag. --Zuse (talk) 08:09, 27 March 2014 (UTC)
- Updated URL: http://overpass-api.de/munin/localdomain/localhost.localdomain/osm_db_lag.html --goldfndr (talk) 00:05, 5 September 2018 (UTC)
- Yes, currently there are some technical issues that delay the updating mechanism during peak times (usually during the evenings in Europe). Roland is working on the issues (read more about it in this article (in German)). AFAIK, he is also planning to upgrade the hardware in the near future. --Tyr (talk) 16:53, 27 March 2014 (UTC)
TODO in OSM wiki
- include new features from June 2014 [1] in OSM wiki ... delete this reminder when done. — Preceding unsigned comment added by Stephan75 (talk • contribs)
Backup for Shortlinks?
Ok, this question may sound a bit paranoid, but anyway :)
We have quite a number of shortlinks out there (wiki, forum, mailinglists,...) and loosing them in the long run would be quite bad. Do you have some backup concept in place in case something breaks down and needs to be recovered? Mmd (talk) 10:13, 13 September 2014 (UTC)
- There is a rudimentary backup system in place, which copies a snapshot of the short-link database to another server once a day. Would you recommend implementing something more sophisticated? --Tyr (talk) 12:48, 13 September 2014 (UTC)
Tyr, my question is a little out of topic. Shortlinks are quite comfortable. But you have a lot of duplication of requests to the database now.
- Suggestion: display shortlink with a query after checking that such a query does not exist yet. Otherwise, return a reference to an existing query.
- Will be removed from the database shortlinks with dublication queries? http://overpass-turbo.eu/s/1 < /2,/U,/Y,/16,/1l,/1T,/1X,/23,/28,/2m,/2n,/2t, etc.
-- bopoh13 (talk) 11:26, 21 October 2014 (UTC)
- Yes, these is some duplication and the shortlink generator could be a little bit more clever and return already existing shortlinks if it already exists. But on the other hand, most queries do include also the map location which is almost always different from all already existing queries (except for example when a user clicks twice on the share tool without changing anything). Also, the database is not really huge at the moment (the dump is only a few megs), so the server can handle the little additional storage very easily. --Tyr (talk) 20:08, 21 October 2014 (UTC)
Empty Response Notification
Empty Response Notification is not visible enouth. Could be bigger.. — Preceding unsigned comment added by Rapscallion90 (talk • contribs) 14:55, 25. Oct. 2014
Visualise tags attached to relation
How would you visualise tags attached to a relation? Is this possible? Would be good if this was the case. Would it be possible to create new points representing the relation? Or add relation information to member tags? Any ideas? Bjohas (talk) 11:12, 3 May 2017 (UTC)
Q1
For example, this query (adapted from here) produces a clickable relation:
[out:json][timeout:60]; area[name=Oregon] -> .OR; rel[name="Multnomah County"](area.OR) -> .mc; (rel.mc;); out meta; >; out skel qt;
- Overpass map: [2]
- You can click on the yellow area, and the relation will pop up.
Q2
However, this one doesn't:
[out:json][timeout:120]; {{geocodeArea:"Mallorca"}}->.a; {{objects="historic"~"archaeological_site|tomb"}} relation[{{objects}}](area.a)->.p; (rel.p;); out meta; >; out skel qt;
- Overpass map: [3]
- In the returned data, there doesn't seem to be a place that can be clicked to see the relation.
- I guess that's because the data is structured differently? So my question is: Why does Q1 produce the "clickable relation" but Q2 doesn't?
- Overpass map with bb/center: [4]
- Adding bb/center creates a clickable center/bb for the relation.
- However, this requires a separate out statement - not a problem in this simple example, but essentially it means that the relations need to be processed separately. How do you achieve the same effect, but in a mixed set of rel/ways/nodes (and where only the relationships should be marked with bb or center)?
Answer provided by https://github.com/tyrasd, https://github.com/tyrasd/overpass-turbo/issues/293
This is basically by design. osmtogeojson handles the conversion of the data returned by overpass to GeoJSON, and it currently only supports multipolygon relations (and soon route relations, see tyrasd/osmtogeojson#1), but not (yet) the site relations from your second example. If it doesn't know anything about a certain relation type, it falls back to render the relation's members individually and adds the relation membership as a property to the respective features.
out bb / center is different, since then the relation members are not actually part of the result anymore and therefore osmtogeojson can only create a geometry for the whole relation.
Feature Requests
Extend Maps.me export with OSM data
Hi. I like you can export my bookmarks from Maps.me into KML file. The MKL file can be used in another app in my computer/mobile. The export from Maps.me includes just GPS position and notes entered by me into the bookmark via Maps.me. Additional POI details, which are displayed in Maps.me, are not exported into the KML.
It would be nice if Overpass turbo solved my problem. The best would be as follows: I can upload KML (Maps.me export) into Overpass turbo >> the KML is processed >> and results into a new export file where both original data from KML and derived data from OSM are saved to.
number of elements
Hi I think it would be nice if you would display the number of elements that have been found.
- Yes, indeed. Will implement this sooner or later. -- Tyr (talk) 15:32, 5 February 2013 (UTC)
- Implemented this a few days ago. -- Tyr (talk) 22:37, 12 February 2013 (UTC)
Create external links
It would be very helpful if you could add a link to other tools/maps in the node popup so you can directly jump into a different website on the right location. E.g.
- add an URL to another map or osm tool in the settings
- add a link to this URL and the usual lat/lon parameters in every node popup
Or for power users maybe even a list for multiple tools? --Nop (talk) 09:35, 27 April 2013 (UTC)
- Hi, thx for the suggestion. However, I'm not yet sure what typical use-case you see behind such a feature... I could think that the kind of links you like to display would depend on the data displayed? (a link to a cycle map doesn't make much sense on a query about sea-marks.)
- That said, I'm currently thinking about two (more general) solutions:
- adding/replacing the popup-content via MapCSS. Once this is implemented you could do something like
node { popup: eval('create_link("http://example.org/map?lat=$lat&lon=$lon")') }
- some kind of "plugin system" that makes advanced features available optionally (for example one could introduce elevation profiles from external service). A user could than activate plugins permanently or use a special tag in the query to activate them on a per-query basis.
- adding/replacing the popup-content via MapCSS. Once this is implemented you could do something like
- --Tyr (talk) 07:04, 29 April 2013 (UTC)
- The use casees were searching for examples of particular tag combinations to check how they are rendered in a map and looking for particular tagging problems and fixing them. Currently you have to switch back and forth a lot and manually zoom in and find the objects. If it's not a built-in functionality, I think your solution 1 sounds pretty good. --Nop (talk) 14:04, 29 April 2013 (UTC)
It would be nice to load objekts direct from a object-popup in the map. --Lübeck (talk) 07:58, 4 July 2013 (UTC)
- With “load objects” you mean “load into an editor”, right? That would in fact be a very nice feature when using overpass for quality assurance. --Tyr (talk) 14:00, 4 July 2013 (UTC)
Can this feature request be considered as done? MapCSS is available, and data objects can be loaded into JOSM directly ... --Stephan75 (talk) 17:29, 25 June 2014 (UTC)
- Not really. This is more about linking to external tools on a per-object basis (other than the export options which dump everything). This is handled by two tickets on github now: #76 (content of the popups) and #87. -- Tyr (talk) 07:02, 26 June 2014 (UTC)
Overpass API health indication
Display an alert in overpass-turbo.eu user interface when lag to main OSM database is to long, maybe longer than one hour or similar. Right now on 2014-06-25 we have a lag from overpass database to main OSM database [on the rambler instance]. overpass-turbo.eu can display that lag time when hovering with mouse in the right down screen corner. Or display the lag time permanently with green, yellow or red background according to different lag amount. --Stephan75 (talk) 17:29, 25 June 2014 (UTC)
- overpass turbo does display the age of the data when hovering the mouse in the bottom right corner. This number includes the lag by the Overpass API server, but includes also data transfer times and the time since the data has been displayed.
- But, it could be nice to display a more general API server health indicator somewhere, though. For example an icon: green=up with low lag, yellow=up with significant lag, red=down. But that would require this information to be actually available as an API call (sending dummy requests would technically be possible, but I wouldn't like that approach). Maybe this ticket does make this available at some point. In the meantime I've opened #88 for this.
- -- Tyr (talk) 07:24, 26 June 2014 (UTC)
Smartphone optimize css
Default hide query-source and data-area. more area for map-use. additional geolocate-function. --Lübeck (talk) 12:00, 24 November 2014 (UTC)
- Yes, there is some room for improvements. I have already listed a few todos on github. The geolocate is actually already there, but hard to click on a smartphone, I know.
- --Tyr (talk) 13:35, 25 November 2014 (UTC)
Adjust MapCSS without rerunning query
I'd like to apply changes to a MapCSS style without rerunning a query.
Rationale: As most people are not able to write perfect MapCSS right from the start, several iterations are usually needed. A long running query interferes quite a bit with this iterative prototyping approach. Mmd (talk) 20:48, 14 December 2014 (UTC)
- good feature request, but can you please just open a ticket on github for this? Thanks -- Tyr (talk) 12:43, 15 December 2014 (UTC)
- done: https://github.com/tyrasd/overpass-ide/issues/123 Mmd (talk) 18:29, 15 December 2014 (UTC)
Retain MapCSS-styling when using "Export - interactive map"
I seems that if you export a MapCSS-styled query result into a interactive map, the styling is lost. This is a pitty! It would be nice having the map with the results shown with the nice styling I made. --Nounours77 (talk) 23:08, 15 January 2015 (UTC)
- Yes! There is actually a very old ticket on github for this already.--Tyr (talk) 10:15, 16 January 2015 (UTC)
Draw polygon for polygon statement
This is probably a low prio usability issue: today, there's really no good support around for drawing polygons and embedding the lat/lon coordinates in poly statements. Somewhere in the Wiki there's even some description based on JOSM and an external shell script to convert poly to Overpass poly format. For normal users that's a bit heavy.
Leaflet.draw seems to provide a quite useful polygon drawing feature. Maybe that could be used as a starting point? Mmd (talk) 20:48, 14 December 2014 (UTC)
- good feature request, but can you please just open a ticket on github for this? Thanks-- Tyr (talk) 12:43, 15 December 2014 (UTC)
- done: https://github.com/tyrasd/overpass-ide/issues/122 Mmd (talk) 18:29, 15 December 2014 (UTC)
Wizard / Bahnhof
Asking for "Bahnhof" (=railway station) only searches for railway=station but not for railway=halt. Maybe the wizard should changed such that
Bahnhof
produces something like this
// query part for: “railway=halt” node["railway"="halt"]({{bbox}}); way["railway"="halt"]({{bbox}}); relation["railway"="halt"]({{bbox}}); // query part for: “bahnhof” node["railway"="station"]({{bbox}}); way["railway"="station"]({{bbox}}); relation["railway"="station"]({{bbox}});
--Hfst (talk) 13:31, 30 August 2015 (UTC)
- Hm… The wizard uses the presets defined in the iD editor, which are in turn based on the OSM wiki: railway=halt is clearly defined as a separate entity from a railway=station: Sie sind strikt von Bahnhöfen zu unterscheiden. You can use something like the following to generate a query that searches for both stations and halts via the wizard:
Bahnhof or Eisenbahn-Haltestelle
- --Tyr (talk) 16:24, 30 August 2015 (UTC)
- From the cartographer point of view I agree that railway=station is something different from railway=halt. But from the user point of view (who wants to find out where he can enter a train) this is not true. However for me there is no problem as I learned about the difference. --Hfst (talk) 12:20, 6 December 2015 (UTC)
tabular view
This was forked off overpass http://jongleur1983.github.io/overpass-ide/, and provides a great tabular data display (https://github.com/tyrasd/overpass-turbo/pull/18). However, somehow the pull request didn't go through at the time, and now the branches have conflicts. I got as far as cloning and seeing the conflicts, but haven't quite managed to do it. Does anybody fancy having a look? Bjohas (talk) 21:58, 25 July 2016 (UTC)
include lat/lon of ways
I'm finding the overpass API extremely useful to show features with leafletjs, but currently only able to use it when it returns nodes not ways. The reason being that when it returns a node, it returns the lat/lon of the node -- but when it returns a way, it gives only a list of nodes and no obvious way to get a position for leafletjs to display a marker.
The user interface http://overpass-turbo.eu/ manages to display ways as well as nodes, so presumably its not difficult for overpass to obtain that information. Consequently I suggest:
- As a minimum, get the API to add include either a bounding box or lat/lon for the centre position of the way
- Consider also returning lat/lon of the individual nodes in the way.
The first I think could happen by default -- it would not significantly increase the data returned. The second might benefit from being optional controlled by a modifier.
--Harg (talk) 07:23, 9 August 2016 (UTC)
- Use either
out geom;
,out bb;
orout center;
(or a combination thereof) for that purpose. Mmd (talk) 10:42, 9 August 2016 (UTC)
Ah! I was expecting out bb;
to return a single bounding for all results in the query, but it does indeed do exactly what I need -- thanks for that :)
Incidentally, out geom;
looks useful but doesn't seem to be documented at http://wiki.openstreetmap.org/wiki/Overpass_API/Language_Guide
--Harg (talk) 12:31, 9 August 2016 (UTC)
Finding out the current version number
Hey, am i completely blind or is there no way to find out the Version number of an overpass instance someone else set up?
I think such a thing belongs in the "About" page in the Settings or should be determinable somehow else (e.g. by calling something like http://server/api/version or displaying it when calling /api/ directly instead of the forbidden) Kind Regards Martinum4 (talk) 22:26, 30 May 2017 (UTC)
- The version of the database is already available directly in the API, but it is also visible in the JSON/XML data results of your queries ! — Verdy_p (talk) 03:41, 31 May 2017 (UTC)
- In JSON format (when the "[out:json];" option is set at start of the OQL query) you get:
{
"version": 0.6,
"generator": "Overpass API",
"osm3s": {
"timestamp_osm_base": "2017-05-31T03:43:10Z",
"copyright": "The data included in this document is from www.openstreetmap.org. The data is made available under ODbL."
},
"elements": [ /* all results of your Overpass Turbo requests here... */ ]
}
- The same kind of info is in the OSM XML ouput format (OSM XML is the default output format for both OQL and OverpassXML request syntaxes):
<?xml version="1.0" encoding="UTF-8"?>
<osm version="0.6" generator="Overpass API">
<note>The data included in this document is from www.openstreetmap.org. The data is made available under ODbL.</note>
<meta osm_base="2017-05-31T04:09:10Z"/>
<!-- all results of your Overpass Turbo requests here... -->
</osm>
- Here version 0.6 is the version of the OSM database API. The "generator" indicates "Overpass API" but could include the version number (like in webbrowsers) as "Overpass API/1.2", possibly augmented with version numbers for extensions or internal components such as
"generator": "Overpass API/1.2 (Pgsql/5.0; Osmosis/1.1; GNU-Linux/4.0; Ubuntu/5.0)"
- Other info about current limits in the instance, and with the name of the instance or its capabilities (attic data present?) could be in "osm3s" , instead of just its own local database timestamps and the copyright statement, notably its instance name, by adding a few fields in "osm3s". Such info should be returned in queries with "out meta"; or in results of queries returning any kind of error.
- — Verdy_p (talk) 03:50, 31 May 2017 (UTC)
- Thanks for your answer, i was talking about these version Numbers, so far the only way to find it out is by the way you mentioned (looking for errors in specific queries).
- Kind Regards Martinum4 (talk) 05:04, 31 May 2017 (UTC)
- I strongly discourage relying on error messages to determine the version number, as they might change or even disappear in the future without prior notice! Better ask the operator of the respective instance for more details. Please note there's a feature request on Github to provide more version details, but unfortunately it hasn't been implemented yet. https://github.com/drolbr/Overpass-API/issues/87 . BTW: such questions are better asked on the Overpass API page, as this really has not that much to do with overpass turbo. Mmd (talk) 05:14, 31 May 2017 (UTC)
retrieve invisible objects
Hi!
Is it possible to retrieve information about an invisible (deleted) object so that e.g.
node(322918555);out meta;
returns something similar to
https://api.openstreetmap.org/api/0.6/nodes?nodes=322918555
- Deleted objects are only returned when using
[diff: ...]
or[adiff:...]
.retro
returns the history, but that doesn't include deleted objects, see http://dev.overpass-api.de/blog/sliced_time_and_space.html#timeline for details. By the way, that's a question for Overpass API really. Mmd (talk) 10:41, 27 January 2020 (UTC)
- OK, I'll place a new query there.
- Ok, it wasn't really clear to me what exactly you wanted to acheive. The only way to get this information atm is something like . I believe what you want is similar to
[adiff:"2018-11-21T00:00:00Z"];node(322918555);out meta;
which has already been proposed in https://github.com/drolbr/Overpass-API/issues/338 Mmd (talk) 13:34, 27 January 2020 (UTC)out delete;
- Ok, it wasn't really clear to me what exactly you wanted to acheive. The only way to get this information atm is something like
- Yes, looks similar, but I don't want to run this as an extra query. So, should return both the visible and the invisible nodes.
out meta delete;
- Yes, looks similar, but I don't want to run this as an extra query. So,
Handle URLs with Facebook-crap more transparently / gracefully
When I want to share a short URL for a query to overpass turbo, I have to ask readers to follow the link, then edit the URL to add eg /s/NNN after http://overpass-turbo.eu/ The reason is that when users click an URL on Facebook that looks like http://overpass-turbo.eu/s/NNN, the URL the user is sent to is actually http://overpass-turbo.eu/s/NNN?fbclid=xyzabc.....zzzzzz Overpass-turbo redirects to http://overpass-turbo.eu/null and presents an "ugly" errorpage. I think that Facebook is the one primarily at fault, but they have the might and userbase and probably will not change their ways. Could overpass turbo be amended to handle links from facebook more elegantly? MortenLange (talk) 15:10, 4 July 2020 (UTC)
Bug Reports
Autocomplete issue
I came across an interesting autocomplete issue (probably some regex weirdness):
way({{bbox}})[junction=roundabout];out;
corrected to:
way({{bbox}})[junction=roundab/*added by auto repair*/(._;>;);/*end of auto repair*/out];/*added by auto repair*/(._;>;);/*end of auto repair*/out;
- Thanks for the report. Should be fixed by now (and it was indeed an overly eager regex). --Tyr (talk) 22:33, 30 March 2013 (UTC)
Clicking in red filled circles
With Firefox 19.0.2 under Windows there is is a problem with clicking in red filled circles. Create a query for some way, show them an the map and zoom out so that they are shown a red filled circles. After I have moved the map (left button dragging and closed hand mouse pointer) a left click on a red filled circle is ignored. The mouse pointer changed the shape to a pointing digit. When I now left click into the search text field and then left click on a red filled circle all is fine.
Left clicking on blue ways or yellow filled circles or areas is no problem. Adjuva (talk) 10:53, 1 April 2013 (UTC)
- Thanks for the detailed report! I can confirm this bug, but currently I have no idea, what the cause could be. I'll investigate! --Tyr (talk) 19:53, 2 April 2013 (UTC)
Results returned are not complete
I searched amenity=school in central Paris, got only a few results, many universities and écoles in Latin quarter are missing in the result. However when we send the same query using XAPI(http://harrywood.co.uk/maps/uixapi/xapi.html), the result is much better.
We'd like to use the powerful query language of Overpass for our project, but the imprecise results is troublesome.
— Preceding unsigned comment added by Cherrywongcn (talk • contribs)
- When we should help, please tell us your exact query that you used. --Stephan75 (talk) 18:07, 2 May 2013 (UTC)
- Maybe you only selected nodes instead of also including ways in your Overpass API query? Take a look at the following Education Map, which also uses Overpass API. I believe the results should be fairly complete. Mmd (talk) 20:46, 2 May 2013 (UTC)
- Yes, the actual query you used for producing this bug would be helpful. Also, as mmd said, it's quite likely you only forgot to query for all OSM-datatypes. For simple key/value lookups you can start with the following overpass turbo template: http://overpass-turbo.eu/?template=key-value&key=amenity&value=school --Tyr (talk) 07:22, 3 May 2013 (UTC)
Error upon first call
Everytime I start Overpass turbo and run the first query, I get an error message that it couldn't connect to the server. (will add exact wording next time)
From the second attempt on it works. Browser is Firefox.--Nop (talk) 17:43, 2 May 2013 (UTC)
- Can't reproduce :/ but sounds strange. Please also include your firefox version, your OS and the query (a share-link would suffice). --Tyr (talk) 07:12, 3 May 2013 (UTC)
- Did you see the problem again, Nop? If not, this probably has only been a temporal hiccup of the Overpass API, maybe. --Tyr (talk) 17:38, 11 May 2013 (UTC)
- Happens every first time still. I am using Firefox 18.1 (Waterfox 64bit) on Windows7. Query is http://overpass-turbo.eu/s/dR. Message is: "Request rejected... error 404". --Nop (talk) 20:15, 24 May 2013 (UTC)
- Hi! Finally, I got hold on a 64-bit PC to work on this error, but I still can't reproduce it (Win7 64bit, Waterfox 18.0.1). So, I basically have no clue what is causing this behavior. Can you try enabling "Force simple CORS requests" in the settings? PS: sorry for the delay… --Tyr (talk) 19:17, 21 July 2013 (UTC)
No bbox with area
This query returns not the bbox but the whole earth. ("way" is ok)
<query type="area"> <has-kv k="amenity" v="library"/> <bbox-query {{bbox}}/> </query> <print/>
-karlos- (talk) 07:05, 10 October 2013 (UTC)
- Sounds like a problem with the Overpass API not applying the bbox-filter to areas. Please open an issue there. --Tyr (talk) 16:49, 10 October 2013 (UTC)
- Handled there. --Tyr (talk) 10:16, 4 November 2013 (UTC)
Nominatim search result can overflow popup
Search term "Münster" overflows the search popup box due to its huge Nominatim result:
"Munster, Münster, Regierungsbezirk Münster, Nordrhein-Westfalen, 48143,48144,48145,48146,48147,48148,48149,48150,48151,48152,48153,48154,48155,48156,48157,48158,48159,48160,48161,48162,48163,48164,48165,48166,48167, Deutschland, Europäische Union"
The Nominatim result is probably bogus, but a simple style="word-wrap: break-word;"
would at least avoid the popup box issue.
Mmd (talk) 10:29, 3 November 2013 (UTC)
Broken Links in Popup for URLs in Key Values
Run the following query and check the result in the detail popup. Some of the links seem to be broken and point to "mailto:..." URLs.
node(269660221);out meta;
Mmd (talk) 14:18, 15 November 2013 (UTC)
W3 Validator issues
validator.w3.org reports about 127 errors for overpass-turbo.eu, most of them related to the way translations are implemented ("Attribute t not allowed on element a at this point."). Possibly, a "data-*" tag (custom data attribute) instead of "t" would help here. While this is not an issue right now, it might become one in the future. Mmd (talk) 10:26, 17 November 2013 (UTC)
wizard
Just a few comments on the new wizard:
Merge or expressions for same keys to regex
The following overpass turbo wizard question on help.openstreetmap.org made me think how you would usually specify the following:
(place=village or place=hamlet or place=town) and ("name:en"!=* and name!="[a-z]")
When asked to create a query I would most likely use a regexp like place~"village|hamlet|town" instead of creating a cross product. Would it be an option to merge identical keys in an or-expression to a regex where possible?
- Good idea, but I'll have to check how much this influences the performance of the produced queries first.
Syntax
It would be cool to have some more natural language (not to say SQL like) operators instead of ~ and !~. Something I can think of is:
ref is null (ref tag does not exist) ref is not null (ref tag with any value exists) key like 'bla' (similar to ~) key is not like 'bla' (similar to !~)
- Makes sense, will add those notations as alternatives.
Documentation link
Link to the wizard documentation (the one you hopefully resort to once you screw up the syntax) should probably open up in a new browser tab/window.
- Right
Wizard window size
Would it be possible to remember the previous wizard window location/size? --Mmd (talk) 10:35, 29 December 2013 (UTC)
- Do you mean across several sessions? I'm not sure if that'd be really worth the effort… --Tyr (talk) 16:30, 29 December 2013 (UTC)
Export as kml
Export as kml file
the objekt way is not seen in googel earth when open the kml-file
how to do a export with a singel point from ways without <Polygon>?
poi not in googel earth
<Placemark><Polygon><outerBoundaryIs><LinearRing><coordinates>9.9218033,48.537253 9.9216009,48.5371971 9.9216606,48.5371023 9.921863,48.5371581 9.9218033,48.537253</coordinates></LinearRing></outerBoundaryIs></Polygon><ExtendedData><Data name="@id"><value>way/312262869</value></Data><Data name="man_made"><value>tower</value></Data><Data name="tower:type"><value>observation</value></Data></ExtendedData></Placemark>
this looks fine
<Placemark><name>Rehturm</name><Point><coordinates>11.4699358,50.100363</coordinates></Point><ExtendedData><Data name="@id"><value>node/26308988</value></Data><Data name="amenity"><value>public_building</value></Data><Data name="building"><value>yes</value></Data><Data name="man_made"><value>tower</value></Data><Data name="name"><value>Rehturm</value></Data><Data name="tourism"><value>viewpoint</value></Data><Data name="tower:type"><value>observation</value></Data><Data name="wheelchair"><value>no</value></Data></ExtendedData></Placemark>
thx
— Preceding unsigned comment added by Kräckel (talk • contribs)
- I'm wondering why the first KML wouldn't work for you (it does for me), but if you really only want point geometries, you can modify your Overpass query to give you exactly that. Here is an example: http://overpass-turbo.eu/s/6ql (you replace the output statements by a single
out center;
, that's it). Is that what you wanted to get? - -- Tyr (talk) 13:11, 8 December 2014 (UTC)
SSL issues
I'm trying to use overpass-turbo.eu via https.
Chrome 41 complains about a few things:
- Dieser Server konnte nicht beweisen, dass er overpass-turbo.eu ist. Sein Sicherheitszertifikat stammt von *.lupus.uberspace.de. Mögliche Gründe sind eine fehlerhafte Konfiguration oder ein Angreifer, der Ihre Verbindung abfängt.
- Mixed Content: The page at 'https://overpass-turbo.eu/' was loaded over HTTPS, but requested an insecure image 'http://wiki.openstreetmap.org/w/images/b/b3/Powered_by_Overpass_API.png'. This content should also be served over HTTPS.
- Mixed Content: The page at 'https://overpass-turbo.eu/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://api.openstreetmap.fr/oapi/kill_my_queries'. This request has been blocked; the content must be served over HTTPS.
Basically, all non-https Overpass API endpoints are blocked by Chrome (and also Firefox), only overpass-api.de works with https.
Mmd (talk) 18:35, 27 March 2015 (UTC)
- in the meantime: turbo and overpass-api have let's encrypt certificates. Works fine. Still a bit (useless) mixed content (tyr.lupus.uberspace.de/piwik/piwik.php). Thanks! :) --Aseerel4c26 (talk) 20:31, 4 April 2016 (UTC)
Basically, all non-https Overpass API endpoints are blocked by Chrome (and also Firefox), only overpass-api.de works with https.
May be it is time to enable HTTPS for overpass URLs? --Vascom (talk) 07:30, 06 December 2019 (UTC)
in doesn't seem to work in wizard
The example tourism=museum in Vienna does not work in the wizard. --Reclus (talk) 12:12, 14 May 2015 (UTC)
- Strange, it does work for me. Do you get any kind of error message (for example in the javascript console)? Which browser are you on? --Tyr (talk) 05:21, 16 May 2015 (UTC)
- Ah, are you perhaps using overpass turbo via https? That's likely the issue. It should be fixed now in the master branch. You test it here: https://overpass-turbo.eu/master/. --Tyr (talk) 22:14, 16 May 2015 (UTC)
- Thank you! No, I wasn't, but https://overpass-turbo.eu/master/ works fine. (https://overpass-turbo.eu/, http://overpass-turbo.eu/ and (!) http://overpass-turbo.eu/master/ don't.) --Reclus (talk) 22:32, 16 May 2015 (UTC)
- Some users in the German forum report some issues with HTTPS everywhere addon. @Reclus: do you happen to use this addon? Mmd (talk) 09:26, 17 May 2015 (UTC)
- Now I can reproduce it with the HTTPS Everywhere addon. Ticket on github: https://github.com/tyrasd/overpass-turbo/issues/165. Will investigate. --Tyr (talk) 06:32, 18 May 2015 (UTC)
Export raw data format
When exporting the results of a query as "raw data" the download sometimes comes as export.json and on other occasions as export.osm.
Found out:
When the Wizard is used then in the left-hand window you see (among other texts) [out:json]. This command makes that your export comes in json format.
When you use load data into an OSM editor: JOSM then you are asked for a repair. This repair changes the previous text to [out:xml]. A next download now is export.osm.
- Right! The Overpass API can return OSM data in either json or xml format. This corresponds to the different file endings in the export mechanism.--Tyr (talk) 09:39, 30 January 2016 (UTC)
Wizard refuses work for rare tags
Hi,
I tried to make an Overpass Turbo map for shops that sell products without packaging. So I started the wizard and entered "bulk". (Later I found out, the tag is "bulk_purchase", but whatever). The wizard asked back "Did you mean "bank"?". There was no way to click "no", so it did not work.
Expected solution: Add a "no" button to let the user decide about the correct term. Thanks. --Lulu-Ann (talk) 10:22, 23 May 2016 (UTC)
Export interactive map to include in a web
I've seen the export options but I need to have the HTML code to implement the map with the data in my webpage. Is there any possibility to get the code to publish the interactive map in other webpages? This would be like the export option that is in OSM.org. Thanks --Mario modesto (talk) 05:31, 17 June 2016 (UTC)
Run error in Firefox 55
I used the wizard to build a query for park and tried to run it.
node["leisure"="park"]({{bbox}}); way["leisure"="park"]({{bbox}}); relation["leisure"="park"]({{bbox}});
I'm getting Request rejected. (e.g. server not found, request blocked by browser addon, request redirected, internal server errors, etc.)
Error-Code: error (0)
This has previously worked, but possibly not in this version of firefox. The above is still working in internet explorer 11.0.9.19600.18792
--Harg (talk) 20:44, 27 September 2017 (UTC)
- This query works for just fine on Firefox 55. Do you see any error messages in Firefox' Javascript console when starting up overpass turbo?
- --Tyr (talk) 16:50, 28 September 2017 (UTC)
- Hi -- I get some errors relating to CSS on start up but I don't think they're relevant.
When I *run* the generated command I get a cors error.
21:22:10.455 OPTIONS XHR http://api.openstreetmap.fr/oapi/interpreter [HTTP/1.1 301 Moved Permanently 16ms]
21:22:10.495 Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://api.openstreetmap.fr/oapi/interpreter. (Reason: CORS header 'Access-Control-Allow-Origin' missing). (unknown)
21:22:10.643 GET http://overpass-turbo.eu/faf6f5dc44e713178784c1fb053990aa.png [HTTP/1.1 200 OK 62ms]
On further examination I find there are some options in the settings menu -- it works correctly if I change the server to //overpass-api.de/api/ but fails for server //overpass.openstreetmap.fr/api/ -- the setting Force simple CORS requests makes no difference --Harg (talk) 20:39, 28 September 2017 (UTC)
Extracting Comments (notes) from OSM
Hi, Thanks for the turbo tool. I would like to extract all comments for a bbox that are currently open or closed. Historic notes would be great as well but not critical. Is there away to do this within Overpass-Turbo or can I request it via a Github request? TIA
- Hi, unfortunately the Overpass API doesn't support requesting OSM notes at the moment. Maybe you can open a feature request there? If it gets supported by the Overpass API, it should be easy to add support for it in overpass turbo. :)
- In the meantime you can maybe try using https://ent8r.github.io/NotesReview/
- --Tyr (talk) 08:32, 3 September 2018 (UTC)
Accept Galician language on Transifex!
We want to translate the application!! Ivans_wiki (talk) 11:06, 18 June 2019 (UTC)
Wrong parsing of comments
In Overpass_QL#Comments it is documented that I can use block "comments in the same style of C, C++, Javascript, or CSS source code"
It works if I use:
/*
*/
However, contrary to other languages, if I do:
/**
**/
The rest of the script is ignored and I get no output.
If it is intended behavior, the wiki should be amended with that information so other users don't waste several hours. --mikkolukas (talk) 23:55, 1 June 2020 (UTC)
Unexpected behavior on recurse up relations (<<)
Done on a node or a way, it will return the parents of that node or way (as expected). Done on a relation, it will return both the relation itself and it's parents. If you want the parents only, you can do: (<<; - rel._;); instead.
I have added a "Be aware" with testing examples at Overpass_QL#Recurse_up_relations_.28.3C.3C.29, as I believe we going to live with this behavior. This bug cannot be fixed without breaking the now expected functionality of thousands of scripts. --mikkolukas (talk) 04:42, 3 June 2020 (UTC)
Ajax Error occured during the execution of the overpass query!
Ajax Error
An error occured during the execution of the overpass query!
Request rejected. (e.g. server not found, request blocked by browser addon, request redirected, internal server errors, etc.)
Error-Code: error (0)
Doesn't seem search-specific, but here's the shared URL: https://overpass-turbo.eu/s/1bM3 DougGrinbergs (talk) 23:33, 5 October 2021 (UTC)
- This was most likely caused by an outage of the Overpass API, see Overpass API/status. Which seems to be resolved by now. -- Tyr (talk) 13:10, 6 October 2021 (UTC)
Saved queries are lost
@Tyr: - I had (fortunately simple) query saved as http://overpass-turbo.eu/s/clf - but now it is lost. Is it intentional?
- Sorry, the short url service stopped working on my server for some reason. It's back in opteration now. Thanks for the notice. -- Tyr (talk) 09:29, 21 October 2022 (UTC)
- @Tyr: oh, so it probably also fixed issue of new links not being shortened Mateusz Konieczny (talk) 11:28, 21 October 2022 (UTC)
Should I expect the same happening soon with other queries? Is there some simple way to save them? For example, are saved queries downloadable as database dump or should I look across my files for save queries and recover their text before it is too late? Mateusz Konieczny (talk) 08:36, 21 October 2022 (UTC)
- I don't plan to shut down the service at any time, don't worry. ;)
- Regarding a dump of the queries: There's currently no functionality built to make that available outside of overpass turbo. In the past, I have provided a dump on a few (two or three) occasions to researchers. If you want to create a backup of your own saved queries, I'd recommend the following approach: Use curl to un-shorten the saved query (e.g. something like this for all your queries:
curl -I https://overpass-turbo.eu/s/1 | grep Location >> my-queries.backup
). -- Tyr (talk) 09:37, 21 October 2022 (UTC)- @Tyr: the problem is that I would need to write code that would crawl across all my files (and some may be doc/ods and not plaintext!) to list them to perform backup. If dump would be available (so I would be able to just use it in future if needed) then it would avoid this problem Mateusz Konieczny (talk) 11:28, 21 October 2022 (UTC)
Template at the top of this wiki page wrong
The template
{{Overpassapi}}
seems to drag in Overpass API info first, then Overpass turbo info. This is misleading, since the links for "Overpass API" (such as query examples) do not apply to Overpass Turbo at all. SomeoneElse (talk) 17:20, 16 January 2022 (UTC)
- Hmm. The solution could be to have a flag on the template which reverses the order of the rows of links for overpass turbo pages? That could be discussed over at Template_talk:Overpassapi, I guess. -- Tyr (talk) 16:10, 17 January 2022 (UTC)
Check Elements existance, limit of elements requested by IDs, rate limit of such requests
Hi! I need to periodically validate sets of OSM Elements IDs (nodes, ways, relations). I don't have resources to download and process OSM dumps, so instead I query Overpass from time to time, I include the IDs into the cmd ("... node(id:123,321,213) ..."). The only thing I actually need from Overpass/OSM is just to check if nodes/relations/ways still exist, if they weren't deleted.
Is the way I do it the best way? Or is there something else I should do instead?
I also wonder what the limits are. At the moment there are not that many IDs, but that might change. If I wanted to validate 10000 nodes a day by Overpass, would that get me banned? If not, what's the threshold before I become a burden? Blazern 19:46, 15 February 2022 (UTC)