Skip to content

Commit

Permalink
Generate stations.json using the offical MTA station list CSV
Browse files Browse the repository at this point in the history
  • Loading branch information
georgyo committed Dec 3, 2022
1 parent a0b421a commit e20d42e
Show file tree
Hide file tree
Showing 5 changed files with 6,483 additions and 7,060 deletions.
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,9 @@ Standard Flask option. Will enabled enhanced logging and wildcard CORS headers.

## Generating a Stations File

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.

Usage:
```
$ python make_stations_csv.py stops.txt transfers.txt > stations.csv
# edit groupings in stations.csv
$ python make_stations_json.py stations.csv > stations.json
# edit names in stations.json
$ python scripts/make_stations_json.py --output data/stations.json
```

## Help
Expand Down
Loading

0 comments on commit e20d42e

Please sign in to comment.