diff --git a/Sources/MapboxDirections/Directions.swift b/Sources/MapboxDirections/Directions.swift index e0eea9166..694324b93 100644 --- a/Sources/MapboxDirections/Directions.swift +++ b/Sources/MapboxDirections/Directions.swift @@ -392,8 +392,8 @@ open class Directions: NSObject { - parameter responseIdentifier: The `RouteResponse.identifier` value of the `RouteResponse` that contains the route to refresh. You can alternatively use the value of `Route.routeIdentifier`. - parameter routeIndex: The index of the route to refresh in the original `RouteResponse.routes` array. + - parameter startLegIndex: The index of the leg in the route at which to begin refreshing. The response will omit any leg before this index and refresh any leg from this index to the end of the route. If this argument is omitted, the entire route is refreshed. - parameter completionHandler: The closure (block) to call with the resulting skeleton route data. This closure is executed on the application’s main thread. - - parameter startLegIndex: The index of the leg in the route at which to begin refreshing. If this argument is omitted, the entire route is refreshed. - returns: The data task used to perform the HTTP request. If, while waiting for the completion handler to execute, you no longer want the resulting skeleton routes, cancel this task. */ @discardableResult open func refreshRoute(responseIdentifier: String, routeIndex: Int, fromLegAtIndex startLegIndex: Int = 0, completionHandler: @escaping RouteRefreshCompletionHandler) -> URLSessionDataTask? {