Skip to content

Releases: mapbox/mapbox-directions-swift

v0.21.0

09 May 22:59
Compare
Choose a tag to compare

Changes since v0.20.0:

  • Renamed VisualInstruction.degrees to VisualInstruction.finalHeading. #266
  • Removed support for MBAttributeOpenStreetMapNodeIdentifier. #272
  • A named Waypoint will now be exposed in VisualInstructionComponent. #273

Documentation is available online or within Xcode.

v0.20.0

12 Apr 16:21
Compare
Choose a tag to compare

Changes since v0.19.1:

  • 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 secondary VisualInstruction objects. #259

Documentation is available online or within Xcode.

v0.19.1

04 Apr 20:08
Compare
Choose a tag to compare

Changes since v0.19.0:

  • Fixed an issue that caused a warning when using Swift 4.1. #254, #255
  • Added types .exit and .exitCodes to MBVisualInstructionType. #252
  • Made an initializer on MBLane public. #253

Documentation is available online or within Xcode.

v0.19.0

21 Mar 21:08
Compare
Choose a tag to compare

Changes since v0.18.0:

tl:dr

This release includes the ability to make a Mapbox Map Matching request.

Breaking changes

  • CompletionHandler has been renamed to RouteCompletionHandler to give room for MatchCompletionHandler.

Map Matching

  • Adds new class Match. A Match object defines a single route that was created from a series of points that were matched against a road network.
  • Adds new class MatchOptions. A MatchOptions object is a structure that specifies the criteria for results returned by the Mapbox Map Matching API.
  • Adds Directions.calculate(matchOptions:completionHandler:) which returns a Match.
  • Adds Directions.calculateRoutes(matching:completionHandler:). This is useful for creating a Route from a map matching request.

Documentation is available online or within Xcode.

v0.18.0

12 Mar 20:23
35f01a2
Compare
Choose a tag to compare

Changes since v0.17.0:

  • Adds support for abbreviations to VisualInstructionComponents. #244
  • Adds new types to VisualInstructionComponentType. #243

Documentation is available online or within Xcode.

v0.17.0

16 Feb 19:41
a02ab80
Compare
Choose a tag to compare

Changes since v0.16.1:

  • Adds ManeuverType and ManeuverDirection to VisualInstructionComponents (#239)

Documentation is available online or within Xcode.

v0.16.1

13 Feb 20:53
fc3e74b
Compare
Choose a tag to compare

Changes since v0.16.0:

  • RouteStep.drivingSide is now safely unwrapped for cases where the value is missing from the response. (#233)
  • Added .tunnel as a valid RoadClass. (#237)
  • Added .speechLocale to Route for deciphering which Locale to use for speaking voice instructions. (#235)

Documentation is available online or within Xcode.

v0.16.0

17 Jan 23:14
5e71f99
Compare
Choose a tag to compare

Changes since v0.15.1:

  • The maneuverType, maneuverDirection, and transportType properties of RouteStep are now available in Objective-C code. The properties are no longer optional in Swift; check for ManeuverType.none ,ManeuverDirection.none, and TransportType.none instead of nil. (#227)

Documentation is available online or within Xcode.

v0.15.1

08 Dec 23:03
77b6629
Compare
Choose a tag to compare

Changes since v0.15.0:

  • API Response parser now handles API JSON response containing empty waypoint names correctly. (#222)

Documentation is available online or within Xcode.

v0.15.0

04 Dec 22:01
1f9ba26
Compare
Choose a tag to compare

Changes since v0.14.0:

  • Added property drivingSide to RouteStep 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.