public-transport / db-hafas

JavaScript client for the Deutsche Bahn HAFAS API.
https://github.com/public-transport/db-hafas
ISC License
75 stars 5 forks source link

Reference Route by Id #4

Closed dennispost closed 5 years ago

dennispost commented 7 years ago

How can we identify / reference a route by id?

derhuerst commented 7 years ago

I haven't figured out yet actually. I'd dare to say you, working at DB, are the person that ought to know that. 😉 There is some form of identifier in place, but I haven't reverse-engineered it yet.

Also, what do you mean by "route"? A single trip of a single physical train? Something like a line, a recurring schedule of trains passing a certain set of stations? The result of a routing/trip planning process? To further refine & standardise the naming conventions, @juliuste and I created the Friendly Public Transport Format.

derhuerst commented 7 years ago

FYI vbb-hafas now contains a method to query details/updates for a single leg of a route/journey. It uses identifiers like 1|28220|3|86|19062017. They same feature might exist at DB.

derhuerst commented 7 years ago

db-hafas now exposes the ID of each part of a journey. But there's no method yet to query details for it.

derhuerst commented 6 years ago

See public-transport/hafas-client#49 for more details.

derhuerst commented 5 years ago

Closing in favour of public-transport/hafas-client#49.