
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. 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