mapbox-java icon indicating copy to clipboard operation
mapbox-java copied to clipboard

Bearing property has input range for angle, but not for degrees.

Open dudeuter opened this issue 3 years ago • 0 comments

The direction API accepts a list of tuples for the angle from true north, and degrees that we can deviate.

Directions API will accept 0-360 for the angle (including -0 interestingly enough) but will error outside of that range.

Directions API will accept 0-180 for the degrees and will error outside of that range.

In the inline documentation for Bearing we mention this 0-360 range of accepted values for angle but omit the 0-180 for degrees. We should update the 0-180 documentation so developers will see this in their IDE (and know not to pass degrees beyond 180).

dudeuter avatar Jun 13 '22 20:06 dudeuter