'Attach to road' performance #19642
-
I explore some new multi-day hiking trails and I often import tracks as GPX from hiking websites. They are always made of many points connected with straight lines. To use the full potential of OsmAnd I try to attach them to roads. I have never successfully attached to road any of them. It just seems to take forever. I just waited an hour for a 1.3k points track and nothing happened. I tested with smaller tracks and even 14 points took a few seconds. 100 points probably less than a minute. You can find an example track here I'm using iOS. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 19 replies
-
I always look for a different import format to avoid using 'Attach to road' because I find the performance very poor. |
Beta Was this translation helpful? Give feedback.
-
Significant performance improvement is achieved with new attaching algorithm, please give it a try with 4.8 nightly build |
Beta Was this translation helpful? Give feedback.
@Yaqana Your track is made for pedestrian profile, and it is 153 km long (this is quite a lot!).
For long tracks with huge number of points Attach to roads option may work slowly. Please refer to our documentation https://osmand.net/docs/user/navigation/setup/gpx-navigation/#attach-to-roads
As a workaround, you can increase the threshold distance. You can also cut your track into smaller pieces and attach them one by one.