org.wicketstuff.gmap.geocoder
Enum GeocoderStatus

java.lang.Object
  extended by java.lang.Enum<GeocoderStatus>
      extended by org.wicketstuff.gmap.geocoder.GeocoderStatus
All Implemented Interfaces:
Serializable, Comparable<GeocoderStatus>

public enum GeocoderStatus
extends Enum<GeocoderStatus>

Possible values of return status field. See https://developers.google.com/maps/documentation/geocoding/#StatusCodes.

Author:
Dieter Tremel

Enum Constant Summary
INVALID_REQUEST
          generally indicates that the query (address or latlng) is missing.
OK
          indicates that no errors occurred; the address was successfully parsed and at least one geocode was returned.
OVER_QUERY_LIMIT
          indicates that you are over your quota.
REQUEST_DENIED
          indicates that your request was denied, generally because of lack of a sensor parameter.
UNKNOWN_ERROR
          indicates that the request could not be processed due to a server error.
ZERO_RESULTS
          indicates that the geocode was successful but returned no results.
 
Method Summary
static GeocoderStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GeocoderStatus[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

OK

public static final GeocoderStatus OK
indicates that no errors occurred; the address was successfully parsed and at least one geocode was returned.


ZERO_RESULTS

public static final GeocoderStatus ZERO_RESULTS
indicates that the geocode was successful but returned no results. This may occur if the geocode was passed a non-existent address or a latlng in a remote location.


OVER_QUERY_LIMIT

public static final GeocoderStatus OVER_QUERY_LIMIT
indicates that you are over your quota.


REQUEST_DENIED

public static final GeocoderStatus REQUEST_DENIED
indicates that your request was denied, generally because of lack of a sensor parameter.


INVALID_REQUEST

public static final GeocoderStatus INVALID_REQUEST
generally indicates that the query (address or latlng) is missing.


UNKNOWN_ERROR

public static final GeocoderStatus UNKNOWN_ERROR
indicates that the request could not be processed due to a server error. The request may succeed if you try again.

Method Detail

values

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

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

valueOf

public static GeocoderStatus 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


Copyright © 2014. All Rights Reserved.