logo separator

[mkgmap-dev] What is the idea behind --adjust-turn-headings?

From Gerd Petermann gpetermann_muenchen at hotmail.com on Fri Aug 7 15:40:56 BST 2015

Hi Marko,

> >// also helps to produce a turn instruction when the main
> >// road bends sharply but the side road keeps close to the
> >// original heading
> Oh, that would seem to be applicable for a scenario where you have a 
> grid of highway=residential, and among them a main road (say, 
> highway=tertiary) that is going like zig-zag within the grid. Could it 
> be that Garmin is not issuing a turn instruction in this case, when the 
> main road consists of a single object (with a sharp turn in it)?

Do you have an example OSM id?

> AFAIR, there was another option for implementing support for 
> through_route relations, in a case where a main road goes zig-zag 
> through a village. Is it still present in the code base? Maybe it makes 
> this case of --adjust-turn-headings redundant?

The evaluation of through-route relations is still in the code, I guess it still
works, but IIRC the tag is only rarely used.

I did a few more tests now (without --housenumbers for now).
I think the code for --adjust-turn-heading is somehow wrong, e.g.
if the calculated route is 
entering the junction at node 1828873253
from south going right will not not show a "turn right" instruction
when --adjust-turn-heading is used, but it does without the option.
Consequently, if the route goes straight on to way 171930600,
the instruction is "turn left onto Börtelsdamm" with and 
 no instruction without the option.

It seems that Garmin uses the "Continue on" instruction only on ramps.

Reg. ramps I found no positive effect with --adjust-turn-heading, I see the 
same instructions but sometimes the calculated time is increased, probably 
because the code increases the angle too much.
Maybe the option (and the code) is really obsolete since r3116 which introduced 
the new routines for writing NOD data:

Up to now I did my tests with real data, I'll try to create some test data to find out
if there is still a case where --adjust-turn-heading produces better instructions.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20150807/97ec5a2c/attachment.html>

More information about the mkgmap-dev mailing list