Follow us on GitHub

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

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

public enum DistanceMatrixStatus
extends Enum<DistanceMatrixStatus>

The top-level status about the request in general returned by the DistanceMatrixService upon completion of a distance matrix request.

See DistanceMatrixStatus API Doc


Enum Constant Summary
INVALID_REQUEST
          The provided request was invalid.
MAX_DIMENSIONS_EXCEEDED
          The request contains more than 25 origins, or more than 25 destinations.
MAX_ELEMENTS_EXCEEDED
          The product of origins and destinations exceeds the per-query limit.
OK
          The response contains a valid result.
OVER_QUERY_LIMIT
          Too many elements have been requested within the allowed time period.
REQUEST_DENIED
          The service denied use of the Distance Matrix service by your web page.
UNKNOWN_ERROR
          A Distance Matrix request could not be processed due to a server error.
 
Method Summary
static DistanceMatrixStatus fromValue(String type)
           
 String toString()
           
 String value()
           
static DistanceMatrixStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DistanceMatrixStatus[] 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 DistanceMatrixStatus INVALID_REQUEST
The provided request was invalid.


MAX_DIMENSIONS_EXCEEDED

public static final DistanceMatrixStatus MAX_DIMENSIONS_EXCEEDED
The request contains more than 25 origins, or more than 25 destinations.


MAX_ELEMENTS_EXCEEDED

public static final DistanceMatrixStatus MAX_ELEMENTS_EXCEEDED
The product of origins and destinations exceeds the per-query limit.


OK

public static final DistanceMatrixStatus OK
The response contains a valid result.


OVER_QUERY_LIMIT

public static final DistanceMatrixStatus OVER_QUERY_LIMIT
Too many elements have been requested within the allowed time period. The request should succeed if you try again after a reasonable amount of time.


REQUEST_DENIED

public static final DistanceMatrixStatus REQUEST_DENIED
The service denied use of the Distance Matrix service by your web page.


UNKNOWN_ERROR

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

Method Detail

values

public static DistanceMatrixStatus[] 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 (DistanceMatrixStatus c : DistanceMatrixStatus.values())
    System.out.println(c);

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

valueOf

public static DistanceMatrixStatus 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 DistanceMatrixStatus fromValue(String type)

toString

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


Follow us on GitHub

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