You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, is there any way you could add batch routing to OSRM? For example, I need to see how far multiple points(~100) are from a single point, and I need to be able to do it really fast. To do this I have two options viaroute and table. In my setup(~1ms latency) it takes an average of 17ms to make one viaroute request and it takes ~140ms for a distance table for 100 points. Unless there's shortcuts, doesn't OSRM have calculate y^2/2 routes(5000 calculations for 100 points) for a table? Since I just need the distances to one point I end up throwing away 4900 of those 5000. If it can generate tables that quickly then it must be able to do multiple viaroutes(one start point to lots of end points) much much faster. The app/website I'm building that has to do multiple routing requests and api calls and still return the results quickly, so speed is very important. Do you think that this could be a feature you can add in the near future? I think batch processing would be very useful feature instead of having to do everything one at a time. Thanks.
OSRM is awesome btw!
-Marcus
The text was updated successfully, but these errors were encountered:
What you want is called One-to-Many routing. There is actually a PR for that, see here: #1162
"Batch-Processing" is unlikely to be added, as there will be no real speedup compared to parallel requests (might save some minor bandwidth, but not significantly).
Hey, is there any way you could add batch routing to OSRM? For example, I need to see how far multiple points(~100) are from a single point, and I need to be able to do it really fast. To do this I have two options viaroute and table. In my setup(~1ms latency) it takes an average of 17ms to make one viaroute request and it takes ~140ms for a distance table for 100 points. Unless there's shortcuts, doesn't OSRM have calculate y^2/2 routes(5000 calculations for 100 points) for a table? Since I just need the distances to one point I end up throwing away 4900 of those 5000. If it can generate tables that quickly then it must be able to do multiple viaroutes(one start point to lots of end points) much much faster. The app/website I'm building that has to do multiple routing requests and api calls and still return the results quickly, so speed is very important. Do you think that this could be a feature you can add in the near future? I think batch processing would be very useful feature instead of having to do everything one at a time. Thanks.
OSRM is awesome btw!
-Marcus
The text was updated successfully, but these errors were encountered: