walkerke / mapboxapi

R interface to Mapbox web services
https://walker-data.com/mapboxapi/
Other
110 stars 8 forks source link

Add the depart_at optional parameter #35

Open arielfuentes opened 1 year ago

arielfuentes commented 1 year ago

It would be very useful to filter the request for the matrix API by a departure time, like it is showed in the documentation.

https://docs.mapbox.com/api/navigation/matrix/

walkerke commented 1 year ago

Agreed! Though I think the feature is in private beta: https://www.mapbox.com/contact/matrix-api-depart-at. Do you have access / have you tried it out?

arielfuentes commented 1 year ago

I haven't signed up for this feature but I understand this is a public beta. IMG_20221220_181657

walkerke commented 1 year ago

I've implemented this in the matrix-depart-at branch but it doesn't work yet - I think the Mapbox team has to activate it in your account for it to work. I've requested activation and I'll try it out if they approve my request.

swalkerCDD commented 6 months ago

Hi - I was just trying out mb_isochrone and I am getting 403 - Forbidden errors if I include the depart_at parameter. When I try it in MapBox's own playground it works, but in R using mb_isochrone() or just using the same URL from the playground and generating a request, I get the error. Doesn't look like it's in beta anymore. Do you still need to request activation?

walkerke commented 6 months ago

Yes, I think you might need to request it still.