Giter Club home page Giter Club logo

overpass-turbo's Introduction

overpass turbo

This is a GUI for testing and developing queries for the Overpass-API. It can also used for simple analysis of OSM data.

Getting Started

Just point your browser to overpass-turbo.eu and start running your Overpass queries.

More information about overpass turbo is found in the OSM wiki.

Translating

Translations are managed using the Transifex platform. After signing up, you can go to overpass-turbo's project page, select a language and click Translate now to start translating.

If your language isn't currently in the list, just drop me a mail or open an issue ticket.

To download the latest translations from Transifex, run tx pull --all using the Transifex client tx.

Development

URL parameters

overpass turbo can be linked from other applications by using URL parameters. For example, one can provide a query to load, set the initial map location, or instruct turbo to load a template.

git-branches

Development is done in the master branch, stable releases are marked with git tags, the gh-pages branch contains static builds of the releases.

install & run

  1. yarn install
  2. yarn run start for a Development server listening at http://localhost:5173
  3. yarn run build for a minified build in ./dist

overpass-turbo's People

Contributors

andrashann avatar dependabot[bot] avatar dex2000 avatar floedelmann avatar futek avatar goldfndr avatar grischard avatar guyfawcus avatar hiddewie avatar holgerjeromin avatar imresamu avatar irljidel avatar jonty avatar kanggnak1 avatar matkoniecz avatar mmd-osm avatar mzagorskirs avatar nebulon42 avatar rbovard avatar sanderd17 avatar secretmapper avatar simon04 avatar thibaultmol avatar tilmanb avatar tyrasd avatar vanuan avatar zstadler avatar zverik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

overpass-turbo's Issues

links to websites

sorry for a stupid question, but would it be possible to have the links to websites as links in the "tagbox"?

Use MapQuest instead of Mapnik tiles?

Hello

I'm an OSM newbie and someone mentionned http://overpass-turbo.eu as a simple way to query the OSM database and display some specific infos.

It works great, but I find the Mapnik layer hard to read: Is it possible to tell Overpass-Turbo to use MapQuest instead?

I saw the Settings > Map > Tile-Server setting, but don't know if this can be used to pass that parameter.

Thank you.

Expose simple url to run wizard query

The improved functionality is great. I'd love to be able to use it via a browser shortcut, or share/bookmark the wizard query instead of the query that the wizard generates.

But to do this I need a url to access the wizard directly, and it doesn't seem currently possible. Something like http://overpass-turbo.eu/?wizard=pub+in+dublin to fill in the wizard and run. Maybe an optional parameter here to not run the query but just build it.

Thanks in advance.

AJAX Error on http://overpass-turbo.eu

Iceweasel 17.0.7 (Firefox from Debian Wheezy)

When I open http://qr.cx/A7er

I get:

Ajax Fehler:

Ein Fehler ist beim Ausführen der Query aufgetreten!

Request rejected. (e.g. server not found, redirection, internal server errors, etc.)

Error-Code: [Exception... "" nsresult: "0x805e0006 ()" location: "JS frame :: http://code.jquery.com/jquery-2.0.3.min.js :: :: line 6" data: no] (0)

Then I see OSM on the main frame and the left frame is filled with:

<!--
This query looks for nodes, ways and relations 
with the given key/value combination.
Choose your region and hit the Run button above!
-->
{{key=amenity}}
{{value=bicycle_parking}}
<osm-script output="json">
  <union>
    <query type="node">
      <has-kv k="{{key}}" v="{{value}}"/>
      <bbox-query {{bbox}}/>
    </query>
    <query type="way">
      <has-kv k="{{key}}" v="{{value}}"/>
      <bbox-query {{bbox}}/>
    </query>
  </union>
  <print mode="body"/>
  <recurse type="down"/>
  <print mode="skeleton"/>
</osm-script>

{{style: 

node, area /* unknown */
{ color:gray; fill-color:gray; }
[...]

Repair query should load automatically JOSM

When using a query that outputs json, in export window I click on load into josm and it alerts me to repair the query.
If I press repair, it modifies the query text but it should also call Josm (instead I must go and press load into josm again).

Overpass area query doesn't find data

First off, thanks for this great service.

This is the query I'm looking for:

http://tinyurl.com/btqwaet

It looks for the area with a tag wikidata=Q58253 which it finds, and towns inside it which it doesn't find (although there are towns in there).
If I replace the wikidata tag with another admin boundary, it works:

http://tinyurl.com/d76n2dn

But even more interestingly, if I search for the first boundary by it's name, it finds it and finds the towns:

http://overpass-turbo.eu/s/E

Am I doing something wrong?

Janko

Extended template concept for shortlinks

Looking at the following Wiki-Page (Stolpersteine, http://wiki.openstreetmap.org/wiki/Stolpersteine) I noticed a lot of different Overpass Turbo shortlinks. Each shortcut has its own little config section but was more or less identical apart from that:

{{schl=memorial:type}} 
{{wert=stolperstein}} 
{{ort=Dachau}} 
{{level=6}}

I guess it was quite cumbersome to create all those shortcuts. Yet, when changing the styling, you would have to recreate all those shortlinks.

How about a more flexible approach by exposing (some of) these variables in the shortcut URL as it is done for the template concept today? This way you could create just ONE shortlink for the wiki page and supply additional variables as parameter. Applying styling changes would then be a simple matter of searching/replacing the shortlink url on the wiki page.

Example (actual syntax could be different though)

http://overpass-turbo.eu/s/21S?ort=Dachau&level=6

Output global bbox to JSON

When a global bounding box is provided, the xml result will contain a bounds element as can bee seen here. However, there is no counterpart to this information in the json output, see the equivalent query. It would be nice to have feature parity in this regard.

I noticed this behavior because of this forum thread.

Failing to load the turbo in Iceweasel

Iceweasel is the choice browser for many debian users. However while trying to access http://overpass-turbo.eu/ it fails to load in Iceweasel. The screen gets stuck in "overpass turob loading".

Here is the console error log that i get from firebug.

SyntaxError: missing name after . operator
[Break On This Error]

e&&t.feature.geometry&&("Point"!=t.feature.geometry.type||t.

turbo....4-01-02 (line 5, col 60)

ReferenceError: ide is not defined
overpass-turbo.eu()overpass-turbo.eu (line 273)
[Break On This Error]

$(document).ready(ide.init);

overpass-turbo.eu (line 273)

I tried with Chromium and the site worked perfectly fine

lat/lon/zoom Parameters

Please allow standard lat/lon/zoom parameters to allow such kind of queries:

http://overpass-turbo.eu/?key=ref%3Amonument&template=key&lat=47.6274&lon=15.8095&zoom=14

And BTW, it would be nice if it auto-runs a query if full information is given (either by the "share" permalink or by above set of taginfo plus location (either bbox or lat/lon/zoom) parameters.

And BTW², it would be nice if the permalink feature would use shorter parameters, see http://map.project-osrm.org/ as a good example.

And one more thing: you have a nice feature to manually select a bbox. But how can I get this bbox out, as numbers? To use them as a parameter, for instance.

/al

Zoom level for search result is too low.

After selecting a particular location in the search results, the map is refocused at a very low zoom level, perhaps only a zoom level of 8 or 11.

This is not very helpful as I still have a very small idea of exactly where my search result is.

I would find the search result much more helpful if the map would display the clicked search result at z16-18.

To reproduce:
Enter in: bogor
Select the result "Bogor, 15, Chasséstraat, Zeeheldenkwartier, Den Haag, The Hague, Stadsgewest Haaglanden, South Holland, Kingdom of the Netherlands, 2518, The Netherlands" (6 or 7th on the list).

The result is the following map:
selection_004

Saving Queries as JSON

Saving the Queries is very nice but working on different computers makes them inaccessable so a good solution would be to have an export method for the queries that one could store it anywhere and import it again on another device.

Idea: Tab "Table"

I think it would be a nice feature if someone could add an tab additional to map and data called table.
It would display a table with one row per object, columns would be filled with the tag values.

Additional optional features: move columns, sort columns, filter?

improve abort query behaviour

A user clicking the abort button during a request, doesn't really know what happens.

  1. Only closes the query window? (and overpass-query is still runing on server)
  2. Just fires a request to http://overpass-api.de/api/kill_my_queries
  3. Fires a request to http://overpass-api.de/api/kill_my_queries and analyze the reponse.

By executing the 3rd possibility the user is going to trust the abort funcationality. The steps and reponse of aborting should be visualized in the window.

During the abort executing there could be displayed a terminate button, which executes the 1st possibility. Could be useful in case of an overpass server error with very long response times or for impatient users.

Map export: disable display of small features as POI

The map export (/map.html?Q=) now shows small features as POIs, which is quite ugly for small segments of linear features (roads, etc).
I couldn't find an option to turn this off, I'd appreciate having at least an option for that. Either disabling it by default and adding an option for enabling it or enabling it by default and having an option to disable it.

The map export hasn't behaved like this few days ago.

view visited/unvisited places

Hi, I'd like to be able to view visited/unvisited places in OpenStreetMap.
There would be 2 mode for entering visited places.

  1. in OpenStreetMap,by tracing a path directly on the map using the mouse.
  2. by physicly 'riding' (data would be automaticly entered by GPS when roaming the streets)
    The visited/unvisited streets/places would show up in a different color (user customizable)
    Thx :)

{{bbox}} template is broken

When I run the query that contains {{bbox}} I end up with errors:

Error: line 8: static error: For the attribute "w" of the element "bbox-query" the only allowed values are floats between -180.0 and 180.0.

Error: line 8: static error: For the attribute "e" of the element "bbox-query" the only allowed values are floats between -180.0 and 180.0.

And indeed, when I look at the underlying request, it has numbers like this: -482.48 in the corresponding attributes.

automatically zoom to data when opened via autorun query string

When overpass turbo is opened with a query string containing a query and the autorun flag &R and the query does not depend on the map's bounds (e.g. an id-query) (and no map coordinates are explicitly provided by &C) it would make sense to automatically zoom to the result data. An alternative would be to implement another url parameter that triggers autozooming (e.g. &C=auto).

(This is a feature request by @simone-f.)

overpass-turbo showed data is not the same as data exported to Josm

Running this query ( basically i want to detect double spaces in "name" tag )

{{value=  }}
{{mArea=Sardegna}}

[timeout:600];
area["name"="{{mArea}}"];
(  way    (area)    ["name"~"{{value}}"];
  node    (area)    ["name"~"{{value}}"];
);
(  ._;  >;);out meta qt;

i get showed few results but export result to Josm result in much more data loaded...

Gpx export is fine...

Thank you
Marco

print detail when mouse over

I'd like to print detail of the item when mouse is over that item on the map.
The details would be user defined and stored in a file.
Thx :)

add export to KML

Some people may like to use KML as an export format. Using tokml would make this feature quite low-effort.

building interior plan

I'd like to map building interior plan.This would show up by clicking
on the address (on the map) and would bring up another window with the
building place inside it.I wonder if this would raise any 'privacy' issues.
Thx :)

improve feature-as-marker rendering

Under some circumstances the “render small features with marker” feature can be quite annoying. Typical examples are route and boundary relations.

A few ideas to improve the current situation:

  • make this disable-able on a per-query basis.
  • make this configurable via mapcss on a per-feature basis (MapCSS?)
  • introduce a more clever automatic mode that doesn't show markers for parts of relations that are connected to a larger graph (which itself is not small)

//edit: here's a relevant code line for hooking into this: https://github.com/tyrasd/overpass-turbo/blob/master/js/overpass.js#L500

Create API

Overpass turbo is the only way to get a geoJSON directly from the OSM API. It would be great to have an API from the overpass turbo site to get an geoJSON from that site.

Comments force "Export > Raw data from overpass api" to output xml not json

This is a bit odd. I made a simple query from a Turbo template, and the template was designed to output JSON (output="json"). When I went through "Export > Raw data from overpass api", then copied the link and ran it using wget:

       wget -O uk_ele_2.notjson "http://overpass-api.de/api/interpreter?data=%3C%21--%0AThis%20query%20looks%20for%20nodes%2C%20ways%20and%20relations%20%0Awith%20the%20given%20key.%0AChoose%20your%20region%20and%20hit%20the%20Run%20button%20above%21%0A--%3E%0A%0A%3Cosm-script%20output%3D%22json%22%3E%0A%20%20%3Cunion%3E%0A%20%20%20%20%3Cquery%20type%3D%22node%22%3E%0A%20%20%20%20%20%20%3Chas-kv%20k%3D%22ele%22%2F%3E%0A%20%20%20%20%20%20%3Cbbox-query%20s%3D%2249.89463439573421%22%20w%3D%22-6.8115234375%22%20n%3D%2258.676937672586924%22%20e%3D%221.845703125%22%2F%3E%0A%20%20%20%20%3C%2Fquery%3E%0A%20%20%20%20%3Cquery%20type%3D%22way%22%3E%0A%20%20%20%20%20%20%3Chas-kv%20k%3D%22ele%22%2F%3E%0A%20%20%20%20%20%20%3Cbbox-query%20s%3D%2249.89463439573421%22%20w%3D%22-6.8115234375%22%20n%3D%2258.676937672586924%22%20e%3D%221.845703125%22%2F%3E%0A%20%20%20%20%3C%2Fquery%3E%0A%20%20%20%20%3Cquery%20type%3D%22relation%22%3E%0A%20%20%20%20%20%20%3Chas-kv%20k%3D%22ele%22%2F%3E%0A%20%20%20%20%20%20%3Cbbox-query%20s%3D%2249.89463439573421%22%20w%3D%22-6.8115234375%22%20n%3D%2258.676937672586924%22%20e%3D%221.845703125%22%2F%3E%0A%20%20%20%20%3C%2Fquery%3E%0A%20%20%3C%2Funion%3E%0A%20%20%3Cprint%20mode%3D%22body%22%2F%3E%0A%20%20%3Crecurse%20type%3D%22down%22%2F%3E%0A%20%20%3Cprint%20mode%3D%22skeleton%22%2F%3E%0A%3C%2Fosm-script%3E"

It did not return JSON but returned XML. This is wrong.

Then I modified the query in the Turbo text panel, simply removing the XML "<!--" comment from the top. When I ran this one:

     wget -O uk_ele_2.json "http://overpass-api.de/api/interpreter?data=%0A%3Cosm-script%20output%3D%22json%22%3E%0A%20%20%3Cunion%3E%0A%20%20%20%20%3Cquery%20type%3D%22node%22%3E%0A%20%20%20%20%20%20%3Chas-kv%20k%3D%22ele%22%2F%3E%0A%20%20%20%20%20%20%3Cbbox-query%20s%3D%2249.89463439573421%22%20w%3D%22-6.8115234375%22%20n%3D%2258.676937672586924%22%20e%3D%221.845703125%22%2F%3E%0A%20%20%20%20%3C%2Fquery%3E%0A%20%20%20%20%3Cquery%20type%3D%22way%22%3E%0A%20%20%20%20%20%20%3Chas-kv%20k%3D%22ele%22%2F%3E%0A%20%20%20%20%20%20%3Cbbox-query%20s%3D%2249.89463439573421%22%20w%3D%22-6.8115234375%22%20n%3D%2258.676937672586924%22%20e%3D%221.845703125%22%2F%3E%0A%20%20%20%20%3C%2Fquery%3E%0A%20%20%20%20%3Cquery%20type%3D%22relation%22%3E%0A%20%20%20%20%20%20%3Chas-kv%20k%3D%22ele%22%2F%3E%0A%20%20%20%20%20%20%3Cbbox-query%20s%3D%2249.89463439573421%22%20w%3D%22-6.8115234375%22%20n%3D%2258.676937672586924%22%20e%3D%221.845703125%22%2F%3E%0A%20%20%20%20%3C%2Fquery%3E%0A%20%20%3C%2Funion%3E%0A%20%20%3Cprint%20mode%3D%22body%22%2F%3E%0A%20%20%3Crecurse%20type%3D%22down%22%2F%3E%0A%20%20%3Cprint%20mode%3D%22skeleton%22%2F%3E%0A%3C%2Fosm-script%3E"

...it worked as intended, i.e. returning JSON content (and with a MIME type application/json).

It seems that for some reason, the comment breaks the format request.

(Please let me know if I need to redirect this to overpass issues rather than turbo issues!)

finalize multipolygon rendering

multipolygon rendering is still somewhat unfinished:

  1. do not render duplicate polygons if the outer way of a simple MP has the same tags as the relation (i.e. do only render either the relation-mp or the simple-mp polygons, not both)
  2. do not render untagged multipolygon outlines (i.e. handle untagged mp outlines analogously to untagged way-nodes)
  3. After (2) we can drop ::mp_outline and @mp_outline from mapcss and exported data, as this should be accessible via selectors or @relations respectively.

load features and values from a file automaticly place them on a map

Hi I'd like to be able to define my own place names (features) and categories (values).

use custom calcs/traces (feature/value) and automaticly place them on a map by loading a file.
On the map, each calc/trace (feature/value) would be a colored dot.
In the file the first column would be the RGB color code (HTML format #RRGGBB) (Ex. FF0000, 0000FF)
the second column would be the place type (Ex. 0000, FFFF)
and the following columns (on the same line) would be the complet address inside single qoutes.

in this example:
0000 corresponding to 'restaurant'
FFFF corresponding to 'gas station'
FF0000 corresponding to red in HTML
0000FF corresponding to blue in HTML

Ex.
FF0000 0000 '1234 Main st. Smalltown CA. U.S.A.'
0000FF FFFF '4000 5nd st. Smalltown CA. U.S.A.'

This would place 1 red and 1 blue dots in the map at those 2 addresse locations and zoom in if necessary.
The zoom parameters would be user defined.

Each line in the file (seperated by \n \r \n\r for UNIX/MAC/Windows resp.) corresponding to a dot on the map.
There can an an infinit (modulo OS/device limits) number of lines in a file (dots on the map).
If 2 or more dots point at the same addresse then
if they are the same color then place the number of dots inside the red dot on the map.
I use the color of the dot (in this case red) when 2 or more dots point at the same addresse and are not different.
Ex. if '1234 Main st. Smalltown CA. U.S.A.' has 2 restorants then '2' would appear on the map at
'1234 Main st. Smalltown CA. U.S.A.' within a red dot.Clicking on it would expand to 2 red dots.

If they are the not same color then place the number of dots inside alternating color the dot on the map.
I use the alternating color dot when 2 or more dots point at the same addresse and are different.
Ex. if '1234 Main st. Smalltown CA. U.S.A.' has 1 restorant and a gas station then
'2' would appear on the map at '1234 Main st. Smalltown CA. U.S.A.' within a alternating color dot. In this case
red and blue.In this case the above file contents would be:
FF0000 0000 '1234 Main st. Smalltown CA. U.S.A.'
0000FF FFFF '1234 Main st. Smalltown CA. U.S.A.'
Clicking on it would expand to 1 red and 1 blue dot.

The alternating color would be those of the correcponding items.In this case red (FF0000) and blue (0000FF).
The alternating time is user defined.

The exact rendering of those dot would be depandant on the number of dots and location within the map taking into
account the available screen space.It is unspecified weather they are from left to right,top to bottom, ect...

Thx :)

Share as HTML to embed map / read-only version of map view

overpass turbo is great for constructing queries.
There is a great feature that enables to share current map view with query.
Wouldn't be it even greater if it had a feature to easily create embeddable maps, similar to Google map's "share as HTML"?

bring "interactive map" up to date

The interactive map (map.html) export has fallen behind the regular overpass turbo functionality quite a lot (e.g. mapcss, data statement, etc.). Bring it up to date.

  • MapCSS
  • Data Statement
  • other Parameters
  • small features rendering
  • …?

Idea: Add cuurent bbox button

Hi,
i think i would be nice to add the current view as bbox to your query, perhaps with an additional button at the map view controls. Just the current extend or if possible changeable like the export on osm.org.

an other stupid question :)

I'm back from a mapping party (Comenius-Project) of our team in Romania.
http://wiki.openstreetmap.org/wiki/Comenius_OSM_and_Tourism

I met there a student from Angra do Heroismo, Portugal. http://overpass-turbo.eu/s/bP
Dario Ferreira will use the Turbo in the thesis, he has to write for his exam in his school.

Now Darios question ....
Is it possible to integrate something similar to this one in the Turbo-Overpass?
http://geschichtskarten.openstreetmap.de/historische_objekte/?zoom=18&lat=49.41742&lon=6.84143&layers=B0000TT&select=n563314087

In "Geschichtskarte" one can see the photo, which is linked to wikimedia.
BTW: The thesis of Dario is describing a hiking trail on his island and it would be great,
if hikers could see some photos on the way.

Recursive child member problem

The query below works to get dual carriageway relations, their child carriageway relations and the associated ways/nodes:
http://overpass-turbo.eu/s/1QJ

However, the Overpass QL to do the same with child recursion does not give the same output:

reltype=dual_carriageway;
(._;>>);
out;

This seems to be because relation members are not included for downwards recursions of relations.

Customized Styling of Map Features

Currently, nodes are shown as a blue circle. It would be great to be able to set a custom image for a marker. Probably, it's out of scope of overpass api, but still good to have for embed map service.

list of valid addresses for each street name

I'd like to list of valid addresses for each street name. Entering the street name
and city would return a list of valid addresses. (abandoned/unused building are still valid
and returned in the list).

As an alternative option I'd like to enter street name,addresse and city and return true/false
if the addresse if valid/invalid

Thx :)

time measurement

When calling a overpass query the user maybe desires to know about the execution time over the overpass query and downloading time of the data.
Can these steps be visualized if the waiting window? Or in a special meta tab (including human readable content size), etc...?

Do not fix statements in comments

Using comments to temporarily disable some query part, at least the "out body;" statement in a comment will trigger a warning and will be fixed into "out meta;" when I try to export the data into josm.

GeoJSON export

I stumbled over the geojson file exported by overpass-turbo.eu on April 20th when I wanted to use it together with Tilemill (made by MapBox).

Tilemill as well as Carto as well as Mapnik does not support complex objects for attributes in geojson.
Overpass-turbo generates geojson files that collect all tags in a "super"-attribute "tags" = { "highway": "service", "service": "driveway"}.
To use that as a mapnik (or tilemill - which is a mapnik preprocessor) data source, it would have to be flattened.

It would be nice to get that kind of output, perhaps optionally (like: flat geojson)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.