Vehicle parameter: weight and hight need more options

94 views
Skip to first unread message

We Ka

unread,
Mar 7, 2020, 3:57:58 AM3/7/20
to OsmAnd
Hello,

In truck mode, there need to be more possibilities for weight and height settings. The predefined values are too inaccurate. For example: the weight limit of 12t is missing, but this is a very important vehicle category. If you choose 10t in Osmand, it will lead you into trouble, and if you choose 15t, it will let you drive unnecessary distances.

The same is valid for the hight: there are lots of different hight limitation between 3.5m and 4m, and being led an unnecessary and longer distance around a tunnel that is marked "3.9m", because your vehicle is 3,8m meters high, is a total waste of time and fuel.




Greg Troxel

unread,
Mar 7, 2020, 9:38:16 AM3/7/20
to We Ka, OsmAnd
It sounds like you should file a bug report and pull request at the
github source code page.

Or perhaps two: one to add values, and one to let the user enter a
number. (From your message, I am assuming you are unable to simply
enter a value.)

Harry van der Wolf

unread,
Mar 7, 2020, 10:35:42 AM3/7/20
to osmand
This is part of the routing.xml. on line #396


<parameter id="weight" name="Weight" description="Maximum vehicle weight to be permitted on the route" type="numeric" values="0,1.49,2.99,3.49,4.99,7.49,9.99,14.99,19.99,39.99" valueDescriptions="-,1.5t,3t,3.5t,5t,7.5t,10t,15t,20t,40t"/>

Please let me know what it should be and I will do a pull request. Adding the 12t is simple, but are there more (legal) weight limits?

At "some time", it will be added to a new release. In the mean time you can create your own modified routing profile where you add this value.

See attached truck_mod.xml. I added 12t and 30t. If you open the file you can easily what to modify.

Open OsmAnd
- Settings -> Scroll down and create new profile
- Select Profile car
- Give it a name (truck modified?)
- Select color and icons and save.

You are now still in your freshly created profile.
- Got to navigation settings (2nd option)
- Select Navigation type (top one)
- Now scroll down and select the "truck_mod" navigation type
- Go back until your are out of the profile and you can now use it.
- Adapt it further to your liking.

Note that the attached truck_mod.xml still has the default heuristic coefficient (heuristicCoefficient="1.0")

Harry

Op za 7 mrt. 2020 om 09:58 schreef We Ka <wolfgang....@gmail.com>:
Hello,

In truck mode, there need to be more possibilities for weight and height settings. The predefined values are too inaccurate. For example: the weight limit of 12t is missing, but this is a very important vehicle category. If you choose 10t in Osmand, it will lead you into trouble, and if you choose 15t, it will let you drive unnecessary distances.

The same is valid for the hight: there are lots of different hight limitation between 3.5m and 4m, and being led an unnecessary and longer distance around a tunnel that is marked "3.9m", because your vehicle is 3,8m meters high, is a total waste of time and fuel.




--
You received this message because you are subscribed to the Google Groups "OsmAnd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osmand+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osmand/b80215f2-9368-41ea-9ec4-8ff56f20d9cd%40googlegroups.com.
truck_mod.xml

We Ka

unread,
Mar 8, 2020, 6:46:10 AM3/8/20
to OsmAnd
Thank you very much! This will certainly ease my work a lot by shortening the routes. :)


> Please let me know what it should be and I will do a pull request. Adding the 12t is simple, but are there more (legal) weight limits?

Theoretically, any limitation of maximum allowed weight is possible on a road. It depends on the static of bridges, the ground beneath the pavement, and on the tightness of turnings and corners of a road, because a truck's maximum weight and length are mostly related to each other. (Not always, but most of the times.) And last, but not least, it depends on what kind of traffic the local residents want in their streets. ;)

But the most common limitations are: 3,5t, 5t, 7,5t, 12t, 20t. The limitation to 12t max weight is a very important one, because it is the category of trucks that is most often used for delivery of heavy and large goods to private addresses and companies in local areas and within towns.

Talking about a vehicle's length: this should also become an optional parameter for routing in a future version, because there are also limitations in length on many crossings and corners. These limitations do not only apply to trucks, but also to vans and cars pulling trailers. So I thing that this is of common interest as well.


Note that the attached truck_mod.xml still has the default heuristic coefficient (heuristicCoefficient="1.0")

I don't know what this means, what (dis)advantage it will bring and if I should change it to any thing else. If you could tell me in one or two sentences, I'd be thankful.
 

Harry van der Wolf

unread,
Mar 8, 2020, 7:01:24 AM3/8/20
to osmand


Op zo 8 mrt. 2020 om 11:46 schreef We Ka <wolfgang....@gmail.com>:

Note that the attached truck_mod.xml still has the default heuristic coefficient (heuristicCoefficient="1.0")

I don't know what this means, what (dis)advantage it will bring and if I should change it to any thing else. If you could tell me in one or two sentences, I'd be thankful.


Sorry, but I can't explain this in  2 sentences. a heuristic coefficient =1 it theoretically (!) the best but by far the slowest (and used by OsmAnd by default). "Real world" values are somewhere between 1.2 < hc < 1.6. In the real world a value between 1.3 and 1.5 is optimal (I think).

If you only want the specifics, start with my post of 5 March and ending with my post on 6 March with the 2 xml files attached. And do not only read my posts but also those of Arndt (creator of Brouter) and of Florian. These contain really important info.

Harry

Harry van der Wolf

unread,
Mar 8, 2020, 7:08:33 AM3/8/20
to osmand
Op zo 8 mrt. 2020 om 11:46 schreef We Ka <wolfgang....@gmail.com>:
Talking about a vehicle's length: this should also become an optional parameter for routing in a future version, because there are also limitations in length on many crossings and corners. These limitations do not only apply to trucks, but also to vans and cars pulling trailers. So I thing that this is of common interest as well.


Sorry. Forgot to answer this. Please file this as a feature request at https://github.com/osmandapp/Osmand/issues

Harry 

Harry van der Wolf

unread,
Mar 8, 2020, 7:16:17 AM3/8/20
to osmand
Sorry. I made a very stupid mistake.
I set the 12t as 12r, and did not add the correct weight.
Please use attached one.

Please also find a truckmod12.xml which uses a slightly elevated hc=1.2. 
Try for yourself :)

Harry


Op zo 8 mrt. 2020 om 12:08 schreef Harry van der Wolf <hvd...@gmail.com>:
truck_mod.xml
truck_mod12.xml

Harry van der Wolf

unread,
Mar 8, 2020, 10:51:57 AM3/8/20
to osmand
I created a pull request (https://github.com/osmandapp/OsmAnd-resources/pull/613).
The 12t and 30t have been added.
Now you have to wait untill a new release is published on the Play store to have it by default in the app.

Op zo 8 mrt. 2020 om 12:16 schreef Harry van der Wolf <hvd...@gmail.com>:

We Ka

unread,
Mar 8, 2020, 12:34:15 PM3/8/20
to OsmAnd
Thanks again for your kind help!

I will try your two modified routing profiles during the week and if you're interested, I will report back their behaviour and performance next weekend.

I looked into the discussions that you gave links to, about the heuristic and brouter, but I'm afraid I did not understand half of it. I am not a real programmer, and I am missing many of the background theories there. So I can not predict which one of your files is the best for me, I will have to stick to try&error to find out . ;)


We Ka

unread,
Apr 16, 2020, 3:07:23 PM4/16/20
to OsmAnd


Sorry for the long delay!

I've been using your modification for nearly 5 weeks now, and I could not discover any disadvantages or bugs, and it did not drive me into dangerous situations, like low bridges. I would vote for making these changes official!

Harry van der Wolf

unread,
Apr 17, 2020, 5:48:42 AM4/17/20
to osmand
Hi,

The changes are already in the code base. See here: https://github.com/osmandapp/OsmAnd-resources/blob/master/routing/routing.xml#L396   (be patient when it loads)
We are currently on 3.6.3. I assume it will be available in 3.6.4 and up.


Op do 16 apr. 2020 om 21:07 schreef We Ka <wolfgang....@gmail.com>:


Sorry for the long delay!

I've been using your modification for nearly 5 weeks now, and I could not discover any disadvantages or bugs, and it did not drive me into dangerous situations, like low bridges. I would vote for making these changes official!

--
You received this message because you are subscribed to the Google Groups "OsmAnd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osmand+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages