
Hi Ticker, Am 2024-08-09 12:48, schrieb Ticker Berkin:
Hi Thorsten
I don't see an easy solution to your second example, the "turn-off" is almost straight on.
I don't understand why my change didn't fix your first example, unless you allocate different road speed/class for different smoothness, surface, tracktype tags, in which case the continuous way might be lower priority than the joining way and the algorithm prefers to this.
To get that right: Your patch fixes one half of my first example: if you let Garmin calculate the route, it will now use the junction and will not use u-turns and detours to avoid it. So your patch is an improvement. What it does not fix is the wrong navigation instruction: it tells you to turn right if you need to go straight forward, and if you need to turn left it doesn't tell you anything. And this shouldn't have anything to do with road speed or surface. Beside for the tests I made sure that road speed and everything else is identical. Regards, Thorsten
Regards Ticker
On Thu, 2024-08-08 at 17:11 +0200, Thorsten Kukuk wrote:
Am 2024-08-08 16:52, schrieb Ticker Berkin:
Hi
First of all did you have these values in AngleChecker COMPACT_DIR_DEGREES = 45+1; SHARP_DEGREES = COMPACT_DIR_DEGREES; If SHARP_DEGREES is less than this, then, with compactDir format, there might not be big enough distinction between the directions of the 2 exit ways to get the correct turn instruction.
Yes, I haven't changed them. I'm using mkgmap r4921 with your patch.
Your second example isn't quite clear; there are 3 3-way junctions near the coords you gave, and, for one of them, the continuous way bends with the other way, starting at the node, almost straight on going south. Without loading these nodes and checking all the initial headings I can't tell which angles are "sharp" and AngleChecker doesn't do anything if there are no sharp angles.
The point is https://www.openstreetmap.org/node/261582603 The ways are https://www.openstreetmap.org/way/24147681 and https://www.openstreetmap.org/way/24147729
Thorsten _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev