Returning JSON-P

Use JSON-P if you’re writing JQuery code that requires a callback function.

UPDATE: The URLs listed on this page contained an error caused by an update to the server configuration. The URLs have been tested and fixed.

Command Description
ROUTES

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

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

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

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

http://api.metro.net/agencies/ lametro/routes/704/stops/29/info/?callback=your_callback
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/?callback=your_callback
Get bus arrival predictions for Stop 29 on Route 704.

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

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

http://api.metro.net/agencies/ lametro/routes/704/runs/?callback=your_callback
Get runs for Route 704.

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

http://api.metro.net/agencies/ lametro/stops/29/info/?callback=your_callback
Information for Stop 29.

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

http://api.metro.net/agencies/ lametro/stops/29/messages/?callback=your_callback
Messages for Stop 29.

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

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

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