OneBusAway · Example Payload

Getarrivalsanddeparturesforlocation

Returns real-time arrival and departure data for stops within a bounding box or radius centered on a specific location.

default

Getarrivalsanddeparturesforlocation is an example object payload from OneBusAway, with 7 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathsummarydescriptiontagsparameters

Example Payload

Raw ↑
{
  "operationId": "getArrivalsAndDeparturesForLocation",
  "method": "GET",
  "path": "/api/where/arrivals-and-departures-for-location.json",
  "summary": "arrivals-and-departures-for-location",
  "description": "Returns real-time arrival and departure data for stops within a bounding box or radius centered on a specific location.",
  "tags": [
    "default"
  ],
  "parameters": [
    {
      "name": "lat",
      "in": "query",
      "required": true,
      "description": "The latitude coordinate of the search center.",
      "schema": {
        "type": "number",
        "format": "double"
      }
    },
    {
      "name": "lon",
      "in": "query",
      "required": true,
      "description": "The longitude coordinate of the search center.",
      "schema": {
        "type": "number",
        "format": "double"
      }
    },
    {
      "name": "radius",
      "in": "query",
      "required": false,
      "description": "The search radius in meters.",
      "schema": {
        "type": "number",
        "format": "double"
      }
    },
    {
      "name": "latSpan",
      "in": "query",
      "required": false,
      "description": "Sets the latitude limits of the search bounding box.",
      "schema": {
        "type": "number",
        "format": "double"
      }
    },
    {
      "name": "lonSpan",
      "in": "query",
      "required": false,
      "description": "Sets the longitude limits of the search bounding box.",
      "schema": {
        "type": "number",
        "format": "double"
      }
    },
    {
      "name": "time",
      "in": "query",
      "required": false,
      "description": "By default, returns the status right now. Can be queried at a specific time (milliseconds since epoch) for testing.",
      "schema": {
        "type": "integer",
        "format": "int64"
      }
    },
    {
      "name": "minutesBefore",
      "in": "query",
      "required": false,
      "description": "Include arrivals and departures this many minutes before the query time.",
      "schema": {
        "type": "integer",
        "default": 5
      }
    },
    {
      "name": "minutesAfter",
      "in": "query",
      "required": false,
      "description": "Include arrivals and departures this many minutes after the query time.",
      "schema": {
        "type": "integer",
        "default": 35
      }
    },
    {
      "name": "maxCount",
      "in": "query",
      "required": false,
      "description": "The max size of the list of nearby stops and arrivals to return. Defaults to 250, max 1000.",
      "schema": {
        "type": "integer",
        "default": 250,
        "maximum": 1000
      }
    },
    {
      "name": "routeType",
      "in": "query",
      "required": false,
      "description": "Optional list of GTFS routeTypes to filter by (comma delimited) e.g. \"1,2,3\".",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "emptyReturnsNotFound",
      "in": "query",
      "required": false,
      "description": "If true, returns a 404 Not Found error instead of an empty result.",
      "schema": {
        "type": "boolean"
      }
    }
  ]
}

Work with this as data

Every example here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/getArrivalsAndDeparturesForLocation"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.