v0.27.0
- If a
RouteOptions
object has exceptionally many waypoints or if many of the waypoint have very long names,Directions.calculate(_:completionHandler:)
sends a POST request to the Mapbox Directions API instead of sending a GET request that returns an error. (#341) - When possible,
Directions.calculateRoutes(matching:completionHandler:)
now sends a GET request to the Mapbox Map Matching API instead of a POST request. (#341) - Fixed an issue where certain waypoint names would cause
Directions.calculateRoutes(matching:completionHandler:)
to return an error. (#341) - Added the
Directions.url(forCalculating:httpMethod:)
andDirections.urlRequest(forCalculating:)
methods for implementing custom GET- and POST-compatible request code. (#341) - Added the
Waypoint.separatesLegs
property, which you can set tofalse
to create a route that travels “via” the waypoint but doesn’t stop there. Deprecated theMatchOptions.waypointIndices
property in favor ofWaypoint.separatesLegs
, which also works withRouteOptions
. (#340) - Fixed unset properties in
Waypoint
objects that are included in a calculatedRoute
s orMatch
es. (#340) - Added
DirectionsResult.fetchStartDate
andDirectionsResult.requestEndDate
properties. (#335) - Added a
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. (#343)
Documentation is available online or within Xcode.