Closed dennispost closed 5 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.
1|1276350|50|80|-1
to identify – i think – a single run of a train.84/331235/18/19/80
from the API341703/280474/672252/222225/80
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.
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.
db-hafas
now exposes the ID of each part of a journey. But there's no method yet to query details for it.
See public-transport/hafas-client#49 for more details.
Closing in favour of public-transport/hafas-client#49.
How can we identify / reference a route by id?