# Google Map Integration for delivery and distance calculator in Sambapos V5

**URL:** <https://forum.sambapos.com/t/google-map-integration-for-delivery-and-distance-calculator-in-sambapos-v5/24257>\
**Category:** V5 Question\
**Created:** [May 24, 2021, 10:35am UTC](https://forum.sambapos.com/t/google-map-integration-for-delivery-and-distance-calculator-in-sambapos-v5/24257 "2021-05-24T10:35:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bhuwan](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/b/e274bd/32.png) [@Bhuwan](https://forum.sambapos.com/u/Bhuwan)\
**Post date:** [May 24, 2021, 10:35am UTC](https://forum.sambapos.com/t/google-map-integration-for-delivery-and-distance-calculator-in-sambapos-v5/24257/1 "2021-05-24T10:35:18Z")

</div>

How to Integrate Google Map for Delivery in Sambapos V5. Unable to find any Option for that.

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [May 24, 2021, 3:27pm UTC](https://forum.sambapos.com/t/google-map-integration-for-delivery-and-distance-calculator-in-sambapos-v5/24257/2 "2021-05-24T15:27:20Z")

</div>

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…

> [@Advanced Tutorial: Automatic Delivery Charge Based on Distance via Google Maps](https://forum.sambapos.com/t/advanced-tutorial-automatic-delivery-charge-based-on-distance-via-google-maps/6918):
>
> 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…
