Overpass turbo/Templates

From OpenStreetMap Wiki
Jump to navigation Jump to search
Overpass API logo.svg
edit
Overpass API · Language reference · Language guide · Technical terms · Areas · Query examples · Sparse Editing · Permanent ID · FAQ · more · Web site
Servers status · Versions · Development · Technical design · Installation · XAPI compatibility layer · Public transport sketch lines · Applications · Source code and issues
Overpass turbo · Wizard · Overpass turbo shortcuts · MapCSS stylesheets · Export to GeoJSON · more · Development · Source code and issues · Web site
Overpass Ultra · Examples · Overpass Ultra extensions · MapLibre stylesheets · URL Params · more · Source code and issues · Web site

Overpass turbo comes with a set of predefined templates, which you can use instead of the complete ("share") permalink for simple use cases.

Each template has a name and a set of parameters (as defined below). You create a link to a template by using the URL-parameter template. For example:

 http://overpass-turbo.eu/?template=key-value&key=amenity&value=parking

Note that the values for the template-parameters have to be provided as  URL-encoded strings.

list of overpass turbo templates
template parameters description example
key
  • key
looks for nodes, ways and relations with the given key.
try it yourself in overpass-turbo
key-type
  • key
  • type
looks for nodes, ways or relations with the given key.
try it yourself in overpass-turbo
key-value
  • key
  • value
looks for nodes, ways and relations with the given key/value combination.
try it yourself in overpass-turbo
key-value-type
  • key
  • value
  • type
looks for nodes, ways or relations with the given key/value combination.
try it yourself in overpass-turbo
type-id
  • type
  • id
looks for a node, way or relation with the given id.
try it yourself in overpass-turbo