thank you for your prompt reply. Unfortunatelly other users will not use any additonal tools to draw gpx…
I was thinking as follows:
As I will not be the only one to use this app, I don’t know how many tracks will gpx file contain. But let say I limit number of track inside gpx file to 3. Therefore, inside one gpx can be 1, 2 or 3 tracks. One track to the mountain, second around the mountain back to the starting point, third alternative path like shortcut etc. to the mountain, any other tracks are ignored.
I can use three linestrings for each track. If there is one track then first linestring with blocks is true, other two are false etc.,
But here is a problem how to find out how many tracks are inside one gpx. My approach was to count how many tags “name” is inside gpx file, as each track has only one name.
I did it with following block. First step is to get text from entire gpx file.
Second step is to count how many “names” is inside gpx file text.
That works great if………. gpx file is small, therefore if gpx is record of short trail. If there is 10 hours long trail gpx file contains more thousand coordinates and proces of counting could take 1 minute or even more which make app useless.
Do you have any idea how to proceed? Maybe somehow to replace all text that is not “name” before counting? Or maybe something completly else?