You can display directions between two locations over google maps using the direction tab.

Step 1Go to Add or Edit Map and scroll down to ‘Tabs Settings’ section.
Step 2Enable ‘Display Directions Tab’ box inside the display tabs.(See screenshot)

Direction-tab
Step 3 Then Save the map and open it in a browser.
Step 4 Assign start location and end location from frontend and click to find direction.
Now you’ll see the following directions tab on the map.
Display Direction Tab

Video Tutorial