Closed aaearon closed 3 years ago
Sorry for not responding to this earlier. I like it, hadn't noticed this earlier so I think this was added to the api resonse at some point, so thank you for poking around and adding this!
My only worry is that they might remove or change this at some point, as this information seems to not be used by the website and the API hasn't been super stable in general, but then again, this similarly affects all other features of this library.
The departures endpoint returns two lists:
departures
, which returns next departures for a given station id, andservingLines
which returns all the lines served at a given station id. This addsget_lines
which takes a station_id and returns all the line served at that station returned inservingLines
.As info: Despite each object in the results having a
destination
, both directions of a line are seemingly represented by only a single line in the api's response.