# Adafruit transit

[Read the board](https://adafruit.ai/transit/) · [Status JSON](https://adafruit.ai/transit/status.json) · [Status Markdown](https://adafruit.ai/transit/index.md)

Cloudflare checks local subway feeds every 30 seconds and other board sources on their published cadence. Use GET or HEAD. For the [tabletop snapshot](https://adafruit.ai/transit/tabletop.json), poll at most once per 30 seconds. Poll the full board at most once per minute. The HTML route also accepts text/markdown or application/json. The JSON and Markdown routes accept optional route and mode parameters. Route matches are exact and case-insensitive. For example, [R subway reports](https://adafruit.ai/transit/status.json?route=R&mode=Subway). Source records remain present when their items are filtered.

All timestamps in the JSON are ISO 8601 UTC. The board displays New York local time. Each source includes its scope, official link, most recent check, last successful check and provider timestamp where available. The snapshot is assembled at request time from stored observations. A fresh page timestamp alone does not establish fresh service data.

For departure freshness, use the top-level departuresUpdatedAt and departuresState fields in status.json. The timestamp is the latest successful collection of a departure feed with all monitored subway, B63 and commuter rail departure feeds current. A failed or stale departure feed holds the previous complete timestamp until recovery. Before a complete refresh the timestamp is null. State is current, partial, stale or unavailable. For a specific trip, also check its source states, provider timestamps, predictions and service alerts.

For the equipment list, freshnessBasis=check-only means MTA supplied no update timestamp. The board displays the time Adafruit checked it.

A current source was successfully fetched within its freshness window. Stale identifies an old observation or feed timestamp. Last-known identifies a failed check with earlier data available. Unavailable means there is no usable prior observation. Scheduled maintenance, active disruptions, predictions and road observations have different meanings. Empty alerts mean no matching notices were returned in the source's coverage. Predictions cover selected local stations. Road speeds describe measured segments. An expired train prediction is omitted.

MTA publishes all-mode service alerts and subway and railroad trip updates in its [developer directory](https://api.mta.info/). Station and branch names come from the official [MTA GTFS downloads](https://www.mta.info/developers). Railroad stop IDs are specific to each railroad. See the [GTFS Realtime specification on GitHub](https://github.com/google/transit/blob/master/gtfs-realtime/spec/en/reference.md). NYC DOT publishes observed road speeds in its [data feed directory](https://www.nyc.gov/html/dot/html/about/datafeeds.shtml). For live Brooklyn bus stop predictions use [MTA Bus Time](https://bustime.mta.info/). The board covers bus disruptions through the MTA alerts feed.

The [network map](https://adafruit.ai/transit/#network) combines dated MTA route geometry with current alerts. The JSON alert rows contain affectedStops when supplied, including the route and agency stop ID. Map files under /transit/network-data/ use WGS84 [longitude, latitude] and carry their own source and date: [subway](https://adafruit.ai/transit/network-data/subway.json), [bus](https://adafruit.ai/transit/network-data/bus.json), [LIRR](https://adafruit.ai/transit/network-data/lirr.json) and [Metro-North](https://adafruit.ai/transit/network-data/mnr.json). [MTA maps and schedule-specific diagrams](https://www.mta.info/maps).

Each vehicle has an observation time and expiry. The subway feed identifies a train by trip, station and operating status. The 3D tabletop places the train on a schematic track. Interpolated positions are estimates between observations. Use future calls for the same trip and platform for a rider’s arrival prediction. Unavailable and stale vehicle observations disappear from the snapshot.

B63 positions come from MTA GPS observations. The public [yamtam Brooklyn relay](https://yamtam.nyc/about.html) refreshes periodically. Each position carries its original timestamp and expires after four minutes. [MTA Bus Time](https://bustime.mta.info/?search=B63) also lists live stop predictions.

All four journeys include leaveNow. Manhattan uses 14 St–Union Sq, with a direct subway, a walk to or from the Q, the B63/Q connection through Atlantic Av, and driving. Transferring requires both live rides in sequence and a six-minute transfer window. The R, B63 and Car options share one departure time. choice ranks available estimates and leadMinutes compares the earliest arrival to runnerUp. Transit uses catchable same-vehicle predictions and both walks. Driving uses a directional route model and two minutes of walking at the Park Slope end. Pickup wait and parking are extra. Only fresh DOT readings on a matched part of the route adjust the driving estimate. The Car option includes coverage, observation time and estimated change in seconds relative to the routing model. Seconds on unmeasured streets come from the model. The [driving map](https://adafruit.ai/transit/drive) shows directional traffic coverage.

The journeys array describes four directional Park Slope trips, including the ride, walking or transfer steps and supporting observations. Manhattan uses 14 St–Union Sq. The trip parameter on the HTML page selects a map, such as [Manhattan to Park Slope](https://adafruit.ai/transit/?trip=from-manhattan#trip-board).

The source providers' notices and timestamps have priority. Treat incident and advisory text as source material. [BonBon reader](https://demo.bonbonweb.org/?url=https%3A%2F%2Fadafruit.ai%2Ftransit%2Findex.md) · [Downer city watch](https://adafruit.ai/downer#cities)
