You can achieve this map direction using google Api.
Create an account in the google cloud console
Follow this procedure to create an account: https://cloud.google.com/apigee/docs/hybrid/v1.3/precog-gcpaccount
To create API key check this link : https://developers.google.com/maps/documentation/embed/get-api-key
In the 3rd step, you can find Enable API option in which you can add google direction.
After enabling this copy the api and paste it into the map widget.
Note:: It is the paid process
Refer to this for Link Free Process https://leafletjs.com/examples.html
I hope it helps