umts / stop-project

Rails app for tracking the Summer 2016 installation of new bus stop signs across the PVTA service area.
MIT License
0 stars 1 forks source link

Simpler, non-destructive stop import #288

Open werebus opened 4 months ago

werebus commented 4 months ago

This app is built around the assumption that the site was temporary and only data from Hastus matters. As such, the import task wipes the database and imports fresh (it also doesn't work at the moment).

Seems like we might never sync with Hastus again (or even for the first time?). So we can make an more traditional find-or-create, update importer that uses the GTFS (stops.txt) data. Since we're using the GTFS data as a data source elsewhere.

werebus commented 4 months ago

GTFS stops.txt contains:

GTFS Field BusStop attribute
stop_id :hastus_id
stop_name :name
location_type should be 0, other location types aren't "stops"
wheelchair_boarding (maybe?) 0/blank: don't update, 1: true, 2: false