Follow us on GitHub

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

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

public enum DistanceMatrixElementStatus
extends Enum<DistanceMatrixElementStatus>

The element-level status about a particular origin-destination pairing returned by the DistanceMatrixService upon completion of a distance matrix request.

See DistanceMatrixElementStatus API Doc


Enum Constant Summary
NOT_FOUND
          The origin and/or destination of this pairing could not be geocoded.
OK
          The response contains a valid result.
ZERO_RESULTS
          No route could be found between the origin and destination.
 
Method Summary
static DistanceMatrixElementStatus fromValue(String type)
           
 String toString()
           
 String value()
           
static DistanceMatrixElementStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DistanceMatrixElementStatus[] 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

NOT_FOUND

public static final DistanceMatrixElementStatus NOT_FOUND
The origin and/or destination of this pairing could not be geocoded.


OK

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


ZERO_RESULTS

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

Method Detail

values

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

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

valueOf

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

toString

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


Follow us on GitHub

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