Hello,
I am a non-developer who is gradually learning to read javascript but I still have a lot of trouble.
I'm trying to create an interactive map and especially to retrieve information from it.
I found an example that I customized: I integrated this HTML / Javascript map in an Iframe, to get a result like this :
The departure route is fixed, the arrival route changes and is calculated based on where you click.
I hid my token id but here is the code:
https://justpaste.it/9ihsy
what I cannot do is therefore retrieve information such as travel time
It blocks me a lot and I spend a lot of hours browsing the forum without finding a solution to this problem. I have to use a function? but if so, how to write it in javascript and what to write in the events to retrieve the variable?
Is it in an iframe that I have to put this code to retrieve the variables?
After that, I would like to be able to do the reverse and create a variable from the events to insert it into the javascript code. Is this also possible? (in iframe or otherwise?)
Thank you very much for the help.