-
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 a link to the trip destination on journey's display_information #1931
Comments
Thanks for creating this ticket! If at all possible, I would like to avoid having to do a second HTTP request to get the stop_area of the route direction and have this information included in the response to the departures query. |
You're welcome :) |
Ideally, the API returns a full It does that already, only that the The route has a direction which has a |
As @stifoon said, we rely on data for route and direction and we don't build one for each stop_area that is the end of a vehicle_journey (and even doing that would not be enough some times). So putting the complete final stop_area in display_information (probably in links part to mutualize) would do the job for you? |
I don't know what you mean by "in links part to mutualize", but otherwise, yes. |
The idea would be to add in {
"id": "stop_area:bobito",
"internal": true,
"rel": "destination",
"templated": false,
"type": "stop_area",
} And at the root of the response a |
Any news on this issue? |
I'm not in the team working on Navitia anymore, but as far as I know, no work is planned for that. |
This would help Transportr solve: grote/Transportr#274 (comment)
And the navitia's googlegroup topic is here: https://groups.google.com/forum/#!topic/navitia/7TZQcxnaU2Q
The idea is: the route is not enough to match the destination of the vj in a lot of cases (depending on the data), and the display_information only gives the label of the last stop.
Most of it is C++ work in pb_converter.
Adding an uri of this stop or a link (and the corresponding details in response) seems to be the good/easiest work to do.
A display_information.direction_uri might be a solution too.
The text was updated successfully, but these errors were encountered: