Routing in OSM Tools

Welcome to all
I have a question:
Is it possible or are there plans to make it possible in this great OSM Tools plugin to calculate the route through more points so that they connect into one route?
Example :
There are several customers on the truck route,
START -> A via B via C via D and more to the META point.

I would be grateful for your feedback.
Greetings
Peter

Hi Peter,

actually I recently thought about smth similar as well, see here:

However, that won’t happen in the next weeks. I just finished a major refactoring and upgrade (release in next weeks). Gotta give a rest for a couple of weeks;)

I actually did it;)

Stable version in the orstools branch. Release in 1-2 weeks:
https://github.com/nilsnolde/orstools-qgis-plugin/tree/orstools

Hi Nils

I have a problem with installing your plug-in from the zip file, from the given link: https://github.com/nilsnolde/orstools-qgis-plugin/tree/orstools.

The information after installation is: no metadata file

I install from a zip file, Qgis 3.4

Is there a solution for this?

Regards Peter

Rather try the development branch:
https://github.com/nilsnolde/orstools-qgis-plugin/archive/development.zip

You have to unzip and zip the ORStools folder only (you likely missed that step). Then in QGIS Import from ZIP in the plugin manager.

Let me know if that worked.

Actually, you were right I unpacked not what I needed. Thank you.

I am not sure if I understand this tool well.
Is there a possibility that I wrote about earlier, i.e. combining many points into a route?
If so, how to use it?

Hmm, I was hoping that would be self-explanatory. Either interactively via ‘Map’ or via batch job ‘Directions from Lines’ (which has to be a Linestring, which I realize right now should also be possible with Points, I guess).

Hello nils! ORS tools are really working well for us using from->to points, thanks much for development and maintenance of this product. One question: Are there instructions anywhere describing how to configure line (or point) files so they satisfy the rules for batch tools. We are trying to run a series of lines now with just one row going through a series of vertices (this is how I guessed it should work) though the corrdinates for vertices are not listed in attributes, only in geometry. Does the batch tool look through every line vertex and see if it has 50 waypoints? We would like to use this tool quite a bit so any deeper description other than what we get for error messages would be great. Also - waypoints less than 50, is that very important? we have about 1000 of those we would like to run. here is an example of part of the error message, as I understand the >50 waypoints is only part of the problem.
2019-06-17T09:49:58 CRITICAL Traceback (most recent call last):
File “C:/Users/dre02/AppData/Roaming/QGIS/QGIS3\profiles\devon/python/plugins\ORStools\core\client.py”, line 161, in request
blocking=True)
File “C:/Users/dre02/AppData/Roaming/QGIS/QGIS3\profiles\devon/python/plugins\ORStools\core\networkaccessmanager.py”, line 259, in request
raise self.http_call_result.exception
ORStools.core.networkaccessmanager.RequestsException: Network error #400: Error transferring https://api.openrouteservice.org/directions?coordinates=16.1642,60.1459|16.16577,60.14842|16.03702,60.22933|16.02385,60.24508|16.01481,60.25896|15.98964,60.28643|15.97951,60.29636|15.95691,60.3059|15.93201,60.3146|15.89852,60.3211|15.86421,60.32613|15.83155,60.33221|16.17347,60.15493|15.80008,60.33479|15.7738,60.34001|15.7597,60.34572|15.74749,60.3547|15.7227,60.36063|15.703,60.36987|15.67331,60.381|15.65169,60.38619|15.6197,60.39514|15.59779,60.40985|16.17206,60.15684|15.56191,60.41665|15.52997,60.42751|15.51028,60.43731|15.49197,60.4493|15.47238,60.46267|15.45978,60.4721|15.44725,60.48077|15.46782,60.48672|15.50256,60.49361|15.52828,60.50772|16.15273,60.16642|15.55255,60.5219|15.56105,60.54016|15.58115,60.55652|15.60039,60.57343|15.61715,60.58898|15.62184,60.6002|15.61579,60.60443|15.61413,60.61536|15.61625,60.62222|15.6048,60.62783|16.13429,60.1788|15.58722,60.63694|15.56781,60.64733|15.55233,60.65841|15.5421,60.66787|15.51883,60.67175|15.50695,60.67979|15.48453,60.69452|15.4718,60.7025|16.12232,60.18633|16.1059,60.19506|16.08216,60.20467|16.05457,60.21485&format=geojson&geometry=true&geometry_format=geojson&id=None&instructions=false&preference=fastest&profile=driving-car - server replied: Bad Request

         During handling of the above exception, another exception occurred:
         
         Traceback (most recent call last):
          File "C:/Users/dre02/AppData/Roaming/QGIS/QGIS3\profiles\devon/python/plugins\ORStools\proc\directions_lines_proc.py", line 209, in processAlgorithm
          response = clnt.request(provider['endpoints'][self.ALGO_NAME_LIST[0]], params)
          File "C:/Users/dre02/AppData/Roaming/QGIS/QGIS3\profiles\devon/python/plugins\ORStools\core\client.py", line 170, in request
          self._check_status()
          File "C:/Users/dre02/AppData/Roaming/QGIS/QGIS3\profiles\devon/python/plugins\ORStools\core\client.py", line 234, in _check_status
          message
         ORStools.utils.exceptions.GenericServerError: 400 ({"error":{"code":2004,"message":"Request parameters exceed the server configuration limits. The specified number of waypoints must not be greater than 50."},"info":{"engine":{"version":"5.0.1","build_date":"2019-05-29T14:22:56Z"},"timestamp":1560757798077}})
1 Like

Hi,

as far as I can see you’re doing everything right. The lines tool just takes the line geometry and computes a route with every vertex representing one stop.

It’s ORS itself restricting the amount of vertices to 50, as you can see in the error message. And we can’t really change that, sorry. You can only decimate your input files or host ORS yourself: