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

Problem with multiple stops at the same bus stop #48

Open
mrtnrth opened this issue Aug 28, 2022 · 2 comments
Open

Problem with multiple stops at the same bus stop #48

mrtnrth opened this issue Aug 28, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@mrtnrth
Copy link

mrtnrth commented Aug 28, 2022

In some odd cases, a bus makes multiple stops during a route at the same bus stop (same site id). This is the case for me where my bus makes a first stop and then comes back a few minutes later after turning around. Both stops are on the same route (same direction and same siteid) and the stop name is the same. The siteid in my case is 7037.

In cases like this, I would only want to display the second stop the bus makes since that's the one I need to time things for.

When making a manual request to the SL API, it seems like these stops can be separated by looking at the StopPointNumber attribute in the json response. It doesn't seem like this attribute is parsed though so can't figure out how to filter on it.

Would it be possible to have an option to include additional attributes in the parsed data perhaps, so I can do some manual filtering on this? Or would it be better to use a RESTful sensor in odd cases like this one?

@DSorlov DSorlov self-assigned this Sep 10, 2022
@DSorlov DSorlov added the enhancement New feature or request label Sep 10, 2022
@DSorlov
Copy link
Member

DSorlov commented Sep 10, 2022

This sounds absolutely like a attribute that can be added. I will add this hopefully in two releases as I currently already locked the next release from adding features.

@DSorlov
Copy link
Member

DSorlov commented Sep 10, 2022

Also; perhaps you could already now use the Resrobot option? (It's available in the now beta and soon-to-be released next version).

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

2 participants