Difference between revisions of "Overpass templates"

From geofiction
Jump to navigation Jump to search
 
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


' ' %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




Refresh
Changeset ID User ID User Name Date and Time
1586730 28815 JasmineDM 2026-05-05 00:15:56
1586729 22595 Crarji 2026-05-05 00:15:49
1586728 1017 ratsoff2u 2026-05-05 00:13:40
1586727 1017 ratsoff2u 2026-05-05 00:07:48
1586726 28815 JasmineDM 2026-05-04 23:59:35
1586725 1956 kingfries 2026-05-04 23:51:21
1586724 22998 Tomikals 2026-05-04 23:46:20
1586723 22998 Tomikals 2026-05-04 23:34:00
1586722 24720 blz 2026-05-04 23:28:44
1586721 14790 forkymapper 2026-05-04 22:53:57
1586720 26317 sergjack 2026-05-04 22:36:41
1586719 22566 Olejowy 2026-05-04 22:22:24
1586718 14612 Glauber 2026-05-04 21:55:56
1586717 25913 Sweetykid 2026-05-04 21:53:17
1586716 22566 Olejowy 2026-05-04 21:18:03
1586715 14788 Geoc3ladus 2026-05-04 21:17:44
1586714 26856 jr000 2026-05-04 21:17:22
1586713 4711 logasa1 2026-05-04 21:16:28
1586712 1141 Imperator 2026-05-04 21:14:51
1586711 18 Easky30 2026-05-04 21:01:23
1586710 22998 Tomikals 2026-05-04 20:59:23
1586709 25969 MarchisioThePal 2026-05-04 20:57:59
1586708 1510 anakes 2026-05-04 20:57:00
1586707 28815 JasmineDM 2026-05-04 20:49:10
1586706 1510 anakes 2026-05-04 20:46:36
1586705 1510 anakes 2026-05-04 20:46:25
1586704 26434 Bulest 2026-05-04 20:29:58
1586703 30441 Glebb 2026-05-04 20:28:15
1586702 30441 Glebb 2026-05-04 20:27:28
1586701 26856 jr000 2026-05-04 20:27:25
1586700 30441 Glebb 2026-05-04 20:23:01
1586699 26856 jr000 2026-05-04 20:21:23
1586698 30441 Glebb 2026-05-04 20:21:09
1586697 22566 Olejowy 2026-05-04 20:20:48
1586696 26856 jr000 2026-05-04 20:16:23
1586695 26434 Bulest 2026-05-04 20:16:11
1586694 26855 MiniMapper 2026-05-04 20:13:01
1586693 28815 JasmineDM 2026-05-04 20:07:02
1586692 14612 Glauber 2026-05-04 19:39:34
1586691 12340 infinatious 2026-05-04 19:34:28
1586690 29951 TheRealStanPines 2026-05-04 19:31:37
1586689 12340 infinatious 2026-05-04 19:29:58
1586688 22566 Olejowy 2026-05-04 19:18:40
1586687 1017 ratsoff2u 2026-05-04 19:09:40
1586686 28388 xoxasochka 2026-05-04 19:06:21
1586685 18 Easky30 2026-05-04 19:01:21
1586684 16354 Gonzy 2026-05-04 18:58:28
1586683 1510 anakes 2026-05-04 18:50:08
1586682 18 Easky30 2026-05-04 18:48:54
1586681 1267 Leowezy 2026-05-04 18:48:30
1586680 1267 Leowezy 2026-05-04 18:46:58
1586679 1405 tule00 2026-05-04 18:23:22
1586678 30408 Avery 2026-05-04 18:13:25
1586677 28989 HugoC01 2026-05-04 18:02:41
1586676 29297 Pst42 2026-05-04 17:49:51
1586675 22998 Tomikals 2026-05-04 17:46:19
1586674 1017 ratsoff2u 2026-05-04 17:44:52
1586673 18 Easky30 2026-05-04 17:40:47
1586672 16354 Gonzy 2026-05-04 17:40:24
1586671 1017 ratsoff2u 2026-05-04 17:39:51
1586670 28815 JasmineDM 2026-05-04 17:38:47
1586669 22998 Tomikals 2026-05-04 17:33:39
1586668 1139 Rasmus Rasmusson 2026-05-04 17:30:02
1586667 28815 JasmineDM 2026-05-04 17:22:08
1586666 1139 Rasmus Rasmusson 2026-05-04 17:15:30
1586665 29020 kz-star 2026-05-04 17:11:43
1586664 1017 ratsoff2u 2026-05-04 17:10:59
1586663 28388 xoxasochka 2026-05-04 17:06:45
1586662 17286 ItsTybear 2026-05-04 17:06:10
1586661 1139 Rasmus Rasmusson 2026-05-04 16:58:38
1586660 28388 xoxasochka 2026-05-04 16:58:23
1586659 12340 infinatious 2026-05-04 16:57:36
1586658 28388 xoxasochka 2026-05-04 16:57:13
1586657 28815 JasmineDM 2026-05-04 16:50:10
1586656 30250 Haksi Tiao 2026-05-04 16:43:37
1586655 27948 dev_null_42 2026-05-04 16:42:49
1586654 25969 MarchisioThePal 2026-05-04 16:33:35
1586653 29029 林雨霞 2026-05-04 16:24:56
1586652 29068 Ďaq Deg Lińh Qiēd 2026-05-04 16:23:09
1586651 25343 raxx 2026-05-04 16:21:10
1586650 1017 ratsoff2u 2026-05-04 16:18:48
1586649 25343 raxx 2026-05-04 15:58:54
1586648 1956 kingfries 2026-05-04 15:53:57
1586647 25343 raxx 2026-05-04 15:52:44
1586646 28388 xoxasochka 2026-05-04 15:46:42
1586645 25343 raxx 2026-05-04 15:43:39
1586644 30250 Haksi Tiao 2026-05-04 15:40:59
1586643 28388 xoxasochka 2026-05-04 15:40:56
1586642 1956 kingfries 2026-05-04 15:39:34
1586641 28388 xoxasochka 2026-05-04 15:32:46
1586640 28388 xoxasochka 2026-05-04 15:32:09
1586639 28388 xoxasochka 2026-05-04 15:31:23
1586638 28388 xoxasochka 2026-05-04 15:30:41
1586637 1017 ratsoff2u 2026-05-04 15:27:40
1586636 29068 Ďaq Deg Lińh Qiēd 2026-05-04 15:13:32
1586635 1017 ratsoff2u 2026-05-04 15:06:04
1586634 1017 ratsoff2u 2026-05-04 15:01:40
1586633 30250 Haksi Tiao 2026-05-04 15:00:41
1586632 22566 Olejowy 2026-05-04 14:58:57
1586631 1017 ratsoff2u 2026-05-04 14:56:03