Route List


The route list call returns a list an agency's routes. Each route record includes the route id and, where available, the route color.

Call format


PartDescriptionOptionalExample
URLTransiCast web server instance URLhttp://transicast.appspot.com/ws/V1
Servlet descriptorroutesroutes
Parameter: agency=<agency name>Agency name, as provided by the agencies callagency=SFMTA

http://transicast.appspot.com/ws/V1/routes?agency=SFMTA&appid=sample2

Response format


Individual routes are returned through the <route> tag. It contains the following attributes:

AttributeDescriptionKeyUsed inExample
idRoute ID
+
Stops responses
Route detail calls
Next bus and train time calls
Service Messages
id="1AX"
colorRoute colorcolor="339999"
rtFlag. If true, the route offers service messages and next bus and train times. This flag applies to agencies which do not globally offer such dynamic data for all routes, as indicated in the agencies listrt="true"

<?xml version="1.0" encoding="UTF-8"?>
<resultSet queryTime="1319343181700" ct="4">
<route id="1" color="cc6600"/>
<route id="1AX" color="990000"/>
<route id="1BX" color="cc3333"/>
<route id="2" color="000000"/>
</resultSet>

Notes

Expect the following routes to offer service messages and next bus and train times:

WMATA-Blue, Green, Orange, Red, Yellow
NYCT Bus Brooklyn-B64

Contact

By email  

© 2011, 2012 Joachim Pfeiffer

Powered by Google App Engine