Bad cue when route crosses previous section.
I have a route which circles back on itself.
I have attached the Logcat (see attached file titled badCue.Logcat) generated when creating the Location ArrayList (which is placed into Track using setPoint()) and the Point ArrayList (which is placed into Track using setWaypoints()). The Point ArrayList is a set of Cue Points.
When this Track is sent to Locus Map (using ActionDisplayTracks.sendTrack(), the Cue Points are not provided to the user in the right order when navigating.
If the imported route is exported to GPS, the Waypoints are also reported in the wrong order (see the attached file badCue.GPX).
Note that in the Logcat file that Waypoints (a.k.a. cuePoint) index 8 (line 1825) and index 15 (line 1832) appear sequentially in the GPX file (lines 111 and lines 122). You can also search for "Beaver Creek Rd" to find the data in question.
The "Turn right onto Beaver Creek RD, 1008" cue is the only one not in the same order in the GPX file as was supplied to the Track (in the Logcat file).