Releases: mapbox/mapbox-directions-swift
Releases · mapbox/mapbox-directions-swift
v0.21.0
v0.20.0
-
Banner instructions object now includes a
degrees
field, corresponding to the location at which the user should exit a roundabout. #259 -
Also introduces a
VisualInstructionBanner
object which now contains the primary and secondaryVisualInstruction
objects. #259
Documentation is available online or within Xcode.
v0.19.1
v0.19.0
tl:dr
This release includes the ability to make a Mapbox Map Matching request.
Breaking changes
CompletionHandler
has been renamed toRouteCompletionHandler
to give room forMatchCompletionHandler
.
Map Matching
- Adds new class
Match
. AMatch
object defines a single route that was created from a series of points that were matched against a road network. - Adds new class
MatchOptions
. AMatchOptions
object is a structure that specifies the criteria for results returned by the Mapbox Map Matching API. - Adds
Directions.calculate(matchOptions:completionHandler:)
which returns aMatch
. - Adds
Directions.calculateRoutes(matching:completionHandler:)
. This is useful for creating aRoute
from a map matching request.
Documentation is available online or within Xcode.
v0.18.0
v0.17.0
v0.16.1
RouteStep.drivingSide
is now safely unwrapped for cases where the value is missing from the response. (#233)- Added
.tunnel
as a validRoadClass
. (#237) - Added
.speechLocale
toRoute
for deciphering whichLocale
to use for speaking voice instructions. (#235)
Documentation is available online or within Xcode.
v0.16.0
- The
maneuverType
,maneuverDirection
, andtransportType
properties ofRouteStep
are now available in Objective-C code. The properties are no longer optional in Swift; check forManeuverType.none
,ManeuverDirection.none
, andTransportType.none
instead ofnil
. (#227)
Documentation is available online or within Xcode.
v0.15.1
v0.15.0
- Added property
drivingSide
toRouteStep
that indicates which side of the road cars and traffic flow. (#219) - Fixed a bug where named
Waypoints
were having their names stripped from the response. (#218) - Moved the class
SpokenInstruction
from private to open for easier testability. (#216)
Documentation is available online or within Xcode.