Advanced Tutorial: Automatic Delivery Charge Based on Distance via Google Maps

Google have made changes to api that effected postcode lookup, likely related since origional post is over 3 years old.
You would need to check over the script.
Check if your getting expected response from that as that’s likely the issue.

And is there an another way to get this to work?
Because I don’t have so much knowledge about scripts…

Google’s api for this is a paid service now. There is no free API. You would need to pay Google for it.

1 Like

ok i have now an api key for distance matrix how i can implement it?

You will need to edit the configuration to work with new api. If your not familiar with it then you will find it very difficult to do. It is possible you may be able to purchase help from a reseller or contact support@sambapos.com they may be able to help you for a fee since it would be custom work.

Possibly someone on the forum will take interest and maybe help you.

ok thank you for responding!

ok now the script is working but i have an issue with the entity data updating sometimes it works when i play with the format typs then i create a new entity and its not saving the data…

This was great tutorial but I am facing this a issue and that is Entity field Distance.

Data in the field is not updating I have reviewed each step and also tried with this code

{CALL:gmaps.gdistance(‘YOUR ADDRESS’,’{ENTITY DATA:Customer:Address}’)}

so please guide me just this one step in which I can update Distance in my customer field.

Thanks