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

Products always return nil #80

Closed
victorlobe opened this issue Jan 17, 2023 · 3 comments
Closed

Products always return nil #80

victorlobe opened this issue Jan 17, 2023 · 3 comments

Comments

@victorlobe
Copy link

I am not able to get products of a station, I tried it with the queryDepartures and the queryTrips function but it always return nil.
i use the MVV provider but I tried it also with the DB provider.

secondly I am not able to get the products used in a trip. The only parameter where I can see products in log is the trip ID.

Thanks you!

@alexander-albers
Copy link
Owner

Hi @victorlobe, thanks for reporting the issue. It is correct that the product variable is currently not being used. However, this is currently not a priority for me, as not all providers return the required information for it anyway. You can always just use the lines variable in ServingLine - that's what the ÖPNV Navigator is using.

Regarding your second issue, could you please elaborate which field you are trying to access?

@victorlobe
Copy link
Author

Hey, thanks for your reply. I will try this.
My second issue is about the Trips feature. I am able to get a trip but I don't know how to get the Lines (or vehicles) used by a trip.

@alexander-albers
Copy link
Owner

You have to access to legs property and cast it to either an IndividualLeg (footpaths) or PublicLeg. The latter gives you a line property that you can access.

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

No branches or pull requests

2 participants