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

getLineStatus function #39

Open
vlbee opened this issue Jul 20, 2018 · 0 comments
Open

getLineStatus function #39

vlbee opened this issue Jul 20, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@vlbee
Copy link

vlbee commented Jul 20, 2018

You are making an API request to get the line status for all lines every time you select and submit a request. You might want to consider querying the TFL API for the status JUST of the selected line. I think this is the documentation for it:

https://api.tfl.gov.uk/swagger/ui/index.html?url=/swagger/docs/v1#!/Line/Line_StatusByIds

This might simplify the subsequent code in your functions, if you are dealing with one line at a time in your response objects :)

@sima-qian sima-qian added the enhancement New feature or request label Jul 20, 2018
@sima-qian sima-qian assigned sima-qian and MissArray and unassigned sima-qian and MissArray Jul 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants