I am trying to have a gx:track\'s line to have different colour in different part in the track depending on some conditions, but I am unable to find way to colour part of a
I used simplekml which uses Python to generate KML code. As the other answers point out you have to split the line into multiple linestrings each of which has a different style. You can use a common set of styles for making the size of kml smaller though.
the end coordinates of one line is the start coordinates of the next line.