Templates Plugins Courses

MapBox Plugin: Distance calculation


Using the MapBox plugin, only allows me to get the distance from A to B for the current destination.

I need this for several other elements of my app outside the map.

Any chance you can add this a API data source or Calculate Formular?

Eg. just like the Google Distance Matrix plugin, but using the selected transport mode from a MapBox element or a input field?

Hello @siticum,

To better assist you and potentially develop a feature that benefits not just you but other users as well, could you please elaborate on your request? The more details you can provide, the better we can tailor our solution to meet your needs.

Wishing you a fantastic day ahead! :blush:

Yes. Here goes…

I need to calculate route distances for many addresses across my app. Not just the active destination used on the map element via the route action.

Eg. i need actual (not straight line) distances for driving, cycling etc.

The Google Distance matrix plugin can do this, but the distance varies quite a lot from the MapBox plugin and as far as my tests goes, the MapBox distances are better.

Also, the distance matrix does not allow me to set transport mode.

If you can build this as an addition to the build in list of “Calculate formular” in bubble or as a API call, it would open up calculating precise route distances in-line with the navigation in the map element.

Let me know if you need more info. try out the Google Distance Matrix Plugin

Hello @siticum,

We appreciate the additional information you’ve provided.

Our development team has been informed, and they will investigate the feasibility of incorporating this feature into the plugin.

Thank you for your patience and understanding during this process :pray:

Wishing you a fantastic day! :blush:

1 Like

Hey @siticum,

I’d like to suggest checking under the Data Calls for the plugin, where you’ll find the “Get Route Data” action that provides information about the route. You can configure the coordinates and select the transportation type according to your specific use case.

To utilize this call, you can use the “Get data from external API” feature and choose either the simple or full version of the call.

I hope this information proves helpful to you :pray:

Wishing you a wonderful day ahead! :blush:

1 Like

Just what I needed! Thanks a lot Dorel!