tjmadonna / buswatch-rest

REST API used by the Buswatch iOS app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bus Watch REST API

Routes

Note: All requests require an API key key as a query parameter

Get Predictions For Stop Id

Provides upcoming transit arrivals time for the given stop

GET /predictions/:stopId

Reponse

{
  "predictions": [
    {
      "vehicleId": "6540",
      "routeId": "64",
      "routeTitle": "Lawrenceville Via Sq Hill-Shadyside-Bloomfield-Inbound",
      "arrivalTime": 1588455780
    }
  ]
}

stopId
  string the unique id of the stop
vehicleId
  string the unique id of the bus or train
route
  string the route identifier
routeTitle
  string the route title
arrivalTime
  int the unix timestamp of the predicted arrival time

About

REST API used by the Buswatch iOS app


Languages

Language:JavaScript 100.0%