Forum Academy Marketplace Showcase Pricing Features

Goggle Distance Matrix API -Help Needed!

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

Look here

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.

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.

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.