v2.8.0
Packaging
- This library now requires a minimum deployment target of iOS 12.0 or above, macOS 10.14.0 or above, tvOS 12.0 or above, or watchOS 5.0 or above. Older operating system versions are no longer supported. (#736)
Other changes
- Added the
Waypoint.layer
property, which can ensure that the route begins on the correct road if it is above or below another road. (#745) - Added the
AttributeOptions.update(customOption:comparisonPolicy:)
method andAttributeOptions.customOptionsByRawValue
property for specifying attribute options that are still marked as beta in the Mapbox Directions API. (#748) - Fixed stale
Incident.shapeIndexRange
values even after calling theRouteRefreshResponse.refreshLegIncidents(from:legIndex:legShapeIndex:)
method. (#752) - Added the
RouteLeg.closures
property containing information about road closures based on live traffic conditions. This information requires addingAttributeOptions.closures
to theRouteOptions.attributeOptions
property and setting theDirectionsOptions.profileIdentifier
property toProfileIdentifier.automobileAvoidingTraffic
. (#755) - Added the
Route.refresh(from:refreshParameters:)
method as a single entry point for refreshing various parameters of theRoute
object. (#755)
Documentation is available online or within Xcode.