Difference between revisions of "Template:LA Metro bus map"

From Transit.Wiki
(Created page with "<includeonly>Bus stop map for [[{{BASEPAGENAME}}]]. Not every trip serve every stop. See timetable for details. {{#get_web_data: url=http://api.metro.net/agencies/lametro/ro...")
 
m
Line 4: Line 4:
  
 
{{#get_web_data:
 
{{#get_web_data:
url=http://api.metro.net/agencies/lametro/routes/{{#show:{{BASEPAGENAME}}| ?rnum}}/sequence/
+
url=http://api.metro.net/agencies/lametro/routes/{{#show:{{BASEPAGENAME}}| ?rnum}}/stops/
 
|format=json
 
|format=json
 
|use xpath
 
|use xpath
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}}}~ ~File:Bus20.png;
+
{{{latitude}}},{{{longitude}}}~{{{displayname}}} - [{{canonicalurl:Departure times}}?id={{{id}}}&agency=lametro {{{id}}}]~ ~File:Bus20.png;
 
}}
 
}}
}}
 
 
==Stop list==
 
{{auto-col|3}}
 
{{#for_external_table:
 
<span class="plainlinks">[{{fullurl:Finder|address={{{latitude}}},{{{longitude}}}&distance=1+mile}}]</span> {{{displayname}}}<br/>
 
 
}}
 
}}
 
</div>
 
</div>
 
</includeonly>
 
</includeonly>

Revision as of 05:01, 17 April 2013