Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map station_char from API to GTFS stops #75

Open
radumas opened this issue Mar 7, 2020 · 0 comments
Open

Map station_char from API to GTFS stops #75

radumas opened this issue Mar 7, 2020 · 0 comments

Comments

@radumas
Copy link
Collaborator

radumas commented Mar 7, 2020

From the API we get (see Data Dictionary) station_id and station_char. For comparing with scheduled performance, and doing stuff like mapping station and line locations, it would be useful to have a mapping between GTFS stops and the data from the API.

GTFS can be download from here. Tools for dealing with gtfs data can be found here. I created two sql files to create the structure in sql and process the data:

Looks like the GTFS has at least one row per station-direction, here's a sample.

lineid stop_id stop_code stop_name
1 14457 13863 BLOOR STATION - NORTHBOUND PLATFORM
1 14414 13864 BLOOR STATION - SOUTHBOUND PLATFORM
1 14455 13808 COLLEGE STATION - NORTHBOUND PLATFORM
1 14416 13807 COLLEGE STATION - SOUTHBOUND PLATFORM
1 14461 13797 DAVISVILLE STATION - NORTHBOUND PLATFORM
1 14410 13798 DAVISVILLE STATION - SOUTHBOUND PLATFORM
1 15698 15664 DOWNSVIEW PARK STATION - NORTHBOUND PLATFORM
1 15699 15665 DOWNSVIEW PARK STATION - SOUTHBOUND PLATFORM
1 14454 13809 DUNDAS STATION - NORTHBOUND PLATFORM
1 14417 13810 DUNDAS STATION - SOUTHBOUND PLATFORM
1 14428 13828 DUPONT STATION - NORTHBOUND PLATFORM
1 14443 13827 DUPONT STATION - SOUTHBOUND PLATFORM
1 14462 13796 EGLINTON STATION - NORTHBOUND PLATFORM
1 14409 13795 EGLINTON STATION - SOUTHBOUND PLATFORM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant