Difference between revisions of "Template:MER-opq-count"
Jump to navigation
Jump to search
m |
m |
||
| Line 1: | Line 1: | ||
<!-- Please DO NOT EDIT! Please contact User:Mstr for any edits! --><includeonly>{{#if:{{{search1|}}} | | <!-- Please DO NOT EDIT! Please contact User:Mstr for any edits! --><includeonly>{{#if:{{{search1|}}} | | ||
| − | {{#clear_external_data:}}{{#get_web_data:url=https:// | + | {{#clear_external_data:}}{{#get_web_data:url=https://overpass.ogf.rent-a-planet.com/api/interpreter?data={{#if:{{{area|}}} | |
{{#ifeq:{{{area}}} | MER | | {{#ifeq:{{{area}}} | MER | | ||
(area%5B%22admin_level%22=2%5D%5B%22name%22=%22Merganien%22%5D;)-%3E.bndarea;%0A | (area%5B%22admin_level%22%5D%5B%22name%22=%22{{{area}}}%22%5D;)-%3E.bndarea;%0A }} }}(node{{#if:{{{area|}}} | | (area%5B%22admin_level%22=2%5D%5B%22name%22=%22Merganien%22%5D;)-%3E.bndarea;%0A | (area%5B%22admin_level%22%5D%5B%22name%22=%22{{{area}}}%22%5D;)-%3E.bndarea;%0A }} }}(node{{#if:{{{area|}}} | | ||
| Line 20: | Line 20: | ||
}} | }} | ||
| + | |||
| + | <!-- | ||
<pre>{{MER-opq-count | <pre>{{MER-opq-count | ||
| search1 = highway/primary | | search1 = highway/primary | ||
| Line 42: | Line 44: | ||
{{MER-opq-count | search1 = ogf:count/inh241 | area = MER }} | {{MER-opq-count | search1 = ogf:count/inh241 | area = MER }} | ||
| − | {{MER-opq-count | search1 = ogf:count/inh241 | area = Federal States of Archanta }} | + | {{MER-opq-count | search1 = ogf:count/inh241 | area = Federal States of Archanta }}--> |
<!--{{{#iferror: {{#ifexpr: {{MER-opq-count | search1 = building/yes | area = Myrcia}} | <dann-text> | <sonst-text> }} | Keine Zahl | Zahl }}--> | <!--{{{#iferror: {{#ifexpr: {{MER-opq-count | search1 = building/yes | area = Myrcia}} | <dann-text> | <sonst-text> }} | Keine Zahl | Zahl }}--> | ||
| Line 50: | Line 52: | ||
<!--{{#expr: ({{MER-opq-count | search1 = building/yes | area = Myrcia}})+3 }}--> | <!--{{#expr: ({{MER-opq-count | search1 = building/yes | area = Myrcia}})+3 }}--> | ||
| − | |||
[[Category:Overpass templates]]</noinclude> | [[Category:Overpass templates]]</noinclude> | ||
Revision as of 02:14, 7 January 2023
Examples
{{MER-opq-count
| search1 = highway/primary
}}
Error while fetching data from URL https://overpass.ogf.rent-a-planet.com/api/interpreter?data=(node%5B%22highway%22%3D%22primary%22%5D;way%5B%22highway%22%3D%22primary%22%5D;relation%5B%22highway%22%3D%22primary%22%5D%3B)%3B%0Aout%20count%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=(node%5B%22highway%22%3D%22primary%22%5D;way%5B%22highway%22%3D%22primary%22%5D;relation%5B%22highway%22%3D%22primary%22%5D%3B)%3B%0Aout%20count%3B after 3 tries.