Difference between revisions of "Overpass templates"
(Created page with " * Template:MER-overpquery ** Template:MER-opq-enablenames ** Template:MER-opq-searchattributes ** Template:OSM tagref * Template:MER-opq-length * Te...") |
m |
||
| Line 1: | Line 1: | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | 2314028892 | ||
| + | |||
| + | http://overpass.osm.rambler.ru/cgi/interpreter?data=%28way[tourism~hotel]%28around:5000,50.10707,8.76040%29%29;out; | ||
| + | 103498433 | ||
| + | [https://turbo.ogf.rent-a-planet.com/?Q=node(2314028892)%3Bout] | ||
| + | |||
| + | <!-- Please DO NOT EDIT! Please contact User:Mstr for any edits! | ||
| + | <includeonly>{{#if:{{{search1|}}} | | ||
| + | {{#clear_external_data:}}{{#get_web_data:url=https://turbo.ogf.rent-a-planet.com/api/interpreter?data={{#if:{{{area|}}} | | ||
| + | {{#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.bndarea) }}%5B%22{{lc: {{#replace:{{#titleparts:{{{search1}}}|1|1}}| |_}} }}%22%3D%22{{#replace:{{#titleparts:{{{search1}}}|2|2}}| |_}}%22%5D;way{{#if:{{{area|}}} | | ||
| + | (area.bndarea) }}%5B%22{{lc: {{#replace:{{#titleparts:{{{search1}}}|1|1}}| |_}} }}%22%3D%22{{#replace:{{#titleparts:{{{search1}}}|2|2}}| |_}}%22%5D;relation{{#if:{{{area|}}} | | ||
| + | (area.bndarea) }}%5B%22{{lc: {{#replace:{{#titleparts:{{{search1}}}|1|1}}| |_}} }}%22%3D%22{{#replace:{{#titleparts:{{{search1}}}|2|2}}| |_}}%22%5D%3B)%3B%0Aout%20count%3B | ||
| + | |format=xml | ||
| + | |data= | ||
| + | count=/osm/count/@total | ||
| + | |use xpath | ||
| + | }}{{#for_external_table:{{{count}}} }} | 0 }}<!--{{#clear_external_data:}}--></includeonly><noinclude>--> | ||
| + | |||
| + | =Examples= | ||
| Line 19: | Line 45: | ||
* [[x]] | * [[x]] | ||
* [[x]] | * [[x]] | ||
| + | |||
| + | |||
| + | |||
| + | ' ' %20 | ||
| + | |||
| + | [ %5B | ||
| + | |||
| + | ] %5D | ||
| + | |||
| + | = %3D | ||
| + | |||
| + | {{ %7B%7B | ||
| + | |||
| + | }} %7D%7D | ||
| + | |||
| + | ; %3B | ||
| + | |||
| + | ! %21 | ||
| + | |||
| + | line break %0A | ||
| + | |||
| + | space %20 | ||
| + | |||
| + | " %22 | ||
| + | |||
| + | > %3E | ||
| + | |||
| + | |||
| + | |||
| + | {{#clear_external_data:}} | ||
| + | {{#get_web_data:url=https://osm3s.opengeofiction.net/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 | ||
| + | |format=xml | ||
| + | |order by=/osm/relation/tag[@k='name']/@v DESC | ||
| + | |data= | ||
| + | relation_id=/osm/relation/@id | ||
| + | ,name=/osm/relation/tag[@k='name']/@v | ||
| + | ,distance=/osm/relation/tag[@k='distance']/@v | ||
| + | ,destination=/osm/relation/tag[@k='destination']/@v | ||
| + | ,ref=/osm/relation/tag[@k='ref']/@v | ||
| + | |use xpath | ||
| + | }} | ||
| + | {| class="wikitable sortable" | ||
| + | ! Name | ||
| + | ! Length<br/>(km)<br> | ||
| + | ! Drains into | ||
| + | |||
| + | |||
| + | {{#for_external_table:<nowiki/> | ||
| + | {{!}}- | ||
| + | {{!}}[http://opengeofiction.net/relation/{{{relation_id}}} {{{name}}}] | ||
| + | {{!}}{{{distance}}} | ||
| + | {{!}}[[{{{destination}}}]] | ||
| + | }} | ||
| + | |} | ||
| + | {{#clear_external_data:}} | ||
| + | |||
| + | |||
| + | |||
| + | ::::::::<span class="mw-ui-button" role="button" aria-disabled="false">{{{1|[https://wiki.opengeofiction.net/index.php/OpenGeofiction:Recent_changesets?action=purge&titles=OpenGeofiction:Recent_changesets Refresh]}}}</span>{{#clear_external_data:}} | ||
| + | {{#get_web_data:url=https://opengeofiction.net/api/0.6/changesets | ||
| + | |format=xml | ||
| + | |data= | ||
| + | changeset_id=/osm/changeset/@id | ||
| + | ,uid=/osm/changeset/@uid | ||
| + | ,user=/osm/changeset/@user | ||
| + | ,created_date=/osm/changeset/@created_at | ||
| + | <!-- ,comment=/osm/changeset/tag[@k="comment"]/@v --> | ||
| + | |use xpath | ||
| + | }} | ||
| + | {| class="wikitable sortable" | ||
| + | ! Changeset ID | ||
| + | ! User ID | ||
| + | ! User Name | ||
| + | ! Date and Time | ||
| + | {{#display_external_table:template=ExternalDataTest01 | ||
| + | |data=changeset_id= | ||
| + | changeset_id | ||
| + | ,uid=uid | ||
| + | ,user=user | ||
| + | ,created_date=created_date | ||
| + | }} | ||
| + | |} | ||
Revision as of 02:48, 7 January 2023
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
' ' %20
[ %5B
] %5D
= %3D
{{ %7B%7B
}} %7D%7D
- %3B
! %21
line break %0A
space %20
" %22
> %3E
Error while fetching data from URL https://osm3s.opengeofiction.net/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: osm3s.opengeofiction.net
There was a problem during the HTTP request: 0 Error
Could not get URL https://osm3s.opengeofiction.net/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
|
|---|
| Changeset ID | User ID | User Name | Date and Time |
|---|---|---|---|
| 1587031 | 30419 | ntstocky | 2026-05-06 08:04:08 |
| 1587030 | 30375 | yuuranko | 2026-05-06 08:03:55 |
| 1587029 | 30419 | ntstocky | 2026-05-06 07:58:53 |
| 1587028 | 30419 | ntstocky | 2026-05-06 07:57:36 |
| 1587027 | 30419 | ntstocky | 2026-05-06 07:53:01 |
| 1587026 | 30419 | ntstocky | 2026-05-06 07:50:18 |
| 1587025 | 30419 | ntstocky | 2026-05-06 07:35:41 |
| 1587024 | 25454 | Arbhin | 2026-05-06 07:22:27 |
| 1587023 | 27948 | dev_null_42 | 2026-05-06 07:14:18 |
| 1587022 | 30419 | ntstocky | 2026-05-06 07:10:40 |
| 1587021 | 30419 | ntstocky | 2026-05-06 07:04:36 |
| 1587020 | 28761 | DynoDynosaur218 | 2026-05-06 07:01:51 |
| 1587019 | 9678 | Infrarrojo | 2026-05-06 06:58:12 |
| 1587018 | 24710 | Dfltcher2 | 2026-05-06 06:57:38 |
| 1587017 | 1368 | Otto Yamamoto | 2026-05-06 06:55:16 |
| 1587016 | 1368 | Otto Yamamoto | 2026-05-06 06:54:43 |
| 1587015 | 1368 | Otto Yamamoto | 2026-05-06 06:53:26 |
| 1587014 | 25454 | Arbhin | 2026-05-06 06:52:48 |
| 1587013 | 1368 | Otto Yamamoto | 2026-05-06 06:52:06 |
| 1587012 | 1368 | Otto Yamamoto | 2026-05-06 06:50:39 |
| 1587011 | 1368 | Otto Yamamoto | 2026-05-06 06:48:59 |
| 1587010 | 1368 | Otto Yamamoto | 2026-05-06 06:47:31 |
| 1587009 | 11647 | curiomap | 2026-05-06 06:44:06 |
| 1587008 | 11647 | curiomap | 2026-05-06 06:43:13 |
| 1587007 | 29019 | stolas123 | 2026-05-06 06:41:27 |
| 1587006 | 30375 | yuuranko | 2026-05-06 06:21:25 |
| 1587005 | 232 | Ernestpkirby | 2026-05-06 06:19:29 |
| 1587004 | 1368 | Otto Yamamoto | 2026-05-06 06:10:05 |
| 1587003 | 232 | Ernestpkirby | 2026-05-06 06:07:54 |
| 1587002 | 232 | Ernestpkirby | 2026-05-06 06:03:52 |
| 1587001 | 232 | Ernestpkirby | 2026-05-06 06:02:48 |
| 1587000 | 29019 | stolas123 | 2026-05-06 06:00:31 |
| 1586999 | 232 | Ernestpkirby | 2026-05-06 05:55:46 |
| 1586998 | 23019 | AmpereBEEP | 2026-05-06 05:53:28 |
| 1586997 | 29019 | stolas123 | 2026-05-06 05:46:10 |
| 1586996 | 12340 | infinatious | 2026-05-06 05:40:50 |
| 1586995 | 17027 | Mapping Expert | 2026-05-06 05:27:08 |
| 1586994 | 17027 | Mapping Expert | 2026-05-06 05:23:17 |
| 1586993 | 4711 | logasa1 | 2026-05-06 05:12:47 |
| 1586992 | 28761 | DynoDynosaur218 | 2026-05-06 05:04:19 |
| 1586991 | 28761 | DynoDynosaur218 | 2026-05-06 05:01:43 |
| 1586990 | 6697 | pdplm | 2026-05-06 04:51:14 |
| 1586989 | 23019 | AmpereBEEP | 2026-05-06 04:40:32 |
| 1586988 | 30375 | yuuranko | 2026-05-06 04:40:29 |
| 1586987 | 17027 | Mapping Expert | 2026-05-06 04:37:12 |
| 1586986 | 17027 | Mapping Expert | 2026-05-06 04:33:13 |
| 1586985 | 30375 | yuuranko | 2026-05-06 04:30:27 |
| 1586984 | 24710 | Dfltcher2 | 2026-05-06 04:21:41 |
| 1586983 | 11647 | curiomap | 2026-05-06 03:49:01 |
| 1586982 | 6697 | pdplm | 2026-05-06 03:48:42 |
| 1586981 | 30375 | yuuranko | 2026-05-06 03:48:31 |
| 1586980 | 27788 | pokenia_eidan | 2026-05-06 03:46:51 |
| 1586979 | 23019 | AmpereBEEP | 2026-05-06 03:42:25 |
| 1586978 | 30375 | yuuranko | 2026-05-06 03:38:06 |
| 1586977 | 30375 | yuuranko | 2026-05-06 03:20:28 |
| 1586976 | 30375 | yuuranko | 2026-05-06 03:05:53 |
| 1586975 | 30375 | yuuranko | 2026-05-06 03:04:00 |
| 1586974 | 23019 | AmpereBEEP | 2026-05-06 03:02:08 |
| 1586973 | 27290 | Berdly | 2026-05-06 02:59:54 |
| 1586972 | 22595 | Crarji | 2026-05-06 02:44:16 |
| 1586971 | 11647 | curiomap | 2026-05-06 02:42:01 |
| 1586970 | 11787 | MapUser | 2026-05-06 02:36:33 |
| 1586969 | 17528 | AustinBoath | 2026-05-06 02:35:31 |
| 1586968 | 17528 | AustinBoath | 2026-05-06 02:21:05 |
| 1586967 | 25841 | Sortsdam | 2026-05-06 02:02:19 |
| 1586966 | 27290 | Berdly | 2026-05-06 01:16:33 |
| 1586965 | 22998 | Tomikals | 2026-05-06 00:37:36 |
| 1586964 | 2386 | thermo_nuclear | 2026-05-06 00:23:40 |
| 1586963 | 12340 | infinatious | 2026-05-06 00:10:41 |
| 1586962 | 15584 | Izaland Terramorphing Committee | 2026-05-05 23:53:42 |
| 1586961 | 18271 | Bob Lee | 2026-05-05 23:49:01 |
| 1586960 | 1405 | tule00 | 2026-05-05 23:14:43 |
| 1586959 | 1956 | kingfries | 2026-05-05 23:00:43 |
| 1586958 | 26856 | jr000 | 2026-05-05 22:59:46 |
| 1586957 | 19188 | KTheBritMC | 2026-05-05 22:56:38 |
| 1586956 | 22476 | Lithium-Ion | 2026-05-05 22:50:05 |
| 1586955 | 22476 | Lithium-Ion | 2026-05-05 22:37:09 |
| 1586954 | 2322 | Toadwart | 2026-05-05 22:35:07 |
| 1586953 | 12340 | infinatious | 2026-05-05 22:26:23 |
| 1586952 | 1761 | Brunanter | 2026-05-05 22:16:18 |
| 1586951 | 1956 | kingfries | 2026-05-05 22:11:25 |
| 1586950 | 30095 | Mapenjoyer | 2026-05-05 22:06:50 |
| 1586949 | 30095 | Mapenjoyer | 2026-05-05 21:58:12 |
| 1586948 | 1956 | kingfries | 2026-05-05 21:55:47 |
| 1586947 | 26119 | MxCo | 2026-05-05 21:50:42 |
| 1586946 | 22998 | Tomikals | 2026-05-05 21:49:33 |
| 1586945 | 26695 | Poissott | 2026-05-05 21:42:49 |
| 1586944 | 26623 | QuartzSpoonOGF | 2026-05-05 21:38:38 |
| 1586943 | 4 | joschi81 | 2026-05-05 21:11:43 |
| 1586942 | 4 | joschi81 | 2026-05-05 21:07:45 |
| 1586941 | 1956 | kingfries | 2026-05-05 20:50:13 |
| 1586940 | 18 | Easky30 | 2026-05-05 20:30:18 |
| 1586939 | 26434 | Bulest | 2026-05-05 20:28:25 |
| 1586938 | 1956 | kingfries | 2026-05-05 20:12:02 |
| 1586937 | 1510 | anakes | 2026-05-05 20:02:45 |
| 1586936 | 1510 | anakes | 2026-05-05 19:59:10 |
| 1586935 | 28493 | Buuj | 2026-05-05 19:51:21 |
| 1586934 | 1956 | kingfries | 2026-05-05 19:49:15 |
| 1586933 | 20575 | jjrc1996 | 2026-05-05 19:41:14 |
| 1586932 | 22998 | Tomikals | 2026-05-05 19:40:34 |