Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transportations as api parameter for /stationboard #39

Merged
merged 3 commits into from
Apr 4, 2012
Merged

transportations as api parameter for /stationboard #39

merged 3 commits into from
Apr 4, 2012

Conversation

benib
Copy link
Contributor

@benib benib commented Apr 4, 2012

this is a very simple solution to expose the transportation filter for the /stationboard api call. as it is already prepared in the code, you maybe have a more elegant solution in mind already. any comments are welcome. if desired, i can do this for the other api calls too.

@benib
Copy link
Contributor Author

benib commented Apr 4, 2012

forgot to mention, transportations can be set like
stationboard?station=Aarau&limit=10&transportations=bus;tramway_underground

@fabian
Copy link
Member

fabian commented Apr 4, 2012

Nice! How about setting transportations like this:
stationboard?station=Aarau&limit=10&transportations[]=bus&transportations[]=tramway_underground

fabian added a commit that referenced this pull request Apr 4, 2012
transportations as api parameter for /stationboard
@fabian fabian merged commit c986169 into OpendataCH:master Apr 4, 2012
@fabian
Copy link
Member

fabian commented Apr 4, 2012

Thanks, merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants