-
Notifications
You must be signed in to change notification settings - Fork 126
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
Add physical_mode to departures and stop_schedules #1386
Comments
Has this secretly been fixed? A query like this "physical_modes": [
{
"id": "physical_mode:Bus",
"name": "Bus"
}
] "physical_modes": [
{
"id": "physical_mode:RapidTransit",
"name": "Train de banlieue / RER"
}
] Is this now reliable and stable for all |
I'd say stable, but not fully reliable. We added this to What you really want if I understand well is the |
As long as every departure query gives me a The problem was that this information was sometimes there in the display information, but not reliable as it could not always be mapped to the officially supported physical modes. |
If it's Ok for you, then I close this issue. I did a little mistake, as we have a We might look into enriching |
According to hove-io/navitia#1386, Navitia has finally added the product to departure query results, so all information we need can now be retrieved by one network query only. The AbstractNavitiaProvider was adapted accordingly and all legacy code including the Product Cache was removed.
According to hove-io/navitia#1386, Navitia has finally added the product to departure query results, so all information we need can now be retrieved by one network query only. The AbstractNavitiaProvider was adapted accordingly and all legacy code including the Product Cache was removed.
When querying for departures I need to know the physical mode of each departure to show it properly in my app.
Would it be possible to include a
physical_mode
object in the response todepartures
andstop_schedules
queries?Alternatively, I could of course make separate requests to get the physical mode for each
departure. But I guess it is also in your interest to not require users to make unnecessary excessive queries to your service.
The text was updated successfully, but these errors were encountered: