derhuerst / hafas-linked-connections-server

[work in progress] – Create a Linked Connections endpoint from a HAFAS client.
https://github.com/derhuerst/hafas-linked-connections-server#hafas-linked-connections-server
ISC License
6 stars 0 forks source link

/connections/:tripId/:fromStop/:fromDeparture #7

Open derhuerst opened 2 years ago

derhuerst commented 2 years ago

@pietercolpaert @julianrojas87 Does this make sense?

derhuerst commented 1 year ago

related:

In gtfs-linked-connections-server, the GTFS-based equivalent of this project, I have added /connections/:id, with :id being a pbf-encoded version of [trip_id, from_stop_id, t_departure, t_arrival, to_stop_id]:

https://github.com/derhuerst/gtfs-linked-connections-server/blob/b2d84b2337567f368b476038089b29bc2bab111f/lib/connection-ids.js#L19-L40