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

Get all routes for LAMETRO (JSON)

Get all the stops for route 704 (JSON)

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)

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)

Get the runs for route 704 (XML)

Get all the Metro vehicles now running on route 704