[prev: Giuro Che Ho Visto Questo] [home] [next: Provisioning a Local Private Ethereum Network with Puppeth]

Canonical NYC Subway Station Names

Strategy

Station names are disambiguated by the line they connect to. If the station is on more than one line, we say their line is "Multiline"; this is sufficient for unique names.

Ingestion

The data is available as JSON. In Python,

>>> import json, requests
>>> url = 'modalduality.org/static/nyc-station-names.json'
>>> station_names = json.loads(requests.get(url).text)
>>> # Must use str.rsplit because some station names have slashes in their name, but no line names do.
>>> stations = [station_name.rsplit('/') for station_name in station_names]
>>> print(stations[0])
['Third Avenue-138th Street', 'Pelham Line']

Data