public enum LocationType extends java.lang.Enum<LocationType> implements com.google.maps.internal.StringJoin.UrlValue
Enum Constant and Description |
---|
APPROXIMATE
APPROXIMATE restricts the results to those that are characterized as approximate. |
GEOMETRIC_CENTER
GEOMETRIC_CENTER restricts the results to geometric centers of a location such as a
polyline (for example, a street) or polygon (region). |
RANGE_INTERPOLATED
RANGE_INTERPOLATED restricts the results to those that reflect an approximation
(usually on a road) interpolated between two precise points (such as intersections). |
ROOFTOP
ROOFTOP restricts the results to addresses for which we have location information
accurate down to street address precision. |
Modifier and Type | Method and Description |
---|---|
LocationType |
lookup(java.lang.String locationType) |
static LocationType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LocationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LocationType ROOFTOP
ROOFTOP
restricts the results to addresses for which we have location information
accurate down to street address precision.public static final LocationType RANGE_INTERPOLATED
RANGE_INTERPOLATED
restricts the results to those that reflect an approximation
(usually on a road) interpolated between two precise points (such as intersections). An
interpolated range generally indicates that rooftop geocodes are unavailable for a street
address.public static final LocationType GEOMETRIC_CENTER
GEOMETRIC_CENTER
restricts the results to geometric centers of a location such as a
polyline (for example, a street) or polygon (region).public static final LocationType APPROXIMATE
APPROXIMATE
restricts the results to those that are characterized as approximate.public static LocationType[] values()
for (LocationType c : LocationType.values()) System.out.println(c);
public static LocationType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic LocationType lookup(java.lang.String locationType)