I want to create an app where a users shares the directions link from the Google Maps app and the app generates a GPX file that can be used in a different navigation app.
For example, this short direction link:
https://maps.app.goo.gl/fCuimzb1oqRtdMzn6
expands to:
For the same starting and ending points but a different route the short url is:
https://maps.app.goo.gl/yn3mXWSyFrmwZfar6
which expands to:
I understand that 51.5199302,-0.1103523 is the starting point and 51.5070144,-0.1084179 is the destination point. But how do I decipher the rest of the data in order to make a routing API call that will reproduce the exact route in each case?