NYC Subway Train Times

A Cloudflare Worker API and native iOS app for real-time NYC subway departure times, with Siri integration via App Intents and smart multi-platform routing across all 391 stations.

NYC Subway Train Times

NYC Subway Train Times is a dual-platform tool for getting real-time departure times from any of 391 NYC subway stations. The backend is a serverless Cloudflare Worker that queries the MTA GTFS-realtime API and returns the next 3 departures as plain text — easy to embed in voice workflows, dashboards, or automations.

An interactive URL builder lets users construct station queries without writing code. The companion iOS app adds location awareness — automatically finding your nearest station using haversine distance — and deep Siri integration via Apple App Intents, so you can say "Hey Siri, Trains" and get spoken results hands-free.

Features

Real-time MTA GTFS-realtime data, 391 stations, plain-text API output for voice assistants, interactive URL builder, iOS app with CoreLocation for nearest-station detection, Siri integration via App Intents, smart multi-platform routing for complex stations like Jay St-MetroTech.

Siri Shortcut

Tech Stack

Swift, SwiftUI, App Intents, CoreLocation, iOS 16+. Cloudflare Workers (JavaScript), MTA GTFS-realtime, protobuf.