Closed radim-asamm closed 3 months ago
Sorry for the delay. In fact a bit irritating when the last point isn't found in track. I didn't found a special reason for that, at the end I controlled the locations before it generates messages. Now the last message is equal to the last point in track.
If we look at this sample request, we see that all messages reference points (nodes) of the attached geometry via latitude, longitude (after conversion from integer to floating point data type). Except for the very last one message. This seems to be always the case. This is unexpected. If I insert print commands in function
aggregateMessages()
ofOsmTrack
like this:I see:
So the last message does not match its node. When I dig deeper I see that coordinates of messages are manipulated in the function
addAddionalPenalty
of OsmPath but that manipulation is very complex to read for me. I appreciate any insight into this, so I can at least try to PR this. Many thanks.