public enum DirectionsStatus extends java.lang.Enum<DirectionsStatus>
DirectionsService on the completion of a call to route().| Enum Constant and Description |
|---|
INVALID_REQUEST
The
DirectionsRequest provided was invalid. |
MAX_WAYPOINTS_EXCEEDED
Too many
DirectionsWaypoints were provided in the DirectionsRequest. |
NOT_FOUND
At least one of the origin, destination, or waypoints could not be geocoded.
|
OK
The response contains a valid
DirectionsResult |
OVER_QUERY_LIMIT
The webpage has gone over the requests limit in too short a period of time.
|
REQUEST_DENIED
The webpage is not allowed to use the directions service.
|
UNKNOWN_ERROR
A directions request could not be processed due to a server error.
|
ZERO_RESULTS
No route could be found between the origin and destination.
|
| Modifier and Type | Method and Description |
|---|---|
static DirectionsStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DirectionsStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DirectionsStatus OK
DirectionsResultpublic static final DirectionsStatus INVALID_REQUEST
DirectionsRequest provided was invalid.public static final DirectionsStatus MAX_WAYPOINTS_EXCEEDED
DirectionsWaypoints were provided in the DirectionsRequest. The total allowed waypoints is 8, plus the origin and destination. Maps API for Work customers are allowed 23 waypoints, plus the origin, and destination.public static final DirectionsStatus NOT_FOUND
public static final DirectionsStatus OVER_QUERY_LIMIT
public static final DirectionsStatus REQUEST_DENIED
public static final DirectionsStatus UNKNOWN_ERROR
public static final DirectionsStatus ZERO_RESULTS
public static DirectionsStatus[] values()
for (DirectionsStatus c : DirectionsStatus.values()) System.out.println(c);
public static DirectionsStatus valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null