Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Conversation

@farfromrefug
Copy link
Contributor

This PR makes 2 changes:

  • add rawResult to RoutingResult and RouteMatchingResult. This allows to send any custom options to Valhalla and read the result as json string so that you can do anything with it without having to modify RoutingResult and RouteMatchingResult. It is also very useful for cross plaftorm frameworks like React Native or Nativescript. The reason is that to pass the result to JS you only need to marshall a string and not a full structure of std vector and tons of data.
  • allow RouteMatchingResult to have to matched_points. Using custom parameters you can query only edge data. Without this PR it would throw because there is no matched_points (which you actually did not ask for).

also allow Valhalla matchRoute to not return `matched_points` (when only edges are requested)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant