Skip to content
This repository was archived by the owner on Jun 29, 2023. It is now read-only.

add time offset to have api pre-filter departures #26

Merged
merged 2 commits into from
Nov 25, 2020

Conversation

aaearon
Copy link
Contributor

@aaearon aaearon commented Nov 21, 2020

The departure endpoint offers footway which, when set, will pre-filter any departures that leave within the number of minutes defined. This was hardcoded to 0 as part of departure_url. I modified this and then added timeoffset as an optional parameter (defaults to 0, like today's behavior) to get_departures.

@leftshift
Copy link
Owner

leftshift commented Nov 24, 2020

Thanks, looks great!
Could you also update the get_departures method in the Station class?

@aaearon
Copy link
Contributor Author

aaearon commented Nov 25, 2020

Oops! Thanks for the catch -- updated.

@leftshift leftshift merged commit 88bf119 into leftshift:master Nov 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants