Ok, here is the response:
{“destination_addresses”:[“Via Giovanni Amendola, 5, 98071 Capo d’Orlando ME, Italy”],”origin_addresses”:[“Via Giovanni Amendola, 25, 98071 Capo d’Orlando ME, Italy”],”rows”:[{“elements”:[{“distance”:{“text”:”0.4 km“,”value”:395},”duration”:{“text”:”2 mins”,”value”:117},”status”:”OK”}]}],”status”:”OK”}
So if you add price 1 and divider 1, you should get 0.4EUR for the shipping. If you get any more than that, then check you don’t have any additional fees for your shipping.
Minimum and maximum values are used for limiting the shipping method’s visibility. You can set the minimum to 3km for example so the shipping method won’t show up until the distance from your shop to customers location is more than 3 kilometers.
However you can set up 2 or more shipping methods. One with the fixed fee for 3km distance. Minimum distance 0, maximum distance 3 and then set fixed fee for this shipping method.
Then add another shipping method where minimum distance is 3.1 and maximum distance is some large number, e.g. 9999. Then add the divider and fee as you wish and leave the fixed fee field empty.
Kim