-
There is no network connection available to perform the network request.
Declaration
Swift
case network(URLError)
-
The server returned a response that isn’t correctly formatted.
Declaration
Swift
case invalidResponse(URLResponse?)
-
The server returned an empty response.
Declaration
Swift
case noData
-
The API did not find a route for the given coordinates. Check for impossible routes or incorrectly formatted coordinates.
Declaration
Swift
case noRoute
-
Unrecognized profile identifier.
Make sure the
MatrixOptions.profileIdentifier
option is set to one of the predefined values, such asMatrixProfileIdentifier.automobile
.Declaration
Swift
case profileNotFound
-
The API recieved input that it didn’t understand.
Make sure the number of approach elements matches the number of waypoints provided, and the number of waypoints does not exceed the maximum number per request.
Declaration
Swift
case invalidInput(message: String?)
-
Too many requests have been made with the same access token within a certain period of time.
Wait before retrying.
Declaration
Swift
case rateLimited(rateLimitInterval: TimeInterval?, rateLimit: UInt?, resetTime: Date?)
-
Unknown error case. Look at associated values for more details.
Declaration
Swift
case unknown(response: URLResponse?, underlying: Error?, code: String?, message: String?)