walkerke/mapboxapi

Is it possible to add an `mb_distance` function?

Rmadillo opened this issue · 3 comments

Hi,

I was wondering if it is possible to add an mb_distance function that would operate like the mb_isochrone function, only it would return distance instead of travel time? It looks like the Mapbox API does support this (https://docs.mapbox.com/api/navigation/isochrone/), but I am not sure how to adjust your code to make it work, especially since the API will only return time or distance, but not both at the same time.

Thanks for considering it!

Thanks for the heads up! This would be a great new feature. I'll implement it in mb_isochrone() but allow for distance intervals instead of time intervals. I'll let you know when it's ready.

This is now implemented and on CRAN!

Thank you so much!