Difference between revisions of "Template:GTFS map"

From Transit.Wiki
m
m
Line 4: Line 4:
  
 
{{#get_web_data:
 
{{#get_web_data:
url=http://apps.transitunlimited.org/gtfs/vtagtfs.csv
+
url=http://apps.transitunlimited.org/gtfs/{{{agency}}}gtfs.csv
 
|format=CSV with header
 
|format=CSV with header
 
|data=route=route_id,id=stop_code,displayname=stop_name,latitude=stop_lat,longitude=stop_lon
 
|data=route=route_id,id=stop_code,displayname=stop_name,latitude=stop_lat,longitude=stop_lon
Line 12: Line 12:
 
{{#ask: [[-Place::{{BASEPAGENAME}}]]|?latlong|height=550|format=googlemaps|width=90%|icon=mm_20_red.png
 
{{#ask: [[-Place::{{BASEPAGENAME}}]]|?latlong|height=550|format=googlemaps|width=90%|icon=mm_20_red.png
 
|locations={{#for_external_table:
 
|locations={{#for_external_table:
{{{latitude}}},{{{longitude}}}~{{{displayname}}}~Stop id: {{{id}}}~File:Bus20.png;
+
{{{latitude}}},{{{longitude}}}~{{{displayname}}}~Stop id: {{#if:{{{511|}}}|[[511 Departure times?id={{{id}}}&agency=511|{{{id}}} (real time departures)]]|{{{id}}}}}~File:Bus20.png;
 
}}
 
}}
 
}}
 
}}

Revision as of 00:32, 1 February 2015