maps2gpx

Paste a Google Maps share / directions link and get the route geometry as a GPX track. Only the route highlighted in your original link is exported, exactly as selected.

Examples: https://maps.app.goo.gl/kNws6LY5nEm5WFdA8

Route