Returning JSON

JSON is the default response.

Command Description
ROUTES

http://api.metro.net/agencies/ lametro/routes/
Get the list of all Metro’s routes

http://api.metro.net/agencies/ lametro/routes/704/
Get info for element “Route 704”

http://api.metro.net/agencies/ lametro/routes/704/
Get general info and stop list for element Route 704

http://api.metro.net/agencies/ lametro/routes/704/stops/
Get the collection of stops for route 704

http://api.metro.net/agencies/ lametro/routes/704/stops/29/info/
Get info for Stop 29 on Route 704. Metro’s stop ids are unique, so this command is equivalent to http://api.metro.net/agencies/lametro/stops/29/

http://api.metro.net/agencies/ lametro/routes/704/stops/29/predictions/
Get bus arrival predictions for Stop 29 on Route 704.

http://api.metro.net/agencies/ lametro/routes/704/stops/29/predictions/
Get bus arrival predictions for Stop 29 on Route 704.

http://api.metro.net/agencies/ lametro/routes/704/sequence/
Get stop sequence for Route 704.

http://api.metro.net/agencies/ lametro/routes/704/runs/
Get runs for Route 704.

http://api.metro.net/agencies/ lametro/routes/704/vehicles/
Get the list of vehicles currently running on Route 704.
STOPS

http://api.metro.net/agencies/ lametro/stops/29/info/
Information for Stop 29.

http://api.metro.net/agencies/ lametro/stops/29/routes/
Routes served by Stop 29.

http://api.metro.net/agencies/ lametro/stops/29/messages/
Messages for Stop 29.

http://api.metro.net/agencies/ lametro/stops/29/predictions/
Get bus arrival predictions for all routes serving Stop 29.
VEHICLES

http://api.metro.net/agencies/ lametro/vehicles/
Get the current locations for all Metro’s vehicle positions

http://api.metro.net/agencies/ lametro/routes/704/vehicles/
Get the list of vehicles currently running on Route 704.