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

Is there an easier way to run hundreds different profile(the differences lie at height and weight) on one machine? #5530

Closed
hxm841946123 opened this issue Aug 29, 2019 · 2 comments

Comments

@hxm841946123
Copy link

I'm doing a school project which is designing a truck navigator. There are 25 different heights and 25 different weights of the truck. So there are 625 combinations of the height and weight, so I have to compile 625 different profiles. I know I can use nginx.conf to run multiple profiles on one machine. But I just wondering if there is an easier way to do so?

@danpat
Copy link
Member

danpat commented Aug 29, 2019

No, this is one of OSRM's major drawbacks - the shape of the routing graph is specific to the profile, and much is pre-calculated.

For things like truck routing, where there are a large number of possible filters, it's not super practical to pre-calculate all the variations of the graph. You either need a specialized, metric-independent speedup system, or just something like A* and calculate edge admissibility/weight at query time based on parameters.

You might want to take a look at the Valhalla routing engine https://github.com/valhalla - it has a truck profile that lets you adjust these kinds of parameters on a per-request basis. The downside is some query performance, but that's not always a problem if your request volumes are not absurdly high.

@hxm841946123
Copy link
Author

Thank you so much.

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

No branches or pull requests

2 participants