-
Notifications
You must be signed in to change notification settings - Fork 340
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
Dynamic costing_options in request to Valhalla #903
Comments
There's no solution other than adding it to VROOM source code, in case we'd like to be able to pass costing options directly (which I'd highly prefer too!). You still can use it of course, you'll have to call Valhalla separately and use VROOM's custom matrix input (you probably read that as well). I'm still very open to get this funded and I'm sure @jcoupey would be ok to include it in master (with my promise to maintain it). It'd really make things a lot more convenient. I might have the opportunity soon to work on this later this year on a client's project. I'll update before of course. |
I totally get how this would add ease of use, especially when working with per-request configurable routing engines such as Valhalla. What is not totally clear for me as of now is how to add this kind of stuff in a clean and generic way. Frankly, I expect that as we start digging into this, there is virtually no end to what users will want to be able to configure. Examples of not-so trivial questions:
|
The main problem in my mind is that OSRM is the exception to the other routing engines, who all support POST request with JSON payloads. That'd be fairly easy with I'm not sure how we'd deal with that for OSRM though. I never liked their request schema, for me it's a bit "too correct", it seems to try to be RESTful when it really can't be. Maybe it's historical reasons, but JSON payloads are just so much easier to handle (client-side). Also not sure what's necessary to add support for that in OSRM upstream . I know there's been Project-OSRM/osrm-backend#6294, so I might brainstrom with Siarhei a bit, who seems to have it solved for his private instance. libosrm could also have a wrapper which accepts the same JSON instead of building the "request" via its object API (Valhalla does the same). Seeing that it might take more effort to enable similar behavior for OSRM, would you generally be ok if we had such JSON input support for Valhalla to begin with? TBH, both ORS & OSRM have very little request configuration to offer for matrix computations, so it's less "urgent" IMO. The setup should of course be generic enough so the other routers can catch up. We can have a chat around the topic in a meeting if you want. It needs quite a lot of context which is easier communicated 1:1 instead of Github:) |
@nilsnolde yes, let's sync on that, feel free to ping me directly for a call. |
Just keeping our thoughts here:
I think that was it, right @jcoupey ? Again, anyone having enough interest in this to fund the whole or part of the development, please reach out. Otherwise I'm happy to have a plan to be able to move forward once this should have some priority on my side. |
That's pretty much it, yes! On the format, relying on having the same rank for matching options/profiles in different arrays does not sound that convenient. We could instead have profile values as key in a {
"routing_options": {
"car": {
...
},
"bike": {
...
}
}
} |
Any updates on this issue? We are also interested in using dynamic costing with VROOM. |
No, nothing new here. |
Hi everyone,
Does anyone know of an option to include the
costing_options
parameter to the Valhalla service? Currently what i think happens is that the profile gets used to define thecosting
value for the Valhalla request. There is no way to send thecosting_options
to the matrix or route endpoint of Valhalla.I have noticed there is a branch named
experiment/extra-valhalla-options
but the values for costing options are hard-coded.Did anyone ever figure out a way to add extra
costing_options
dynamically? Perhaps with extra custom profiles?Thanks in advance!
PS: I know there are also a few related issues asking the same thing, but I was wondering if anyone has found out a solution.
(#584 #601 VROOM-Project/vroom-express#45)
The text was updated successfully, but these errors were encountered: