Releases: mapbox/mapbox-directions-swift
Releases · mapbox/mapbox-directions-swift
v1.2.0-alpha.2
Changes since v1.2.0-alpha.1:
- The
CongestionLevel
enumeration now conforms to theCaseIterable
protocol. (#500) - Refined encoding/decoding logic for
AdministrativeRegions
byLeg
andIntersection
(#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 navigatingIntersection
s segments along the step; (#490)
v1.2.0-alpha.1
v1.1.0
- Added the
DirectionsResult.typicalTravelTime
,RouteLeg.typicalTravelTime
andRouteStep.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 totrue
and setting theWaypoint.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
- Added the
DirectionsResult.typicalTravelTime
,RouteLeg.typicalTravelTime
andRouteStep.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
totrue
and setting theWaypoint.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
- Added the
Directions.refreshRoute(responseIdentifier:routeIndex:fromLegAtIndex:completionHandler:)
method for refreshing attributes along the legs of a route and theRoute.refreshLegAttributes(from:)
method for merging the refreshed attributes into an existing route. To enable route refreshing for the routes in a particular route response, setRouteOptions.refreshingEnabled
totrue
before passing theRouteOptions
object intoDirections.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 whenRouteStep.maneuverType
isManeuverType.arrive
,DirectionsOptions.shapeFormat
isRouteShapeFormat.polyline6
, and the Mapbox Directions API returns certain encoded Polyline strings. (#456) - Restored the
DirectionsOptions.urlQueryItems
property so that subclasses ofRouteOptions
andMatchOptions
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
Changes since v1.0.0-rc.1:
- Fixed malformed
RouteStep.shape
values that could occur whenRouteStep.maneuverType
isManeuverType.arrive
,DirectionsOptions.shapeFormat
isRouteShapeFormat.polyline6
, and the Mapbox Directions API returns certain encoded Polyline strings. (#456)
Documentation is available online or within Xcode.
v1.0.0-rc.1
- Added the
Directions.refreshRoute(responseIdentifier:routeIndex:fromLegAtIndex:completionHandler:)
method for refreshing attributes along the legs of a route and theRoute.refreshLegAttributes(from:)
method for merging the refreshed attributes into an existing route. To enable route refreshing for the routes in a particular route response, setRouteOptions.refreshingEnabled
totrue
before passing theRouteOptions
object intoDirections.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
- Fixed an issue where waypoints in a
RouteResponse
did not persist theWaypoint.targetCoordinate
,Waypoint.heading
,Waypoint.headingAccuracy
, andWaypoint.allowsArrivingOnOppositeSide
properties from the initialRouteOptions
object. (#446)
Documentation is available online or within Xcode.
v0.33.1
- Fixed an issue where
RouteResponse(matching:options:credentials:)
andDirections.calculateRoutes(matching:completionHandler:)
resulted in misshappenRoute.shape
s andRouteStep.shape
s in the Atlantic Ocean ifMatchOptions.shapeFormat
was set toRouteShapeFormat.polyline6
. (#437)
Documentation is available online or within Xcode.
v0.31.1
- Fixed an issue where
RouteResponse(matching:options:credentials:)
andDirections.calculateRoutes(matching:completionHandler:)
resulted in misshappenRoute.shape
s andRouteStep.shape
s in the Atlantic Ocean ifMatchOptions.shapeFormat
was set toRouteShapeFormat.polyline6
. (#437)
Documentation is available online or within Xcode.