Difference between revisions of "Template:GTFS map"

From Transit.Wiki
m
m (Return to original code)
Line 9: Line 9:
 
}}
 
}}
  
<div class=bigmap>{{#display_map:points={{#for_external_table:
+
<div class=bigmap>{{#ask: [[-Place::{{BASEPAGENAME}}]]|?latlong|format=googlemaps|icon=Mm_20_red.png
 +
|locations={{#for_external_table:
 
{{{latitude}}},{{{longitude}}}~{{{displayname}}}~{{{to}}}<br>Stop id: {{#if:{{{511|}}}|[{{SERVER}}/511_Departure_times?id={{{id}}}&agency=511 {{{id}}} (real time departures)]|{{#ifeq:{{{agency}}}|sacrt|{{{id}}} - [http://bustime.sacrt.com/bustime/eta/eta.jsp?id={{{id}}} Desktop], [http://m.sacrt.com/bdetails.aspx?stpid={{{id}}} Mobile]|{{{id}}}}}}}~File:Bus20.png;
 
{{{latitude}}},{{{longitude}}}~{{{displayname}}}~{{{to}}}<br>Stop id: {{#if:{{{511|}}}|[{{SERVER}}/511_Departure_times?id={{{id}}}&agency=511 {{{id}}} (real time departures)]|{{#ifeq:{{{agency}}}|sacrt|{{{id}}} - [http://bustime.sacrt.com/bustime/eta/eta.jsp?id={{{id}}} Desktop], [http://m.sacrt.com/bdetails.aspx?stpid={{{id}}} Mobile]|{{{id}}}}}}}~File:Bus20.png;
}}|service=googlemaps
+
}}
 
}}</div>
 
}}</div>
  
Line 22: Line 23:
 
{{!}}{{{displayname}}}
 
{{!}}{{{displayname}}}
 
{{!}}{{{to}}}
 
{{!}}{{{to}}}
{{!}}{{#if:{{{511|}}}|[{{SERVER}}/511_Departure_times?id={{{id}}}&agency=511 {{{id}}}]|{{#ifeq:{{{agency}}}|sacrt|{{{id}}} - [http://bustime.sacrt.com/bustime/eta/eta.jsp?id={{{id}}} Desktop], [http://m.sacrt.com/bdetails.aspx?stpid={{{id}}} Mobile]|{{{id}}}}}}}
+
{{!}}{{#if:{{{511|}}}|[https:{{SERVER}}/511_Departure_times?id={{{id}}}&agency=511 {{{id}}}]|{{#ifeq:{{{agency}}}|sacrt|{{{id}}} - [http://bustime.sacrt.com/bustime/eta/eta.jsp?id={{{id}}} Desktop], [http://m.sacrt.com/bdetails.aspx?stpid={{{id}}} Mobile]|{{{id}}}}}}}
 
}}
 
}}
 
|}
 
|}
 
</includeonly>
 
</includeonly>

Revision as of 17:39, 26 November 2018