STATE_track_get_length
Returns the length of the track. If the track is cyclic that the result will also include the length of the last segment connectin the last point and the first point. Example: double length=STATE_get_track_length(my_track);