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
| Part | Description | Optional | Example |
| URL | TransiCast web server instance URL | http://transicast.appspot.com/ws/V1 | |
| Servlet descriptor | routes | routes | |
| Parameter: agency=<agency name> | Agency name, as provided by the agencies call | agency=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:
| Attribute | Description | Key | Used in | Example |
| id | Route ID | Stops responses Route detail calls Next bus and train time calls Service Messages | id="1AX" | |
| color | Route color | color="339999" | ||
| rt | Flag. 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 list | rt="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 |
|
