I have got it working. I didn't have Google Maps JavaScript API and Google Maps Directions API enabled. I managed to enable the 2 and it's working fine. Thank you.
Liked On: June 13th, 2018, 09:02 AM