For Developers Index » OneBusAway RESTful API

OneBusAway RESTful API

Last modified by Tony Laidig on 2014/07/28 16:54

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.


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


The root of the OBA API in the MTA Bus Time deployment is .  So, for example:

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

Created by Mike Frumin on 2012/10/08 12:43

My Recent Modifications

This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 3.2 - Documentation