Open derhuerst opened 4 years ago
The transit.land DataStore repo has a test file that we can port over.
@irees @drewda
I'm interested in writing a JS implementation of the OneStop ID.
What do you think about moving the OneStop ID implementation (or documentation at least) into a standalone repo? It would signal to devs that it is supposed to be used across platforms and projects.
I'm trying to collect the specific implementations from transitland-datastore
. Are the following the correct ones?
operator
: https://github.com/transitland/transitland-datastore/blob/4d48dd7a1ffe203bc0376dbc0eeb231117318f34/app/services/feed_info.rb#L87-L100stop
: https://github.com/transitland/transitland-datastore/blob/46fedd0d3293fe61ae04e90d0648187dba86064e/app/models/stop.rb#L387-L398route
: https://github.com/transitland/transitland-datastore/blob/ce4ad9468882dc22a4c6fbe8b84a69da6c4cef90/app/models/route.rb#L234-L244route_stop_pattern
: https://github.com/transitland/transitland-datastore/blob/e9b10391df5d0708717dbd02bd60b521d199603b/app/models/route_stop_pattern.rb#L126-L138
OneStop IDs are yet another attempt to form globally stable IDs for operators, stops, etc.