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

Fragmented route generation on osrm-routed #6942

Open
csotiMatyas opened this issue Jun 11, 2024 · 0 comments
Open

Fragmented route generation on osrm-routed #6942

csotiMatyas opened this issue Jun 11, 2024 · 0 comments

Comments

@csotiMatyas
Copy link

csotiMatyas commented Jun 11, 2024

Hey we are running the docker image on linux ( i dont know the distro ), but i tried this on my mac as well, both the osrm-routed and the nodejs binding.

When using the nodejs binding this does not happen!

When using osrm-routed with MLD ( extract -> partition -> customize ), europe-latest from https://download.geofabrik.de/europe.html, the generated route is:

  1. Fragmented.
  2. The higher the coordinate count in a url, the worse it gets. We are currently double generating a route, first with 20 per url then we feed the result back to osrm-routed with 100 per url. ( Which is bloody wasteful ).

Here is a url: ${process.env.NEXT_PUBLIC_OSRMURL}/match/v1/driving/${coordinates.join(';')}?overview=full&radiuses=${radiuses.join(';')}&timestamps=${timestamps.join(';')}&tidy=true&gaps=ignore

We are using radiuses and timestamps as well.
Running version 5.26.0.

BONUS QUESTION
What is the intended way of using this service with a big load, up to 30K+ coordinates? I have seen mentions that the osrm-routed is only for "prototyping / dev / small load" but could not find anything "official"
Feeding 10K coordinates with a URL, resolved in 200 seconds!!!. While i was able to feed 9K coordinates into nodejs binding and it took around 5600ms on average to resolve.

2000 coordinates / URL
2000coords-url

1000 coordinates / URL
1000coords-url

500 coordinates / URL
500coords-url

100 coordinates / URL
100coords-url

20 coordinates / URL
20coords-url

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant