Currently, I am developing an updated tool that can transform Google Maps directions into GPX files. The initial version of this tool is performing quite well: it utilizes the Google Maps Javascript API (v3) to showcase a map on the website, allowing users to plan their route using familiar methods similar to those on the main Google Maps page.
An important feature of this site (and the functionality in previous versions prior to Google making changes to their undocumented &output=kml interface!) involves users mapping out their routes on the main Google Maps platform and saving the link for future reference. By pasting this link onto the site, the tool would then convert the planned route into a GPX file.
I am curious if there is a method to extract a DirectionsResult from a Google Maps URL or the main Google Maps page (potentially achieved by submitting the URL to the Google Maps API for analysis or utilizing a bookmarklet on the webpage itself).