v2.7.0
v2.7.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 returnsnil
if given a Mapbox Map Matching API request URL, andMatchOptions(url:)
returnsnil
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 correspondingDirections.urlRequest(forRefreshing responseIdentifier:routeIndex:fromLegAtIndex:currentRouteShapeIndex:)
,RouteRefreshResponse.refreshLegAttributes(from:legIndex:legShapeIndex:)
, andRouteRefreshResponse.refreshLegIncidents(from:legIndex:legShapeIndex:)
methods. (#733)
Documentation is available online or within Xcode.