Calculating distance between two locations in a delivery app

Hi, I’m developing a delivery app and I’m practically done but the calculation of distance between two geographical locations has been an issue I have been facing for some hours now. I have two inputs and I want the inputs to confirm the location and check maps if the location exists. But the calculation in Km is more important

Hi @damzii432

You could use the directions api from google maps or mapbox maps. These should be able to return the distance along roads between locations.

I have integrated it but there is no resource or documentation that can help with workflows

google maps has very thorough documentation. the prebuilt plugin just uses the google maps api

1 Like

I have a plugin called location diffence it calculate using the grid coordinates:

A lot of times there is a video, and sometimes several that can help you with a problem in Bubble.

Here is just one of the videos I had bookmarked. Maybe it can help you.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.