Package org.wicketstuff.gmap.geocoder
Enum GeocoderStatus
- java.lang.Object
-
- java.lang.Enum<GeocoderStatus>
-
- 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 ([email protected])
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INVALID_REQUEST
generally indicates that the query (address, components or latlng) is missing or an invalid result_type or location_type was given.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, possibly because the request includes a result_type or location_type parameter but does not include an API key or client ID.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
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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, possibly because the request includes a result_type or location_type parameter but does not include an API key or client ID.
-
INVALID_REQUEST
public static final GeocoderStatus INVALID_REQUEST
generally indicates that the query (address, components or latlng) is missing or an invalid result_type or location_type was given.
-
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 nameNullPointerException
- if the argument is null
-
-