Build an offline route and export it as a GPX track.
Load Lisbon sampleClear route
Distances are straight-line estimates between waypoints. The preview has no street routing.