Skip to content

fix(graphhopper): Rename vehicle param to profile for routing requests with Graphhopper#1043

Merged
binh-dam-ibigroup merged 4 commits intoibi-group:devfrom
marecabo:patch-1
Apr 2, 2026
Merged

fix(graphhopper): Rename vehicle param to profile for routing requests with Graphhopper#1043
binh-dam-ibigroup merged 4 commits intoibi-group:devfrom
marecabo:patch-1

Conversation

@marecabo
Copy link
Copy Markdown
Contributor

@marecabo marecabo commented Oct 4, 2025

Checklist

  • Appropriate branch selected (all PRs must first be merged to dev before they can be merged to master)
  • Any modified or new methods or classes have helpful JSDoc and code is thoroughly commented
  • The description lists all applicable issues this PR seeks to resolve
  • The description lists any configuration setting(s) that differ from the default settings
  • All tests and CI builds passing [someone needs to trigger them]

Description

This fixes Street Snapping when editing shapes in the GTFS editor.

When I tried it with a local Graphhopper instance before, I got the error message "bad request: profile parameter required" from the routing request.

At some point, Graphhopper switched from a vehicle parameter to profile, see graphhopper/graphhopper#1934 and https://github.com/graphhopper/graphhopper/blob/master/CHANGELOG.md#70-14-mar-2023

There is already a PR #948 for updating this code, but it has not been edited since over two years. This edit aims to be minimally invasive to restore the routing functionality.

Thsi fixes Street Snapping when editing shapes in the GTFS editor.

When I tried it with a local Graphhopper instance before, I got the error message "bad request: profile parameter required" from the routing request.

At some point, Graphhopper switched from a `vehicle` parameter to `profile`, see graphhopper/graphhopper#1934.
@miles-grant-ibigroup miles-grant-ibigroup self-assigned this Mar 31, 2026
@miles-grant-ibigroup
Copy link
Copy Markdown
Contributor

Closes #948

Copy link
Copy Markdown
Contributor

@miles-grant-ibigroup miles-grant-ibigroup left a comment

Choose a reason for hiding this comment

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

Thank you so much for this work!

Copy link
Copy Markdown
Contributor

@binh-dam-ibigroup binh-dam-ibigroup left a comment

Choose a reason for hiding this comment

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

Nice fix, thank you

Comment thread lib/scenario-editor/utils/valhalla.js
Copy link
Copy Markdown
Contributor

@binh-dam-ibigroup binh-dam-ibigroup left a comment

Choose a reason for hiding this comment

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

Merging as is will result in a bad merge, see my comment.

@miles-grant-ibigroup
Copy link
Copy Markdown
Contributor

The failures we're seeing now are normal! Since this PR is external. Once @binh-dam-ibigroup approves this is good to merge. Thanks so much for all your work!

Copy link
Copy Markdown
Contributor

@binh-dam-ibigroup binh-dam-ibigroup left a comment

Choose a reason for hiding this comment

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

Thanks for the changes! (Tests succeeded on #1053)

@binh-dam-ibigroup binh-dam-ibigroup merged commit 09f1e1b into ibi-group:dev Apr 2, 2026
3 of 5 checks passed
@marecabo marecabo deleted the patch-1 branch April 7, 2026 07:29
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.

4 participants