Closed michaelcheers closed 6 years ago
Hey, thanks for using my API!
I've recently changed the structure of this repo. This is why you might be confused.
old-api
branch now contains docs for version 1 of the API, deployed at vbb.transport.rest
.2
branch now contains docs for version 2 of the API, deployed at 2.vbb.transport.rest
. This version supports the /journeys/legs/:ref
route.This weird way of looking up the next stations of a departure is due to the way the underlying VBB API works. My wrapping API cannot overcome these limitations.
Note that you also need to pass a lineName
parameter. Basically take it from line.name
from the departure and pass it into the route. This is also due to the terrible underlying VBB system.
Hope I could help you. Also, let me know if you stumble upon anything else that is intuitive or broken.
Say I get a departure:
and I get:
How can I get what the next stations along the line are? In this case:
for trams towards "Rosenthal Nord".
I tried to use the refs generated but they don't seem to work. I used the following url:
and got