RouteRefreshResponse
public struct RouteRefreshResponse : ForeignMemberContainer
extension RouteRefreshResponse: Codable
A Directions Refresh API response.
-
Declaration
Swift
public var foreignMembers: JSONObject -
The raw HTTP response from the Directions Refresh API.
Declaration
Swift
public let httpResponse: HTTPURLResponse? -
The response identifier used to request the refreshed route.
Declaration
Swift
public let identifier: String -
The route index used to request the refreshed route.
Declaration
Swift
public var routeIndex: Int -
A skeleton route that contains only the time-sensitive information that has been updated.
Use the
Route.refreshLegAttributes(from:),Route.refreshLegAttributes(from:legIndex:legShapeIndex:),Route.refreshLegIncidents(from:),Route.refreshLegIncidents(from:legIndex:legShapeIndex:),Route.refreshLegClosures(from:legIndex:legShapeIndex:)orRoute.refresh(from:refreshParameters:)methods to merge this object with the original route to continue using the original route with updated information.Declaration
Swift
public var route: RefreshedRoute -
The credentials used to make the request.
Declaration
Swift
public let credentials: Credentials -
The time when this
RouteRefreshResponseobject was created, which is immediately upon recieving the raw URL response.If you manually start fetching a task returned by
Directions.urlRequest(forRefreshing:routeIndex:currentLegIndex:), this property is set tonil; use theURLSessionTaskTransactionMetrics.responseEndDateproperty instead. This property may also be set tonilif you create this result from a JSON object or encoded object.This property does not persist after encoding and decoding.
Declaration
Swift
public var created: Date -
Declaration
Swift
public init(from decoder: Decoder) throws -
Declaration
Swift
public func encode(to encoder: Encoder) throws
Install in Dash
RouteRefreshResponse Structure Reference