# Goggle Distance Matrix API -Help Needed!

**URL:** <https://forum.bubble.io/t/goggle-distance-matrix-api-help-needed/6856>\
**Category:** APIs\
**Created:** [October 12, 2016, 4:55am UTC](https://forum.bubble.io/t/goggle-distance-matrix-api-help-needed/6856 "2016-10-12T04:55:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrjohnkilonzi](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mrjohnkilonzi/32/8133_2.png) [@mrjohnkilonzi](https://forum.bubble.io/u/mrjohnkilonzi)\
**Post date:** [October 12, 2016, 4:55am UTC](https://forum.bubble.io/t/goggle-distance-matrix-api-help-needed/6856/1 "2016-10-12T04:55:02Z")

</div>

I just can’t seem to get this correct. I have two locations that 1 want to calculate distance /time between them. I have two input boxes and 2 output + a button . The idea is put origin and destination then get output time and distance after clicking button. ISSUE: I cant get how to insert /parse Origin and Destination Into the URL of the Distance Matrix API - inside the Bubble API connector

---

<div class="post-metadata">

**Author:** ![AliFarahat](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alifarahat/32/189604_2.png) [@AliFarahat](https://forum.bubble.io/u/AliFarahat)\
**Post date:** [October 12, 2016, 5:35am UTC](https://forum.bubble.io/t/goggle-distance-matrix-api-help-needed/6856/2 "2016-10-12T05:35:07Z")

</div>

Look here

> [@Google My Maps and Location History](http://forum.bubble.io/t/google-my-maps-and-location-history/6586/9):
>
> Thanks a great deal @motorhome! I am looking at it right now. I will get to it tomorrow and keep you updated! Thanks so so so much!!!

---

<div class="post-metadata">

**Author:** ![culpop](https://avatars.discourse-cdn.com/v4/letter/c/b5ac83/32.png) [@culpop](https://forum.bubble.io/u/culpop)\
**Post date:** [October 25, 2016, 1:10am UTC](https://forum.bubble.io/t/goggle-distance-matrix-api-help-needed/6856/3 "2016-10-25T01:10:51Z")

</div>

Thanks @AliFarahat. I am wondering how I can calculate distance and time for all modes of transport (i.e. driving, walking, bicycling, flying, using transits like bus, ferry, train, and etc.

---

<div class="post-metadata">

**Author:** ![AliFarahat](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alifarahat/32/189604_2.png) [@AliFarahat](https://forum.bubble.io/u/AliFarahat)\
**Post date:** [October 25, 2016, 4:47am UTC](https://forum.bubble.io/t/goggle-distance-matrix-api-help-needed/6856/4 "2016-10-25T04:47:58Z")

</div>

Use the Google API matrix with the mode of transport parameter set on client safe. Then call on the API while passing each of the required mode of transport.

So essentially what you need to do is call the API for every mode of transport.

---

<div class="post-metadata">

**Author:** ![culpop](https://avatars.discourse-cdn.com/v4/letter/c/b5ac83/32.png) [@culpop](https://forum.bubble.io/u/culpop)\
**Post date:** [October 26, 2016, 3:21pm UTC](https://forum.bubble.io/t/goggle-distance-matrix-api-help-needed/6856/5 "2016-10-26T15:21:57Z")

</div>

Thanks @AliFarahat! I am a novice, but I am going to give it a shot. Does this mean, the HTML code I passed though bubble must be edited for the different modes of travel? Also, how do I call these modes of travel from the API?

Lastly, I do I revise my google distance and time matrix? Thanks.

---

<div class="post-metadata">

**Author:** ![cristian.quiles](https://avatars.discourse-cdn.com/v4/letter/c/58f4c7/32.png) [@cristian.quiles](https://forum.bubble.io/u/cristian.quiles)\
**Post date:** [January 2, 2021, 6:53pm UTC](https://forum.bubble.io/t/goggle-distance-matrix-api-help-needed/6856/6 "2021-01-02T18:53:49Z")

</div>

> [@AliFarahat](#):
>
> client safe

Hello can you show this? thank you
