Difference between revisions of "Template:NextBus map"

From Transit.Wiki
m
Line 7: Line 7:
 
|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}}/Departure_times_(Umo_IQ)?id={{{id}}}&agency={{{agency}}}&provider={{urlencode:{{#show:{{BASEPAGENAME}}|?provider}}}}&linkfrom={{urlencode:{{BASEPAGENAME}}}} {{{id}}} (real time departures)] ~Bus20.png;
+
{{{latitude}}},{{{longitude}}}~{{{displayname}}}~Stop id: [{{SERVER}}/Departure_times_(Umo_IQ)?id={{{id}}}&agency={{{agency}}}&provider={{urlencode:{{#show:{{BASEPAGENAME}}|?provider}}}}&linkfrom={{urlencode:{{BASEPAGENAME}}}} {{{tag}}} (real time departures)] ~Bus20.png;
 
}}
 
}}
 
}}</div>
 
}}</div>

Revision as of 13:58, 3 February 2023