Downloads data from the OSM database using the Overpass API.
The query parameter must contain only the element-selecting statements(Overpass QL or Overpass XML), each terminated by ;. The surrounding
request is built automatically, so:
- Do not add a settings header such as
[out:json]or[timeout:...]. - Do not add any
out ...;output statement. The selected elements are wrapped in a union and their geometry is fetched automatically (internallyout body; >; out skel qt;). A trailingoutends up inside the union and causes a parse error.
Restrict every statement to the requested area with the {{bbox}}placeholder. It is replaced with the bounding box of the connected bboxinput. Leaving it out runs the query against the whole planet and will
usually fail with an out-of-memory error.
Example – all buildings inside the bounding box::
way"building";
relation"building";