Wow - thanks @AliFarahat this is awesome. Just one question and then a few further requests if at all possible.
When you click Save or Add Via the map first centres on United Arab Emirates then back to where ever the waypoint is positioned (im my case Australia). Can this be avoided??
I would like to add another feature or two if possible.
Date - As the user will be planning a trip I would like to add a date to the start, destination and each Via point. I have added these date fields in my own app and saved them in the database via the workflow. I was also able to change the view of the repeating group to sort by date (ascending) rather than sorting order and this works well.
I would like this date to then serve two purposes.
1 - the route be calculated by date and not the current most direct route - that is currently if you add a 2nd Via location © that is between start (A) and the the first Via location (B) the route will go the most direct which will be A-C-B. I would like it to go A -B-C even if you have to back track.
2 - I would like the map markers to show the date rather than the current address of the marker. I have been able to achieve this in other maps in my app using the Bubble methodology but is more difficult for me in this map as it is in code (that I do not understand)
Secondly I would like to use the time and distance functions that you showed me in the original post. I have added these to the map in my app but obviously they only show the time and distance from the From and To addresses. How would we get them to add in the total distance now that includes the Via waypoints??
I know this is a big ask but I do really appreciate your help on all this