The site uses Google Maps JavaScript API V3 Reference with a route service.
So, the user creates a route, after which you need to create a link, clicking on which the user gets on Google maps with the route already laid.
How can this question be implemented?
Update
Sorry to blame, clarify the task.
One user creates a route, and another user (or rather the manager) must see the created route in his application.
Because the application comes through mail, then the route can be transmitted via a link. For example, here is the generated link:
https://www.google.com/maps/dir/Π£ΠΊΡΠ°ΠΈΠ½ΠΊΠ°, ΠΠΈΠ΅Π²ΡΠΊΠ°Ρ ΠΎΠ±Π»Π°ΡΡΡ, Π£ΠΊΡΠ°ΠΈΠ½Π°/50.15009569999999,30.746957000000066/50.1877935,30.585807799999998/50.17840169999999,30.31590349999999/50.17263,30.51898879999999/Π£ΠΊΡΠ°ΠΈΠ½ΠΊΠ°, ΠΠΈΠ΅Π²ΡΠΊΠ°Ρ ΠΎΠ±Π»Π°ΡΡΡ, Π£ΠΊΡΠ°ΠΈΠ½Π°
On this link in Google Maps you can see the paved route from the initial to the final point through the intermediate. But it does not give a complete picture. For example, if the user drags the route, then the manager who watches the application will not see the changed route, but only the one that is displayed in the link.
The task is as follows: how to move the created route in the API maps to the Google web-service of the map?