Bhuwan
May 24, 2021, 10:35am
1
How to Integrate Google Map for Delivery in Sambapos V5. Unable to find any Option for that.
It’s covered on forum, although Google map api is no longer completly free, you need a card on account and think something like 200 per month are free.
Seccond result searching forum for Google maps…
Here is the setup to charge the customer for delivery only if the distance is more than 10 km
Create required script from Automation > Scripts
Name = GoogleDistance Name it anything you want really
Handler = gmaps
function gdistance(origin,destination)
{
var nl = '<linebreak/>';
var u = 'http://maps.googleapis.com/maps/api/distancematrix/json?origins='+origin+'.&destinations='+destination+'.&mode=driving&language=en-GB&sensor=false&units=metric';
var alldata = web.Download(u);
var jso…