geo.google.datamodel
Enum GeoAddressAccuracy

java.lang.Object
  extended by java.lang.Enum<GeoAddressAccuracy>
      extended by 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

Enum Constant Summary
ADDRESS_LEVEL
           
COUNTRY_LEVEL
           
INTERSECTION_LEVEL
           
POST_CODE_LEVEL
           
REGION_LEVEL
           
STREET_LEVEL
           
SUB_REGION_LEVEL
           
TOWN_LEVEL
           
UNKNOWN_LOCATION
           
 
Method Summary
static GeoAddressAccuracy getAccuracyByCode(int code)
           
 int getCode()
           
 String getName()
           
static GeoAddressAccuracy valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GeoAddressAccuracy[] 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

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
Method Detail

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.