Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 465 Bytes

README.md

File metadata and controls

26 lines (21 loc) · 465 Bytes

Subway-Status

Get the latest NYC subway status for your train.

Setup

  1. Run npm install to retrieve modules
  2. Run node server.js to start server
  3. Access at http://localhost:8080 (/api for API routes)

Usage

/api/get/{train}

Get status for a given train ('n', 'q', etc.).

http://localhost:8080/get/{train}

Response Example

{
  "line": "NQR",
  "status": "PLANNED WORK",
  "text": "<html>subway HTML</html>"
}