As you can see, I've changed the original path. GMaps, therefore, also changes data param in order to reflect the changes I made in the route when I dragged and dropped but it does not add waypoints.
There also exists directions api (https://maps.googleapis.com/maps/api/directions/json), and, theoretically, I could retrieve a JSON object for the same route and passing origin, destination, and waypoints.
However, because I dragged and dropped the route in the way, the JSON I'm getting does not follow the path I plotted, once the URL did not change waypoints param but changed data parameter.
Let me place an example here of how the api would be called: https://maps.googleapis.com/maps/api/directions/json?origin=New+Jersey&destination=New+York,+NY
As you can see here, no waypoints because they were dragged.
How do I add data param into the JSON object to reflect the changes?
dataparam, therefore the JSON object does not reflect the real route i'm trying to retrieve. - Eduardo Kasper