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

Possibility to query systems based on operator in the mobility GQL api #355

Open
gorandalum opened this issue Feb 7, 2024 · 0 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@gorandalum
Copy link

Is your feature request related to a problem? Please describe.
In the AtB app we have a need to redirect to an operators app without selecting a specific vehicle or station first. This is not possible as of now as the system information is only available as a subfield on vehicle/station.

Goal / high level use-case
We in AtB have deals with some mobility-companies where users get some free usage of their vehicles if they have purchased periodic ticket in our app. This works by adding a bonus-code as a query-param when linking to the operator app. As of now we can't make this feature as visible as we want, as we are only able to link to the operator app after the user has selected a specific vehicle or station in the app.

Describe the solution you'd like
Query system directly, filtered by operator id.

Describe alternatives you've considered
Just querying stations by operator id to find a random station, and use the system from that station as a source for URLs. The problem is that also lat/lon is mandatory. We don't have coordinates to send in when user is not in the map, and sending in some random coordinates (like Trondheim centrum) won't work since it might be no vehicles/stations for that operator in that area.

@testower testower added the enhancement New feature or request label Feb 7, 2024
@testower testower added this to the 1.1 (next release) milestone Feb 7, 2024
@testower testower self-assigned this Feb 7, 2024
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