Please include a picture of the mentioned trail if you have one. Nobody will be able to answer a question this open ended without any context.
For a general way to measure distance, you can "break up" the line into more digestible numbers and add up from there to find the total length of the line, aka the distance from one end to another. For instance, dividing it into quarters or halves and such.