Google Maps with Location Distance Integration Tutorial

hi @Seng, is this script still active? The link doesn’t work anymore.
I was able to download some time ago your other tutorial - Google Travel Distance Table Integration, however it doesn’t work, I don’t know why.
I followed exactly your tutorial, Total Distance is calculating fine, but google distance not.
In the browser JS console I have the following error: "ReferenceError: google is not defined"

Any help is really appreciated.

it working fine.

1 Like

please post screen shot of error log

Did you used api key for that?

@vishdha
I appreciate if you may elaborate how to use it and it will be highly appreciated if you share your code for the same.

Regards
Ruchin Sharma

check this link:

Screen Shot

2 Likes

dear @vishdha,
I’m trying to setup the location data calculation, I’ve installed your transport management system, location branch. But it seems I need to somehow add google API to make it work.
Could you please guide me how to do it? I found this:

script async defer src=“https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap” type=“text/javascript”

but I don’t know where to put this line of code.

Your help is really appreciated.

I already put Google Location API in transport_management_sysem/transport_management_system/hooks.py without key.
If you want to use your API then replace with default API in hooks.py

2 Likes

Sorry for the broken Google Drive link above (I couldn’t find a way to edit my post so I post a reply here in case of anyone still need this)

Download The Guideline And Script Here:
ERPNext Google Distance Matrix Integration Documentation v1.1.rar

2 Likes

Hello all,

New user to ERPNext and I am LOVING it. I saw this post and followed the instructions to a “T”. I am getting a Google Maps API error: MissingKeyMapError in my console. The data is not converting to distance at all.

Is this still supported with the most recent Frappe version? Thanks so much!

Ken

Hi @Kenneth_Akers,

Thanks for commenting this post and I received an email about your comment.

Please take note that I’m no longer test / support this work anymore. Thank you everyone for supporting.

However, from the provided error, it seems like Google now requires API key in order for their Google Maps API to work, you can follow the link below to get your own key:

Cheers.

Regards
Seng

@Seng,

Thanks so much for the response. I will definitely look into that and I thank you for everything. Good luck in your future endeavors!