codeforanchorage / realtime-bus-sms

Text back current arrival time for buses given a texted in bus stop number for People Mover. AddressLookup branch would allow texting "Arctic and Fireweed"
https://bus.codeforanchorage.org
14 stars 10 forks source link

Mmeyer read stop code #158

Closed mark-meyer closed 4 years ago

mark-meyer commented 4 years ago

This uses the stop_code rather than stop_id from stops.txt. This field is meant to be the public facing code specifically for things like text apps. This will free stop_id to be used as an arbitrary key.

This also sets the flag on csv-parse to ignore white space after a comma in csv values. This fixes issues with header names like " stop_url"

This moves where the GTFS file is specified out of the source code into env. To set, add

GTFS_FILE: "People_Mover_2020.01.14.gtfs.zip"

to the ecosystem. This will prevent changes to the source code from interfering with updating with git. If the env variable is not set, this will default to People_Mover.gtfs.zip