Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get duration, distance and weight-name to calculate further #290

Open
Lenn1K opened this issue Sep 12, 2022 · 0 comments
Open

Get duration, distance and weight-name to calculate further #290

Lenn1K opened this issue Sep 12, 2022 · 0 comments

Comments

@Lenn1K
Copy link

Lenn1K commented Sep 12, 2022

Hey folks,

Absolute beginner with APIs in general and more so with Mapbox here.
I'm a student develoving a web-app for school and i'm using Mapbox GL JS with the directions plugin to calculate a route.
I now would love to get the values of "weight-name", "distance" and "duration" to make some calculations in my app.
How can i get these? Is there for example a function that returns the response JSON back to me?
Any nudge in the right direction is much appreciated, thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant