Follow us on GitHub

com.google.gwt.maps.client.services
Enum DirectionsStatus

java.lang.Object
  extended by java.lang.Enum<DirectionsStatus>
      extended by com.google.gwt.maps.client.services.DirectionsStatus
All Implemented Interfaces:
Serializable, Comparable<DirectionsStatus>

public enum DirectionsStatus
extends Enum<DirectionsStatus>

The status returned by the DirectionsService on the completion of a call to route().

See DirectionsStatus API Doc


Enum Constant Summary
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.
 
Method Summary
static DirectionsStatus fromValue(String type)
           
 String toString()
           
 String value()
           
static DirectionsStatus valueOf(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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INVALID_REQUEST

public static final DirectionsStatus INVALID_REQUEST
The DirectionsRequest provided was invalid.


MAX_WAYPOINTS_EXCEEDED

public static final DirectionsStatus MAX_WAYPOINTS_EXCEEDED
Too many DirectionsWaypoints were provided in the DirectionsRequest. The total allowed waypoints is 8, plus the origin and destination.


NOT_FOUND

public static final DirectionsStatus NOT_FOUND
At least one of the origin, destination, or waypoints could not be geocoded.


OK

public static final DirectionsStatus OK
The response contains a valid DirectionsResult.


OVER_QUERY_LIMIT

public static final DirectionsStatus OVER_QUERY_LIMIT
The webpage has gone over the requests limit in too short a period of time.


REQUEST_DENIED

public static final DirectionsStatus REQUEST_DENIED
The webpage is not allowed to use the directions service.


UNKNOWN_ERROR

public static final DirectionsStatus UNKNOWN_ERROR
A directions request could not be processed due to a server error. The request may succeed if you try again.


ZERO_RESULTS

public static final DirectionsStatus ZERO_RESULTS
No route could be found between the origin and destination.

Method Detail

values

public static DirectionsStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (DirectionsStatus c : DirectionsStatus.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DirectionsStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

value

public String value()

fromValue

public static DirectionsStatus fromValue(String type)

toString

public String toString()
Overrides:
toString in class Enum<DirectionsStatus>


Follow us on GitHub

Copyright © 2011-2012 Gone Vertical LLC. All Rights Reserved.