OneBusAway RESTful API

Last modified by admin admin on 2023/09/13 12:51

MTA Bus Time and the OneBusAway API

MTA Bus Time is powered (in part) by the open source OneBusAway (OBA) software.  While MTA Bus Time's SIRI API is a new addition to the OBA project, OBA does have its own (non-standards-based) RESTful developer API.  MTA Bus Time now exposes a modified version of the OBA RESTful API, as described below.  The primary modification is to exclude all real-time data, which in the context of MTA Bus Time should come from the standards-based SIRI API.

Documentation

The documentation for the OBA RESTful API is available online.  The modifications to this API with respect to MTA Bus Time are described here.  This API will allow you to "discover" static/baseline information about the bus services covered under MTA Bus Time.  It is, effectively, a set of web services that gives you convenient HTTP-based access to selected subsets of information otherwise available from the GTFS schedule files.  This API provides, for example:

  • The list of routes covered by MTA Bus Time
  • Full information about each stop covered by MTA Bus Time (e.g. the lat/lon coordinates, stop name, list of routes serving that stop)
  • The stops served by a given route
  • The physical geometry for a given route (for mapping and geographic calculations)
  • The schedule of trips serving a given stop or route (repeat: schedule, having nothing to do with the real-time data)
  • The stops or routes near a given location

Access

 
The root of the OBA API in the MTA Bus Time deployment is https://bustime.mta.info/api/where/ .  So, for example:

Please use the same API key for the OBA API as for the SIRI API.

Tags:
Created by admin admin on 2019/11/11 05:33