get_trace function

Tracing the index over an interpolated planned tour path.