Real Time API Feeds https://api.metro.net |
Metro’s Realtime Application Programming Interface (API) gives you access to the positions of Metro vehicles in real time as they travel their routes.
The Realtime API is a RESTful web service designed to serve bus location data gathered by our Advanced Transportation Management System (ATMS) and the Nextrip prediction engine. This is the result of years of hard work refining the information we collect from the GPS trackers on every bus as they serve 1,433 square miles across Los Angeles
Sometimes that data arrives too late to give us useful information. Whenever the buses travel into a radio shadow we need to make a prediction about the location of the bus. This is where Nextrip comes into play.
Metro’s Nextrip service is informed by NextBus, which maintains a publicly accessible XML feed. Use the following information to use NextBus data:
The interface gives your program access to collections and elements. Collections retrieve lists of element URIs. Element URIs retrieve a representation of the element. Only HTTP GET operations are allowed.
The API delivers three different flavors of data: XML, JSON, and JSONP. This table lists the formats and their MIME types.
MIME type | Description |
---|---|
text/xml | XML is an encoded document format with arbitrary structure best consumed by machines. |
application/json | JSON (an acronym for JavaScript Object Notation) is a lightweight text-based open standard designed for the exchange of human-readable data. This is the default. |
application/javascript | Also known as JSON-P or JSON with padding. This is a JSON payload wrapped in a callback function. JSON-P is designed to be evaluated in the browser within a |