Difference between revisions of "Overpass templates"
m (→Parser) |
m (→URL-encoding) |
||
| Line 19: | Line 19: | ||
|<pre>"</pre> | |<pre>"</pre> | ||
|<pre>></pre> | |<pre>></pre> | ||
| + | |<pre>$</pre> | ||
| + | |<pre>x</pre> | ||
| + | |<pre>x</pre> | ||
| + | |<pre>x</pre> | ||
|- | |- | ||
|%20 | |%20 | ||
| Line 33: | Line 37: | ||
|%22 | |%22 | ||
|%3E | |%3E | ||
| + | |%24 | ||
| + | |x | ||
| + | |x | ||
| + | |x | ||
|} | |} | ||
Revision as of 19:06, 31 January 2023
Elements
URL-encoding
' ' |
[ |
] |
= |
{{
|
}} |
; |
! |
| |
line break |
space |
" |
> |
$ |
x |
x |
x |
| %20 | %5B | %5D | %3D | %7B%7B | %7D%7D | %3B | %21 | %7C | line break %0A | space %20 | %22 | %3E | %24 | x | x | x |
d
Bounding box
x
2314028892
http://overpass.osm.rambler.ru/cgi/interpreter?data=%28way[tourism~hotel]%28around:5000,50.10707,8.76040%29%29;out; 103498433 [1]
</includeonly>-->
Examples
- Template:MER-opq-length
- Template:MER-opq-countsp
- Template:MER-autoTable rfrsh
- Template:MER-opq-count
- Template:MER-opq-eval
- Template:MER-opq-territorystatistics
- x
- x
- x
- x
- x
Create overpass code for copy&paste
More tests
Test count
Error while fetching data from URL https://overpass.ogf.rent-a-planet.com/api/interpreter?data=(area%5Bname%3D%22Guai%22%5D%5B%22admin_level%22%3D%222%22%5D%3B%20)-%3E.a%3B%20relation%5B%22type%22%3D%22waterway%22%5D%5B%22water%22%3D%22river%22%5D%5Bname%5D(area.a)%3Bout%3B: $2.
Error fetching URL: Could not resolve host: overpass.ogf.rent-a-planet.com
There was a problem during the HTTP request: 0 Error
Could not get URL https://overpass.ogf.rent-a-planet.com/api/interpreter?data=(area%5Bname%3D%22Guai%22%5D%5B%22admin_level%22%3D%222%22%5D%3B%20)-%3E.a%3B%20relation%5B%22type%22%3D%22waterway%22%5D%5B%22water%22%3D%22river%22%5D%5Bname%5D(area.a)%3Bout%3B after 3 tries.
| Name | Length (km) |
Drains into |
|---|
| Name | Length (km) |
Drains into |
|---|
}}ii6
uu
count=/osm/count/@total
count=/osm/count/tag[@k='total']/@v