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

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

public enum GeocoderLocationType
extends Enum<GeocoderLocationType>

Describes the type of location returned from a geocode.

See GeocoderLocationType API Doc


Enum Constant Summary
APPROXIMATE
          The returned result is approximate.
GEOMETRIC_CENTER
          The returned result is the geometric center of a result such a line (e.g.
RANGE_INTERPOLATED
          The returned result reflects an approximation (usually on a road) interpolated between two precise points (such as intersections).
ROOFTOP
          The returned result reflects a precise geocode.
 
Method Summary
static GeocoderLocationType fromValue(String type)
           
 String toString()
           
 String value()
           
static GeocoderLocationType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GeocoderLocationType[] 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

APPROXIMATE

public static final GeocoderLocationType APPROXIMATE
The returned result is approximate.


GEOMETRIC_CENTER

public static final GeocoderLocationType GEOMETRIC_CENTER
The returned result is the geometric center of a result such a line (e.g. street) or polygon (region).


RANGE_INTERPOLATED

public static final GeocoderLocationType RANGE_INTERPOLATED
The returned result reflects an approximation (usually on a road) interpolated between two precise points (such as intersections). Interpolated results are generally returned when rooftop geocodes are unavilable for a street address.


ROOFTOP

public static final GeocoderLocationType ROOFTOP
The returned result reflects a precise geocode.

Method Detail

values

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

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

valueOf

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

toString

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


Copyright © 2011-2013 GWT Maps API V3. All Rights Reserved.