Add guiding track id to API
I need to know which track is used for guiding. And I would like to get exact track, which means if locus generates a high detailed navigation track based on a low detailed route then I would like to get navigation track and not the route. Because it is very importand that each navigation point does match to the track id to make the compare more easy. I don't want to use point compare based on distance because this will have a lot of trouble with track loop detection.
I did already implement a hack as workarround to look for the static track id 1000000001. For example if I start navigation for my track id 50 locus does generate a navigation track id 1000000001
But now the usecase where my hack does fail:
If you start a navigation to a target point, locus doesn't create 1000000001 it does create track "51" if my track index was at 50.
I would like to get the guide track id over api, this would solve the following problems:
- to find navigation track I try to query 1000000001 and 1000000002 but this will waste time with stack trace generation
- if this does fail, the user has to do a 4 step process, click on the navigation track -> information -> share -> set to active (stores the selected track in memory)
- need to save the user selection in my addon memory
I did try to make this process more easy by hiding the "set to active" activity if I did find a valid navigation track. But unfortunantly the activity disabling does not only destroy the activity it does destroy a whole part of my application context. During the clear of my in memory cache I do loose the user selection as well, which means I don't do this anymore. Unfortunantly it is very complicated to find out which parts of my memory is hold at which instances. I thought I was save because each activity did has synchronized read access to my cache. But looks like some thing is hold in the wrong place and get destroyed during activity disabling.
Would be very nice if you could just add the ID, this would make thing much more easy and robust.