For Berlin, @juliuste and others have started to specify transfer information. We agreed to use the previous station (before changing lines) and the next station (after changing lines) in order to convey the direction.
Currently, for a tuple (previousStation, fromStation, fromLines, toLines, toStation, nextStation), we collect the following information:
fromPosition: where to exit the train, relative to the track/platform
toPosition: where to enter the (next) train, relative to the track/platform
samePlatform: are the two tracks part of the same platform? (indicating a very short and barrier-free path)
I'm about to integrate this into the VBB profile or hafas-client. **For the fromPosition and toPosition, it seemed reasonable to put this into the individual journeylegs:
context
For Berlin, @juliuste and others have started to specify transfer information. We agreed to use the previous station (before changing lines) and the next station (after changing lines) in order to convey the direction.
Currently, for a tuple
(previousStation, fromStation, fromLines, toLines, toStation, nextStation)
, we collect the following information:fromPosition
: where to exit the train, relative to the track/platformtoPosition
: where to enter the (next) train, relative to the track/platformsamePlatform
: are the two tracks part of the same platform? (indicating a very short and barrier-free path)I'm about to integrate this into the VBB profile or
hafas-client
. **For thefromPosition
andtoPosition
, it seemed reasonable to put this into the individualjourney
leg
s:problem
There is a lot more info we might want to cover in the future though. How do we want to store info that doesn't directly belong to the arrival/departure, such as
samePlatform
or the walking distance?possible solutions
arrivalSamePlatform
&departureSamePlatform
? seems inelegant.transfer
object into the "from"leg
? what about the "to"leg
?transfers
array to thejourney
? note that not every transfer will have data available, so it will be a sparse array.transfer
leg
s with the info? (this would be a breaking change)