mapbox / mapbox-sdk-js

A JavaScript client to Mapbox services, supporting Node, browsers, and React Native
Other
718 stars 186 forks source link

Update allowed annotations for getDirections() method #435

Open niekvb opened 2 years ago

niekvb commented 2 years ago

According to the API specification the getDirections() request should allow the following, additional, annotations:

Doing so will currently throw the following exception in SDK version 0.13.3:

Uncaught (in promise) Error: Item at position annotations.0 must be "duration", "distance", "speed", or "congestion".