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

Request: Display Speed Limits #529

Closed
Danny-James opened this issue Nov 22, 2017 · 4 comments
Closed

Request: Display Speed Limits #529

Danny-James opened this issue Nov 22, 2017 · 4 comments

Comments

@Danny-James
Copy link

Would it be possible to display the max speed limit of the road the user is currently navigating on?

See Example Below;
screenshot_211

@ericrwolfe
Copy link
Contributor

@Danny-James Thanks for the feedback. Our Directions API doesn't currently support this. We'll update this ticket if this changes in the future.

@Danny-James
Copy link
Author

@ericrwolfe to we have anything in the pipeline to include this? I think it will be a great feature.

@jlavasyou
Copy link

I would also like this information!

@1ec5
Copy link
Contributor

1ec5 commented Jul 11, 2018

There is some low-level support for speed limit data via the maxspeed annotation, which was implemented in mapbox/mapbox-java#772 and mapbox/mapbox-java#777. However, it’d be up to your application to display the speed limit in a custom UI. There’s also no guarantee about the comprehensiveness of speed limit data.

/**
* The posted speed limit, for the given annotation segment.
* Maxspeed is only available for the `mapbox/driving` and `mapbox/driving-traffic`
* profiles, other profiles will return `unknown`s only.
*
* @return posted speed limit, for the given annotation segment
* @since 0.13.0
*/
@Nullable
public abstract MaxSpeed maxspeed();

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

4 participants