Skip to content

Commit e20d42e

Browse files
committed
Generate stations.json using the offical MTA station list CSV
1 parent a0b421a commit e20d42e

File tree

5 files changed

+6483
-7060
lines changed

5 files changed

+6483
-7060
lines changed

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,9 @@ Standard Flask option. Will enabled enhanced logging and wildcard CORS headers.
6262

6363
## Generating a Stations File
6464

65-
The MTA provides several static data files about the subway system but none include canonical information about each station. MTAPI includes a script that will parse the `stops.txt` and `transfers.txt` datasets provided by the MTA and attempt to group the different train stops into subway stations. MTAPI will use this JSON file for station names and locations. The grouping is not perfect and editing the resulting files is encouraged.
66-
6765
Usage:
6866
```
69-
$ python make_stations_csv.py stops.txt transfers.txt > stations.csv
70-
# edit groupings in stations.csv
71-
$ python make_stations_json.py stations.csv > stations.json
72-
# edit names in stations.json
67+
$ python scripts/make_stations_json.py --output data/stations.json
7368
```
7469

7570
## Help

0 commit comments

Comments
 (0)