Convert form

to pretty XML to pretty Overpass QL to compact Overpass QL to OpenLayers overlay

Overpass QL

A valid input is a sequence of one or more statements, where each statement ends with a double colon ";". Stataments are actions, queries or the initial declaration. You may add any amount of whitespace you like between two statements or immediately before the double colon.

The only exisiting action so far is out. Thus e.g. "out;" is a valid action. Possible variants are to add one of the modifiers below between out and the double colon:

The default options are body and asc.

A query starts with the type of the result. This can be node, way, relation or rel (shortcut for relation). After the type follow one or more clauses. The individual clauses all have brackets or parentheses and hence are written without double colon one after another.

The following clauses are possible:

The initial declaration can be omitted if nothing must be declared. Otherwise, all declarations are enclosed in brackets and written one after another (without a double colon). Possible declarations are: