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

routing: Support alternatives for single-mode routing calculations #1001

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tahini
Copy link
Collaborator

@tahini tahini commented Jun 28, 2024

This requires to pass down the trip routing query attributes all the way down to the OSRM call. It is added as an optional parameter at the end of the route and other calculation functions, as well as in the socket route for routing calculation.

If the withAlternatives attribute is true , the osrm backend call sets the alternatives attribute to true.

This requires to pass down the trip routing query attributes all the way
down to the OSRM call. It is added as an optional parameter at the end
of the `route` and other calculation functions, as well as in the socket
route for routing calculation.

If the `withAlternatives` attribute is `true` , the osrm backend call
sets the alternatives attribute to `true`.
public async route(
params: transitionRouteOptions,
routingAttributes?: TripRoutingQueryAttributes
): Promise<Status.Status<osrm.RouteResults>> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of adding a new parameter, we already have the params object which include the boolean for alternatives. We should probably fill it in there before calling this function.

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

Successfully merging this pull request may close these issues.

2 participants