v2.0.0
Packaging
- To gain access to the Mapbox Directions and Map Matching APIs, set
MBXAccessToken
in your Info.plist.MGLMapboxAccessToken
is still supported but is now deprecated. (#522) - MapboxDirections now requires Turf v2.x. (#571, #608)
- Carthage v0.38 or above is now required for installing this SDK if you use Carthage. (#548)
- Xcode 12.0 or above is now required to build MapboxDirections from source. (#548)
- You can fully build this SDK on Macs with Apple Silicon. (#548)
- The
mapbox-directions-swift
command line tool can no longer be built using Carthage. It now requires swift-argument-parser v1.0.0 or above. (#606)
Other changes
- The
Incident.impact
property is now anIncident.Impact
value instead of a string. (#519) RouteOptions.alleyPriority
,RouteOptions.walkwayPriority
, andRouteOptions.speed
are now optional. Set them explicitly if you want to include them in the HTTP request. RenamedDirectionsOptions.default
toDirectionsOptions.medium
. (#557)- Removed the
DirectionsResult.routeIdentifier
property. Use theRouteResponse.identifier
property in conjunction with an index into theRouteResponse.routes
array instead. (#562) - Added the
Intersection.preferredApproachLanes
andIntersection.usableLaneIndication
properties that indicate preferred lane usage.VisualInstruction.Component.lane(indications:isUsable:)
has been renamed toVisualInstruction.Component.lane(indications:isUsable:preferredDirection:)
. (#529) - Comparing two
Intersection
s with==
now considers whether theIntersection.restStop
,Intersection.regionCode
, andIntersection.outletMapboxStreetsRoadClass
properties are equal. (#529) - Added the
Waypoint.allowsSnappingToClosedRoad
property to allow snapping the waypoint’s location to a closed part of a road. (#583) - Added
AttributeOptions.numericCongestionLevel
,RouteLeg.segmentNumericCongestionLevels
,RouteLeg.Attributes.segmentNumericCongestionLevels
andNumericCongestionLevel
to support receiving the numeric value for congestion level along each segment of aRouteLeg
. (#575) - Added a
RouteOptions.roadClassesToAllow
property that enables the resulting routes to use HOV-only roads or high-occupancy toll roads. (#598) - Added new optional parameters to the
Directions(credentials:urlSession:processingQueue:)
initializer that allow you to provide a customURLSession
and GCD processing queue. (#613) - Fixed an issue where
RouteStep.exitIndex
was always unset. (#567) - Fixed an issue where
RouteLeg.segmentRangesByStep
contained a range that was off by one for the arrival step of a leg. (#587)
Documentation is available online or within Xcode.