0

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:

https://www.google.com/maps/dir/51.5199302,-0.1103523/51.5070144,-0.1084179/@51.5131116,-0.114774,2318m/data=!3m1!1e3!4m5!4m4!1m0!1m1!4e1!3e0!5m1!1e1?entry=tts&g_ep=EgoyMDI1MDUxNS4xKgBIAVAD&skid=18184f58-3e22-4f43-8277-9277a041cbdf

For the same starting and ending points but a different route the short url is:

https://maps.app.goo.gl/yn3mXWSyFrmwZfar6

which expands to:

https://www.google.com/maps/dir/51.5199302,-0.1103523/51.5070144,-0.1084179/@51.5131116,-0.114774,2400m/data=!3m1!1e3!4m6!4m5!1m0!1m1!4e1!3e0!5i2!5m1!1e1?entry=tts&g_ep=EgoyMDI1MDUxNS4xKgBIAVAD&skid=64a2fa25-7304-4c95-a32b-c747c2d99030

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?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.