Get url from map iframe

I use the classic map to allow my visitors to build a waypoint route, and then they copy/paste the url to my backend to further process the route.

The copy/paste step is sometimes hard for new users, so I thought about loading the map in a full screen iframe, and then grab the url via javascript. Sadly cross origin prevents this.

Is there a way to get the planned route (url) from the maps from javascript, via something like iframe or similar?

Hi @Telac,

i’m not quite getting the context.
Could you elaborate a bit on what backend you are running (i guess some sort of route or trip planning?)
Probably also a link to the site where you use it?

Best regards