Route optimisation using ORSTools and a local openrouteservice instance

I am trying to use QGIS to optimise a delivery route for a large number of stops in a fairly small area.

I have been able to get route maps with a preserved stop order by creating a local instance of openrouteservice in docker and pointing ORSTools at localhost:8080/ors, but the travelling salesman options don’t work.

Reading around it seems that the optimisation elements were removed from the docker version of openrouteservice.

In theory I could create a local instance of VROOM Express and ask it to listen to say localhost:3000/optimisation and then point OSRTools at localhost:3000 just for travelling salesman queries - but before I try to learn how to use VROOM Express, does anyone know for certain if this will work or if there is a better solution?

Because so far VROOM is very good at telling me it is listening to port 3000 and very bad at explaining why it refuses to do anything when something tries to talk to it.

Hey,

yes, in theory that should work.
ORSTools does send an /optimization request, which goes directly to a VROOM instance.

I am not completely sure, however, whether the plugin currently allows talking to two separate instances - it might be that regular requests don’t work anymore as they might go to the same server. Not sure about that though.

However, depending on what you want to do with it, there has been a “Vroom for QGIS” plugin floating around lately:

I haven’t tested it, and cannot tell you whether it’s easy to use or whether it indeed works OOTB, but it is said to work with a local ors and VROOM instance.

Best regards