Skip to content

Releases: mapbox/mapbox-directions-swift

v2.8.0-beta.3

28 Oct 20:59
Compare
Choose a tag to compare
v2.8.0-beta.3 Pre-release
Pre-release

Changes since v2.8.0-beta.2:

  • Added the RouteLeg.closures property containing information about road closures based on live traffic conditions. This information requires adding AttributeOptions.closures to the RouteOptions.attributeOptions property and setting the DirectionsOptions.profileIdentifier property to ProfileIdentifier.automobileAvoidingTraffic. (#755)
  • Added the Route.refresh(from:refreshParameters:) method as a single entry point for refreshing various parameters of the Route object. (#755)

Documentation is available online or within Xcode.

v2.8.0-beta.2

28 Oct 19:38
171f910
Compare
Choose a tag to compare
v2.8.0-beta.2 Pre-release
Pre-release

No public changes since v2.8.0-beta.1.

Documentation is available online or within Xcode.

v2.8.0-beta.1

14 Oct 16:04
d1e093d
Compare
Choose a tag to compare
v2.8.0-beta.1 Pre-release
Pre-release

Changes since v2.8.0-alpha.2:

  • Expanded AttributeOptions to allow user options with custom values. See AttributeOptions.customOptionsByRawValue for reference. (#748)
  • Fixed incorrect shape indicies in RouteLeg.incidents after route refresh. (#752)

Documentation is available online or within Xcode.

v2.8.0-alpha.2

30 Sep 14:56
d1bce29
Compare
Choose a tag to compare
v2.8.0-alpha.2 Pre-release
Pre-release

Changes since v2.8.0-alpha.1:

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

Documentation is available online or within Xcode.

v2.7.0

30 Sep 05:32
2bbd4e3
Compare
Choose a tag to compare

v2.7.0

Changes since v2.6.0:

Packaging

  • Xcode 13.0 or above and Swift 5.5 or above are now required to build MapboxDirections from source. (#725, #727)

Command line tool

  • Removed the --config option. Instead, pass in either the path to a JSON configuration file or the full URL to a Mapbox Directions API or Mapbox Map Matching API request. (#726)
  • When the MAPBOX_ACCESS_TOKEN environment variable is unset, the tool exits with an error code instead of crashing. (#728)
  • The tool now connects to the API endpoint in the MAPBOX_HOST environment variable, if specified. (#728)

Other changes

  • Added Waypoint.allowsSnappingToStaticallyClosedRoad property to allow snapping the waypoint’s location to a statically (long-term) closed part of a road. (#721)
  • RouteOptions(url:) now returns nil if given a Mapbox Map Matching API request URL, and MatchOptions(url:) returns nil if given a Mapbox Directions API request URL. (#728)
  • Added the Directions.refreshRoute(responseIdentifier:routeIndex:fromLegAtIndex:currentRouteShapeIndex:completionHandler:) method, which takes the index into the route geometry at which to begin refreshing, as well as corresponding Directions.urlRequest(forRefreshing responseIdentifier:routeIndex:fromLegAtIndex:currentRouteShapeIndex:), RouteRefreshResponse.refreshLegAttributes(from:legIndex:legShapeIndex:), and RouteRefreshResponse.refreshLegIncidents(from:legIndex:legShapeIndex:) methods. (#733)

Documentation is available online or within Xcode.

v2.8.0-alpha.1

22 Sep 08:53
38be094
Compare
Choose a tag to compare
v2.8.0-alpha.1 Pre-release
Pre-release

Changes since v2.7.0-rc.2:

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)

Documentation is available online or within Xcode.

v2.7.0-rc.2

21 Sep 12:15
268d974
Compare
Choose a tag to compare
v2.7.0-rc.2 Pre-release
Pre-release

Changes since v2.7.0-rc.1:

  • Added the Directions.refreshRoute(responseIdentifier:routeIndex:fromLegAtIndex:currentRouteShapeIndex:completionHandler:) method, which takes the index into the route geometry at which to begin refreshing, as well as corresponding Directions.urlRequest(forRefreshing responseIdentifier:routeIndex:fromLegAtIndex:currentRouteShapeIndex:), RouteRefreshResponse.refreshLegAttributes(from:legIndex:legShapeIndex:), and RouteRefreshResponse.refreshLegIncidents(from:legIndex:legShapeIndex:) methods. (#733)

Documentation is available online or within Xcode.

v2.7.0-rc.1

12 Sep 20:42
Compare
Choose a tag to compare
v2.7.0-rc.1 Pre-release
Pre-release

Changes since v2.7.0-beta.1:

Packaging

  • Xcode 13.0 or above and Swift 5.5 or above are now required to build MapboxDirections from source. (#725, #727)

Command line tool

  • Removed the --config option. Instead, pass in either the path to a JSON configuration file or the full URL to a Mapbox Directions API or Mapbox Map Matching API request. (#726)
  • When the MAPBOX_ACCESS_TOKEN environment variable is unset, the tool exits with an error code instead of crashing. (#728)
  • The tool now connects to the API endpoint in the MAPBOX_HOST environment variable, if specified. (#728)

Other changes

  • RouteOptions(url:) now returns nil if given a Mapbox Map Matching API request URL, and MatchOptions(url:) returns nil if given a Mapbox Directions API request URL. (#728)

Documentation is available online or within Xcode.

v2.7.0-beta.1

18 Aug 22:16
ae43bd7
Compare
Choose a tag to compare
v2.7.0-beta.1 Pre-release
Pre-release

Changes since v2.6.0:

  • Added Waypoint.allowsSnappingToStaticallyClosedRoad property to allow snapping the waypoint’s location to a statically (long-term) closed part of a road. (#721)

Documentation is available online or within Xcode.

v2.6.0

08 Jul 01:01
ad9ae36
Compare
Choose a tag to compare

v2.6.0

Changes since v2.5.0:

  • MapboxDirections now requires Turf v2.4. (#703)
  • Added the RouteOptions.maximumWeight property to compute routes that excludes roads with a lower weight limit. (#694)
  • Added Route.refreshLegIncidents(from:) method to allow refreshing RouteLeg.incidents during a route refresh. (#704)
  • Added the Intersection.railroadCrossing, Intersection.trafficSignal, Intersection.stopSign and Intersection.yieldSign properties to indicate the kind of traffic control devices at an intersection along the route. (#706)

Documentation is available online or within Xcode.