DirectionsError
public enum DirectionsError : LocalizedError
extension DirectionsError: Equatable
An error that occurs when calculating directions.
-
There is no network connection available to perform the network request.
Declaration
Swift
case network(URLError)
-
The server returned an empty response.
Declaration
Swift
case noData
-
The API recieved input that it didn’t understand.
Declaration
Swift
case invalidInput(message: String?)
-
The server returned a response that isn’t correctly formatted.
Declaration
Swift
case invalidResponse(URLResponse?)
-
No route could be found between the specified locations.
Make sure it is possible to travel between the locations with the mode of transportation implied by the profileIdentifier option. For example, it is impossible to travel by car from one continent to another without either a land bridge or a ferry connection.
Declaration
Swift
case unableToRoute
-
The specified coordinates could not be matched to the road network.
Try again making sure that your tracepoints lie in close proximity to a road or path.
Declaration
Swift
case noMatches
-
The request specifies too many coordinates.
Try again with fewer coordinates.
Declaration
Swift
case tooManyCoordinates
-
A specified location could not be associated with a roadway or pathway.
Make sure the locations are close enough to a roadway or pathway. Try setting the
Waypoint.coordinateAccuracy
property of all the waypoints tonil
.Declaration
Swift
case unableToLocate
-
Unrecognized profile identifier.
Make sure the
DirectionsOptions.profileIdentifier
option is set to one of the predefined values, such asProfileIdentifier.automobile
.Declaration
Swift
case profileNotFound
-
The request is too large.
Try specifying fewer waypoints or giving the waypoints shorter names.
Declaration
Swift
case requestTooLarge
-
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?)
-
Declaration
Swift
public var failureReason: String? { get }
-
Declaration
Swift
public var recoverySuggestion: String? { get }
-
Declaration
Swift
public static func == (lhs: DirectionsError, rhs: DirectionsError) -> Bool