Difference between revisions of "Template:NextBus map"
m |
m |
||
(2 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
{{#get_web_data: | {{#get_web_data: | ||
− | url=https://retro.umoiq.com/service/publicXMLFeed?command=routeConfig&a={{{agency}}}&r={{{route | + | url=https://retro.umoiq.com/service/publicXMLFeed?command=routeConfig&a={{{agency}}}&r={{{route|{{#show:{{BASEPAGENAME}}| ?rvalue}}}}} |
|format=XML | |format=XML | ||
|use xpath | |use xpath | ||
− | |data=latitude=/body/route/stop/@lat,displayname=/body/route/stop/@title,longitude=/body/route/stop/@lon,id=/body/route/stop/@stopId | + | |data=latitude=/body/route/stop/@lat,displayname=/body/route/stop/@title,longitude=/body/route/stop/@lon,tag=/body/route/stop/@tag,id=/body/route/stop/@stopId |
}} | }} | ||
<div class=bigmap>{{#ask: [[-Place::{{BASEPAGENAME}}]]|?latlong|format=googlemaps|scrollwheelzoom=yes|width=100%|height=100%|icon=Mm_20_red.png | <div class=bigmap>{{#ask: [[-Place::{{BASEPAGENAME}}]]|?latlong|format=googlemaps|scrollwheelzoom=yes|width=100%|height=100%|icon=Mm_20_red.png | ||
|locations={{#for_external_table: | |locations={{#for_external_table: | ||
− | {{{latitude}}},{{{longitude}}}~{{{displayname}}}~Stop id: [{{SERVER}}/ | + | {{{latitude}}},{{{longitude}}}~{{{displayname}}}~Stop id: [{{SERVER}}/Departure_times_(Umo_IQ)?id={{{tag}}}&agency={{{agency}}}&provider={{urlencode:{{#show:{{BASEPAGENAME}}|?provider}}}}&linkfrom={{urlencode:{{BASEPAGENAME}}}} {{{tag}}} (real time departures)] ~Bus20.png; |
}} | }} | ||
}}</div> | }}</div> | ||
− | Source: Transit agency via | + | Source: Transit agency via Umo IQ API. |
</includeonly> | </includeonly> |