Miscellaneous Examples

Here is a list of commands that you might use to build an application. This should give you a good idea of how the interface has been designed.

Command Description

http://api.metro.net/agencies/lametro/routes/
Get all routes for LAMETRO (JSON)

http://api.metro.net/agencies/lametro/routes/704/
Get all the stops for route 704 (JSON)

http://api.metro.net/agencies/lametro/routes/704/xml/
Get all the stops for route 704 (XML)

http://api.metro.net/agencies/ lametro/routes/704/stops/callback=doList
Get all the stops for route 704 (JSON-P with callback “doList”)

http://api.metro.net/agencies/ lametro/stops/6033/predictions/
Get the current arrival predictions for stop 6033 (JSON)

http://api.metro.net/agencies/ lametro/stops/6033/messages/
Get messages for stop 6033 (JSON)

http://api.metro.net/agencies/lametro/routes/704/info/xml/
Get stop and sequence information for route 704 (XML)

http://api.metro.net/agencies/ lametro/routes/704/sequence/
Get all the stops for route 704 in sequence (good for drawing route maps)

http://api.metro.net/agencies/lametro/routes/704/runs/xml/
Get the runs for route 704 (XML)

http://api.metro.net/agencies/lametro/routes/704/vehicles/
Get all the Metro vehicles now running on route 704