Skip to content

Releases: mapbox/mapbox-directions-swift

v1.2.0-alpha.2

25 Nov 13:00
4184df3
Compare
Choose a tag to compare
v1.2.0-alpha.2 Pre-release
Pre-release

Changes since v1.2.0-alpha.1:

  • The CongestionLevel enumeration now conforms to the CaseIterable protocol. (#500)
  • Refined encoding/decoding logic for AdministrativeRegions by Leg and Intersection (#485). Added few properties for convenience access:
    • Intersection.regionCode - A 2-letter region code to identify corresponding country that this intersection lies in.
    • RouteLeg.regionCode(atStepIndex:, intersectionIndex:) - Returns the ISO 3166-1 alpha-2 region code for the administrative region through which the given intersection passes.
  • Added RouteStep.segmentIndicesByIntersection for navigating Intersections segments along the step; (#490)

v1.2.0-alpha.1

19 Nov 19:57
3795cc3
Compare
Choose a tag to compare
v1.2.0-alpha.1 Pre-release
Pre-release

Changes since v1.1.0:

  • Added support for building and running on any Linux distribution supported by Swift. (#488)
  • Added the MapboxDirectionsCLI command line tool that round-trips Mapbox Directions API responses between JSON format and Swift model objects. (#469)

v1.1.0

12 Nov 18:02
Compare
Choose a tag to compare

Changes since v1.0.0:

  • Added the DirectionsResult.typicalTravelTime, RouteLeg.typicalTravelTime and RouteStep.typicalTravelTime properties that indicate the typical travel time, as opposed to the current expected travel time. (#462)
  • Fixed an error that occurred when setting the Waypoint.separatesLegs property to true and setting the Waypoint.targetCoordinate property. (#480)
  • Directions.fetchAvailableOfflineVersions(completionHandler:) now calls its completion handler on the main queue consistently. (#475)
  • Upgraded to Polyline v5.0.0. (#487)

Documentation is available online or within Xcode.

v1.1.0-rc.1

10 Nov 00:02
Compare
Choose a tag to compare
v1.1.0-rc.1 Pre-release
Pre-release

Changes since v1.0.0:

  • Added the DirectionsResult.typicalTravelTime, RouteLeg.typicalTravelTime and RouteStep.typicalTravelTime properties that indicate the typical travel time, as opposed to the current expected travel time. (#462)
  • Fixed an error that occurred when setting the Waypoint.separatesLegs property to true and setting the Waypoint.targetCoordinate property. (#480)
  • Directions.fetchAvailableOfflineVersions(completionHandler:) now calls its completion handler on the main queue consistently. (#475)
  • Upgraded to Polyline v5.0.0. (#487)

v1.0.0

24 Sep 22:39
Compare
Choose a tag to compare

Changes since v0.33.2:

  • Added the Directions.refreshRoute(responseIdentifier:routeIndex:fromLegAtIndex:completionHandler:) method for refreshing attributes along the legs of a route and the Route.refreshLegAttributes(from:) method for merging the refreshed attributes into an existing route. To enable route refreshing for the routes in a particular route response, set RouteOptions.refreshingEnabled to true before passing the RouteOptions object into Directions.calculate(_:completionHandler:). (#420)
  • Fixed a crash that could occur if the Mapbox Directions API includes unrecognized RoadClasses values in its response. (#450)
  • Fixed malformed RouteStep.shape values that could occur when RouteStep.maneuverType is ManeuverType.arrive, DirectionsOptions.shapeFormat is RouteShapeFormat.polyline6, and the Mapbox Directions API returns certain encoded Polyline strings. (#456)
  • Restored the DirectionsOptions.urlQueryItems property so that subclasses of RouteOptions and MatchOptions can add any additional URL query parameters that are supported by the Mapbox Directions and Map Matching APIs. (#461)

Documentation is available online or within Xcode.

v1.0.0-rc.2

22 Sep 00:36
f4a6dd1
Compare
Choose a tag to compare
v1.0.0-rc.2 Pre-release
Pre-release

Changes since v1.0.0-rc.1:

  • Fixed malformed RouteStep.shape values that could occur when RouteStep.maneuverType is ManeuverType.arrive, DirectionsOptions.shapeFormat is RouteShapeFormat.polyline6, and the Mapbox Directions API returns certain encoded Polyline strings. (#456)

Documentation is available online or within Xcode.

v1.0.0-rc.1

03 Sep 23:18
Compare
Choose a tag to compare
v1.0.0-rc.1 Pre-release
Pre-release

Changes since v0.33.2:

  • Added the Directions.refreshRoute(responseIdentifier:routeIndex:fromLegAtIndex:completionHandler:) method for refreshing attributes along the legs of a route and the Route.refreshLegAttributes(from:) method for merging the refreshed attributes into an existing route. To enable route refreshing for the routes in a particular route response, set RouteOptions.refreshingEnabled to true before passing the RouteOptions object into Directions.calculate(_:completionHandler:). (#420)
  • Fixed a crash that could occur if the Mapbox Directions API includes unrecognized RoadClasses values in its response. (#450)

Documentation is available online or within Xcode.

v0.33.2

01 Sep 14:45
89dc4f4
Compare
Choose a tag to compare

Changes since v0.33.1:

  • Fixed an issue where waypoints in a RouteResponse did not persist the Waypoint.targetCoordinate, Waypoint.heading, Waypoint.headingAccuracy, and Waypoint.allowsArrivingOnOppositeSide properties from the initial RouteOptions object. (#446)

Documentation is available online or within Xcode.

v0.33.1

05 Aug 21:21
Compare
Choose a tag to compare

Changes since v0.33.0:

  • Fixed an issue where RouteResponse(matching:options:credentials:) and Directions.calculateRoutes(matching:completionHandler:) resulted in misshappen Route.shapes and RouteStep.shapes in the Atlantic Ocean if MatchOptions.shapeFormat was set to RouteShapeFormat.polyline6. (#437)

Documentation is available online or within Xcode.

v0.31.1

31 Jul 22:04
Compare
Choose a tag to compare

Changes since v0.31.0:

  • Fixed an issue where RouteResponse(matching:options:credentials:) and Directions.calculateRoutes(matching:completionHandler:) resulted in misshappen Route.shapes and RouteStep.shapes in the Atlantic Ocean if MatchOptions.shapeFormat was set to RouteShapeFormat.polyline6. (#437)

Documentation is available online or within Xcode.