RouteResponseCode Enumeration

Bing
 

Contains response codes for a route calculation request.

Response CodeNameDescription
0successThe route was successfully calculated.
1unknownErrorAn unknown error has occurred.
2cannotFindNearbyRoadA nearby road cannot be found for one or more of the route waypoints.
3tooFarThe distance between two route waypoints, or the total length of the route exceeds the limit of the route mode. Modify the waypoint locations so that they are closer together.
4noSolutionA route cannot be calculated for the specified waypoints. For example, this code is returned when a route between “Seattle, WA” and “Honolulu, HI” is requested.
5dataSourceNotFoundThere is no route data for the specified waypoints.
7noAvailableTransitTripThere are no transit options available for the specified time.
8transitStopsTooCloseThe transit stops are so close that walking is always a better option.
9walkingBestAlternativeThe transit stops are so close that walking is a better option.
10outOfTransitBoundsThere is no transit data available for the route or for one or more of the specified waypoints, or the waypoints are in different transit areas that do not overlap.
11timeoutThe directions calculation request has timed out.
12waypointDisambiguationOne or more waypoints need to be disambiguated. This error does not occur if the autoDisplayDisambiguation directions render option is set to true.
13hasEmptyWaypointOne or more waypoints do not have an address or location specified.
14exceedMaxWaypointLimitThe maximum number of waypoints, which is 25, has been exceeded.
15atleastTwoWaypointRequiredAt least two waypoints are required to calculate a route.
16firstOrLastStoppointIsViaThe first or last waypoint is a via point, which is not allowed.
17searchServiceFailedThe search service failed to return results.
18invalidCredentialsThe credentials passed to the Directions module are invalid.
Show: