OpendataCH / Transport

Swiss public transport API
http://transport.opendata.ch/
MIT License
241 stars 50 forks source link

Added parameter to stationboard to get arrivals #144

Closed ghost closed 7 years ago

ghost commented 7 years ago

The board type for the stationboard is hardcoded in lib/Transport/Entity/Schedule/StationBoardQuery.php to provide the departures. To be able to retrieve arrivals, these changes add another parameter for the staionboard call: "type", accepting "DEP" and "ARR". When not provided, DEP is default as before. when type is set to "ARR" the arrivals at the station are returned.

fabian commented 7 years ago

Thanks!

fabian commented 7 years ago

I've renamed the values to departure and arrival to be more user-friendly. I've also added the parameter to the docs.