The following tool converts a Google Maps link (also works with Google Maps Directions) to a .gpx file.
https://mapstogpx.com/mobiledev.php
Simulating a trip duration is supported, custom durations may be specified. I enabled "Track Points" and Developer Settings > "Force Route as Waypoints" for a quick test, works flawlessly with Xcode 7.3.1.