geo.google.datamodel
Enum GeoAddressAccuracy
java.lang.Object
java.lang.Enum<GeoAddressAccuracy>
geo.google.datamodel.GeoAddressAccuracy
- All Implemented Interfaces:
- Serializable, Comparable<GeoAddressAccuracy>
public enum GeoAddressAccuracy
- extends Enum<GeoAddressAccuracy>
An attribute indicating how accurately we were able to geocode the given address.
- Author:
- jliang
- See Also:
http://www.google.com/apis/maps/documentation/reference.html#GGeoAddressAccuracy
UNKNOWN_LOCATION
public static final GeoAddressAccuracy UNKNOWN_LOCATION
COUNTRY_LEVEL
public static final GeoAddressAccuracy COUNTRY_LEVEL
REGION_LEVEL
public static final GeoAddressAccuracy REGION_LEVEL
SUB_REGION_LEVEL
public static final GeoAddressAccuracy SUB_REGION_LEVEL
TOWN_LEVEL
public static final GeoAddressAccuracy TOWN_LEVEL
POST_CODE_LEVEL
public static final GeoAddressAccuracy POST_CODE_LEVEL
STREET_LEVEL
public static final GeoAddressAccuracy STREET_LEVEL
INTERSECTION_LEVEL
public static final GeoAddressAccuracy INTERSECTION_LEVEL
ADDRESS_LEVEL
public static final GeoAddressAccuracy ADDRESS_LEVEL
values
public static GeoAddressAccuracy[] 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 (GeoAddressAccuracy c : GeoAddressAccuracy.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static GeoAddressAccuracy 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
getCode
public int getCode()
getName
public String getName()
getAccuracyByCode
public static GeoAddressAccuracy getAccuracyByCode(int code)
Copyright © 2008. All Rights Reserved.