Skip to content

Releases: mapbox/mapbox-directions-swift

v2.1.0-alpha.1

29 Oct 21:29
Compare
Choose a tag to compare
v2.1.0-alpha.1 Pre-release
Pre-release

Changes since v2.0.0:

  • Added the Waypoint.snappedDistance property to get the straight-line distance from the waypoint to the location it was snapped to in the RouteResponse. (#616)
  • Added the RouteOptions.initialManeuverAvoidanceRadius property to avoid a sudden maneuver when calculating a route while the user is in motion. (#609)
  • Added the RoadClasses.unpaved option for avoiding unpaved roads. (#620)
  • Added the RoadClasses.cashOnlyToll property for avoiding toll roads that only accept cash payment. (#620)

Documentation is available online or within Xcode.

v2.0.0

20 Oct 21:17
f95be4f
Compare
Choose a tag to compare

Changes since v1.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 an Incident.Impact value instead of a string. (#519)
  • RouteOptions.alleyPriority, RouteOptions.walkwayPriority, and RouteOptions.speed are now optional. Set them explicitly if you want to include them in the HTTP request. Renamed DirectionsOptions.default to DirectionsOptions.medium. (#557)
  • Removed the DirectionsResult.routeIdentifier property. Use the RouteResponse.identifier property in conjunction with an index into the RouteResponse.routes array instead. (#562)
  • Added the Intersection.preferredApproachLanes and Intersection.usableLaneIndication properties that indicate preferred lane usage. VisualInstruction.Component.lane(indications:isUsable:) has been renamed to VisualInstruction.Component.lane(indications:isUsable:preferredDirection:). (#529)
  • Comparing two Intersections with == now considers whether the Intersection.restStop, Intersection.regionCode, and Intersection.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 and NumericCongestionLevel to support receiving the numeric value for congestion level along each segment of a RouteLeg. (#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 custom URLSession 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.

v2.0.0-rc.4

08 Oct 15:00
2643fb8
Compare
Choose a tag to compare
v2.0.0-rc.4 Pre-release
Pre-release

Changes since v2.0.0-rc.3:

  • MapboxDirections now requires Turf v2.x. (#571)
  • 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)

Documentation is available online or within Xcode.

v2.0.0-rc.3

30 Sep 07:43
6633152
Compare
Choose a tag to compare
v2.0.0-rc.3 Pre-release
Pre-release

Changes since v2.0.0-rc.2:

  • 🐞 Fixed an issue where coding keys for DirectionsOptions, RouteOptions, and MatchOptions don't match the query parameter names. (#593)

Documentation is available online or within Xcode.

v2.0.0-rc.2

23 Sep 15:31
a3861c8
Compare
Choose a tag to compare
v2.0.0-rc.2 Pre-release
Pre-release

Changes since v2.0.0-rc.1:

  • 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.

v2.0.0-rc.1

08 Sep 14:58
6e5b4be
Compare
Choose a tag to compare
v2.0.0-rc.1 Pre-release
Pre-release

Changes since v2.0.0-beta.9:

  • Added option to snap Waypoints to closed parts of the roads. (#583)
  • Added numeric congestion annotation data support (#575)
  • Fixed appending service SKU token if it doesn't match the Access token (#588, #591)

Documentation is available online or within Xcode.

v2.0.0-beta.9

02 Sep 12:56
v2.0.0-beta.9
fb3975a
Compare
Choose a tag to compare
v2.0.0-beta.9 Pre-release
Pre-release

Changes since v2.0.0-beta.8:

  • Fixed an issue where sku_token wasn’t appended to refresh route requests. (#579)

Documentation is available online or within Xcode.

v2.0.0-beta.8

12 Aug 11:03
2c0ddf3
Compare
Choose a tag to compare
v2.0.0-beta.8 Pre-release
Pre-release

Changes since v2.0.0-beta.7:

  • This library requires Turf v2.0.0-rc.1. (#571)

Documentation is available online or within Xcode.

v2.0.0-beta.7

22 Jul 13:32
f55782c
Compare
Choose a tag to compare
v2.0.0-beta.7 Pre-release
Pre-release

Changes since v2.0.0-beta.6:

  • Removed the DirectionsResult.routeIdentifier property. Use the RouteResponse.identifier property in conjunction with an index into the RouteResponse.routes array instead. (#562)
  • Fixed a bug where leg source and destination are mismatched when route contains trackpoint or silent waypoint. (#560)

Documentation is available online or within Xcode.

v2.0.0-beta.6

08 Jul 17:40
Compare
Choose a tag to compare
v2.0.0-beta.6 Pre-release
Pre-release

Changes since v2.0.0-beta.5:

  • RouteOptions.alleyPriority, RouteOptions.walkwayPriority, and RouteOptions.speed are now optional. Set them explicitly if you want to include them in the HTTP request. Renamed DirectionsOptions.default to DirectionsOptions.medium. (#557)

Documentation is available online or within Xcode.