public enum AddressType extends java.lang.Enum<AddressType> implements com.google.maps.internal.StringJoin.UrlValue
Enum Constant and Description |
---|
ADMINISTRATIVE_AREA_LEVEL_1
ADMINISTRATIVE_AREA_LEVEL_1 indicates a first-order civil entity below the country
level. |
ADMINISTRATIVE_AREA_LEVEL_2
ADMINISTRATIVE_AREA_LEVEL_2 indicates a second-order civil entity below the country
level. |
ADMINISTRATIVE_AREA_LEVEL_3
ADMINISTRATIVE_AREA_LEVEL_3 indicates a third-order civil entity below the country
level. |
ADMINISTRATIVE_AREA_LEVEL_4
ADMINISTRATIVE_AREA_LEVEL_4 indicates a fourth-order civil entity below the country
level. |
ADMINISTRATIVE_AREA_LEVEL_5
ADMINISTRATIVE_AREA_LEVEL_5 indicates a fifth-order civil entity below the country
level. |
AIRPORT
AIRPORT indicates an airport. |
BUS_STATION
BUS_STATION indicates the location of a bus stop. |
COLLOQUIAL_AREA
COLLOQUIAL_AREA indicates a commonly-used alternative name for the entity. |
COUNTRY
COUNTRY indicates the national political entity, and is typically the highest order
type returned by the Geocoder. |
ESTABLISHMENT
ESTABLISHMENT typically indicates a place that has not yet been categorized. |
INTERSECTION
INTERSECTION indicates a major intersection, usually of two major roads. |
LOCALITY
LOCALITY indicates an incorporated city or town political entity. |
NATURAL_FEATURE
NATURAL_FEATURE indicates a prominent natural feature. |
NEIGHBORHOOD
NEIGHBORHOOD indicates a named neighborhood. |
PARK
PARK indicates a named park. |
POINT_OF_INTEREST
POINT_OF_INTEREST indicates a named point of interest. |
POLITICAL
POLITICAL indicates a political entity. |
POSTAL_CODE
POSTAL_CODE indicates a postal code as used to address postal mail within the
country. |
PREMISE
PREMISE indicates a named location, usually a building or collection of buildings
with a common name. |
ROUTE
ROUTE indicates a named route (such as "US 101"). |
STREET_ADDRESS
STREET_ADDRESS indicates a precise street address. |
SUBLOCALITY
SUBLOCALITY indicates a first-order civil entity below a locality. |
SUBLOCALITY_LEVEL_1 |
SUBLOCALITY_LEVEL_2 |
SUBLOCALITY_LEVEL_3 |
SUBLOCALITY_LEVEL_4 |
SUBLOCALITY_LEVEL_5 |
SUBPREMISE
SUBPREMISE indicates a first-order entity below a named location, usually a singular
building within a collection of buildings with a common name |
TRAIN_STATION
TRAIN_STATION indicates the location of a train station. |
TRANSIT_STATION
TRANSIT_STATION indicates the location of a transit station. |
Modifier and Type | Method and Description |
---|---|
static AddressType |
lookup(java.lang.String addressType) |
java.lang.String |
toString() |
static AddressType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AddressType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AddressType STREET_ADDRESS
STREET_ADDRESS
indicates a precise street address.public static final AddressType ROUTE
ROUTE
indicates a named route (such as "US 101").public static final AddressType INTERSECTION
INTERSECTION
indicates a major intersection, usually of two major roads.public static final AddressType POLITICAL
POLITICAL
indicates a political entity. Usually, this type indicates a polygon of
some civil administration.public static final AddressType COUNTRY
COUNTRY
indicates the national political entity, and is typically the highest order
type returned by the Geocoder.public static final AddressType ADMINISTRATIVE_AREA_LEVEL_1
ADMINISTRATIVE_AREA_LEVEL_1
indicates a first-order civil entity below the country
level. Within the United States, these administrative levels are states. Not all nations
exhibit these administrative levels.public static final AddressType ADMINISTRATIVE_AREA_LEVEL_2
ADMINISTRATIVE_AREA_LEVEL_2
indicates a second-order civil entity below the country
level. Within the United States, these administrative levels are counties. Not all nations
exhibit these administrative levels.public static final AddressType ADMINISTRATIVE_AREA_LEVEL_3
ADMINISTRATIVE_AREA_LEVEL_3
indicates a third-order civil entity below the country
level. This type indicates a minor civil division. Not all nations exhibit these
administrative levels.public static final AddressType ADMINISTRATIVE_AREA_LEVEL_4
ADMINISTRATIVE_AREA_LEVEL_4
indicates a fourth-order civil entity below the country
level. This type indicates a minor civil division. Not all nations exhibit these
administrative levels.public static final AddressType ADMINISTRATIVE_AREA_LEVEL_5
ADMINISTRATIVE_AREA_LEVEL_5
indicates a fifth-order civil entity below the country
level. This type indicates a minor civil division. Not all nations exhibit these
administrative levels.public static final AddressType COLLOQUIAL_AREA
COLLOQUIAL_AREA
indicates a commonly-used alternative name for the entity.public static final AddressType LOCALITY
LOCALITY
indicates an incorporated city or town political entity.public static final AddressType SUBLOCALITY
SUBLOCALITY
indicates a first-order civil entity below a locality. For some locations
may receive one of the additional types: sublocality_level_1 to sublocality_level_5. Each
sublocality level is a civil entity. Larger numbers indicate a smaller geographic area.public static final AddressType SUBLOCALITY_LEVEL_1
public static final AddressType SUBLOCALITY_LEVEL_2
public static final AddressType SUBLOCALITY_LEVEL_3
public static final AddressType SUBLOCALITY_LEVEL_4
public static final AddressType SUBLOCALITY_LEVEL_5
public static final AddressType NEIGHBORHOOD
NEIGHBORHOOD
indicates a named neighborhood.public static final AddressType PREMISE
PREMISE
indicates a named location, usually a building or collection of buildings
with a common name.public static final AddressType SUBPREMISE
SUBPREMISE
indicates a first-order entity below a named location, usually a singular
building within a collection of buildings with a common namepublic static final AddressType POSTAL_CODE
POSTAL_CODE
indicates a postal code as used to address postal mail within the
country.public static final AddressType NATURAL_FEATURE
NATURAL_FEATURE
indicates a prominent natural feature.public static final AddressType AIRPORT
AIRPORT
indicates an airport.public static final AddressType PARK
PARK
indicates a named park.public static final AddressType POINT_OF_INTEREST
POINT_OF_INTEREST
indicates a named point of interest. Typically, these "POI"s are
prominent local entities that don't easily fit in another category, such as "Empire State
Building" or "Statue of Liberty."public static final AddressType ESTABLISHMENT
ESTABLISHMENT
typically indicates a place that has not yet been categorized.public static final AddressType BUS_STATION
BUS_STATION
indicates the location of a bus stop.public static final AddressType TRAIN_STATION
TRAIN_STATION
indicates the location of a train station.public static final AddressType TRANSIT_STATION
TRANSIT_STATION
indicates the location of a transit station.public static AddressType[] values()
for (AddressType c : AddressType.values()) System.out.println(c);
public static AddressType 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 java.lang.String toString()
toString
in class java.lang.Enum<AddressType>
public static AddressType lookup(java.lang.String addressType)