mapbox / mapbox-directions-swift

Traffic-aware directions and map matching in Swift on iOS, macOS, tvOS, watchOS, and Linux
https://www.mapbox.com/navigation/
ISC License
183 stars 88 forks source link

Custom AttributeOptions #748

Closed Udumft closed 1 year ago

Udumft commented 2 years ago

Added AttributeOptions.customOptions and manipulation methods to allow custom options to be processed.

This is an approach to allow customization while avoiding breaking changes. The safer option would be to refactor AttributeOptions into a struct.

1ec5 commented 2 years ago

This is an approach to allow customization while avoiding breaking changes. The safer option would be to refactor AttributeOptions into a struct.

For reference, this is tracked in #718 as a future backwards-incompatible change.