mattwigway / TransitRouter.jl

Efficient transit routing for analytic applications in Julia
Apache License 2.0
5 stars 0 forks source link

Ladder transfers #26

Closed mattwigway closed 1 year ago

mattwigway commented 1 year ago

This will solve a ladder transfer issue. Consider the following two lines on the same street in opposite directions

>=====o=====o====o===>
               |              |            |
<=====o=====o====o===<

Unless there are extenuating circumstances, any reasonable traveler will transfer from the top line to the bottom line at the leftmost stop. But that's not what we find. In fact, we find transferring at the rightmost stop, because the second route hits that stop first and we greedily board.