Package com.google.maps.model
Enum AddressComponentType
- java.lang.Object
-
- java.lang.Enum<AddressComponentType>
-
- com.google.maps.model.AddressComponentType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AddressComponentType>
public enum AddressComponentType extends java.lang.Enum<AddressComponentType>
The Address Component types. Please see Address Types and Address Component Types for more detail.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADMINISTRATIVE_AREA_LEVEL_1
A first-order civil entity below the country level.ADMINISTRATIVE_AREA_LEVEL_2
A second-order civil entity below the country level.ADMINISTRATIVE_AREA_LEVEL_3
A third-order civil entity below the country level.ADMINISTRATIVE_AREA_LEVEL_4
A fourth-order civil entity below the country level.ADMINISTRATIVE_AREA_LEVEL_5
A fifth-order civil entity below the country level.AIRPORT
An airport.ARCHIPELAGO
An archipelago.ART_GALLERY
An art gallery.BAR
A bar.BUS_STATION
The location of a bus stop.CAFE
A cafe.CAMPGROUND
A campground.CAR_RENTAL
A car-rental establishment.CAR_REPAIR
A car repair establishment.CLOTHING_STORE
A clothing store.COLLOQUIAL_AREA
A commonly-used alternative name for the entity.CONTINENT
A continent.COUNTRY
A national political entity, typically the highest order type returned by the Geocoder.DRUGSTORE
DRUGSTOREELECTRONICS_STORE
An electronics store.ESTABLISHMENT
Typically indicates a place that has not yet been categorized.FINANCE
A finance establishment.FLOOR
The floor of a building address.FOOD
A food service establishment.GENERAL_CONTRACTOR
A general contractor.HEALTH
A health service provider.HOME_GOODS_STORE
A home goods store.INSURANCE_AGENCY
An insurance agency.INTERSECTION
A major intersection, usually of two major roads.LAWYER
A lawyer.LIGHT_RAIL_STATION
The location of a light rail station.LOCAL_GOVERNMENT_OFFICE
A local government office.LOCALITY
An incorporated city or town political entity.LODGING
A lodging establishment.MEAL_DELIVERY
A meal delivery establishment.MEAL_TAKEAWAY
A take-away meal establishment.MOVING_COMPANY
A moving company.MUSEUM
A museum.NATURAL_FEATURE
A prominent natural feature.NEIGHBORHOOD
A named neighborhood.PAINTER
A painter.PARK
A named park.PARKING
A parking lot or parking structure.PLUS_CODE
Plus codePOINT_OF_INTEREST
A named point of interest.POLITICAL
A political entity.POST_BOX
A specific postal box.POSTAL_CODE
A postal code as used to address postal mail within the country.POSTAL_CODE_PREFIX
A postal code prefix as used to address postal mail within the country.POSTAL_CODE_SUFFIX
A postal code suffix as used to address postal mail within the country.POSTAL_TOWN
A grouping of geographic areas, such as locality and sublocality, used for mailing addresses in some countries.PREMISE
A named location, usually a building or collection of buildings with a common name.PRIMARY_SCHOOL
A primary school.REAL_ESTATE_AGENCY
A real-estate agency.RESTAURANT
A restaurant.ROOM
The room of a building address.ROUTE
A named route (such as "US 101").RV_PARK
An RV park.SCHOOL
A school.SECONDARY_SCHOOL
A secondary school.SHOPPING_MALL
A shopping mall.STORAGE
A storage establishment.STORE
A store.STREET_ADDRESS
A precise street address.STREET_NUMBER
The precise street number of an address.SUBLOCALITY
A first-order civil entity below a locality.SUBLOCALITY_LEVEL_1
SUBLOCALITY_LEVEL_2
SUBLOCALITY_LEVEL_3
SUBLOCALITY_LEVEL_4
SUBLOCALITY_LEVEL_5
SUBPREMISE
A first-order entity below a named location, usually a singular building within a collection of buildings with a common name.SUBWAY_STATION
The location of a subway station.TOURIST_ATTRACTION
Tourist AttractionTOWN_SQUARE
A town square.TRAIN_STATION
The location of a train station.TRANSIT_STATION
The location of a transit station.TRAVEL_AGENCY
A travel agency.UNKNOWN
Indicates an unknown address component type returned by the server.WARD
A specific type of Japanese locality, used to facilitate distinction between multiple locality components within a Japanese address.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toCanonicalLiteral()
java.lang.String
toString()
static AddressComponentType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AddressComponentType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STREET_ADDRESS
public static final AddressComponentType STREET_ADDRESS
A precise street address.
-
ROUTE
public static final AddressComponentType ROUTE
A named route (such as "US 101").
-
INTERSECTION
public static final AddressComponentType INTERSECTION
A major intersection, usually of two major roads.
-
CONTINENT
public static final AddressComponentType CONTINENT
A continent.
-
POLITICAL
public static final AddressComponentType POLITICAL
A political entity. Usually, this type indicates a polygon of some civil administration.
-
COUNTRY
public static final AddressComponentType COUNTRY
A national political entity, typically the highest order type returned by the Geocoder.
-
ADMINISTRATIVE_AREA_LEVEL_1
public static final AddressComponentType ADMINISTRATIVE_AREA_LEVEL_1
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.
-
ADMINISTRATIVE_AREA_LEVEL_2
public static final AddressComponentType ADMINISTRATIVE_AREA_LEVEL_2
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.
-
ADMINISTRATIVE_AREA_LEVEL_3
public static final AddressComponentType ADMINISTRATIVE_AREA_LEVEL_3
A third-order civil entity below the country level. This type indicates a minor civil division. Not all nations exhibit these administrative levels.
-
ADMINISTRATIVE_AREA_LEVEL_4
public static final AddressComponentType ADMINISTRATIVE_AREA_LEVEL_4
A fourth-order civil entity below the country level. This type indicates a minor civil division. Not all nations exhibit these administrative levels.
-
ADMINISTRATIVE_AREA_LEVEL_5
public static final AddressComponentType ADMINISTRATIVE_AREA_LEVEL_5
A fifth-order civil entity below the country level. This type indicates a minor civil division. Not all nations exhibit these administrative levels.
-
COLLOQUIAL_AREA
public static final AddressComponentType COLLOQUIAL_AREA
A commonly-used alternative name for the entity.
-
LOCALITY
public static final AddressComponentType LOCALITY
An incorporated city or town political entity.
-
WARD
public static final AddressComponentType WARD
A specific type of Japanese locality, used to facilitate distinction between multiple locality components within a Japanese address.
-
SUBLOCALITY
public static final AddressComponentType SUBLOCALITY
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.
-
SUBLOCALITY_LEVEL_1
public static final AddressComponentType SUBLOCALITY_LEVEL_1
-
SUBLOCALITY_LEVEL_2
public static final AddressComponentType SUBLOCALITY_LEVEL_2
-
SUBLOCALITY_LEVEL_3
public static final AddressComponentType SUBLOCALITY_LEVEL_3
-
SUBLOCALITY_LEVEL_4
public static final AddressComponentType SUBLOCALITY_LEVEL_4
-
SUBLOCALITY_LEVEL_5
public static final AddressComponentType SUBLOCALITY_LEVEL_5
-
NEIGHBORHOOD
public static final AddressComponentType NEIGHBORHOOD
A named neighborhood.
-
PREMISE
public static final AddressComponentType PREMISE
A named location, usually a building or collection of buildings with a common name.
-
SUBPREMISE
public static final AddressComponentType SUBPREMISE
A first-order entity below a named location, usually a singular building within a collection of buildings with a common name.
-
POSTAL_CODE
public static final AddressComponentType POSTAL_CODE
A postal code as used to address postal mail within the country.
-
POSTAL_CODE_PREFIX
public static final AddressComponentType POSTAL_CODE_PREFIX
A postal code prefix as used to address postal mail within the country.
-
POSTAL_CODE_SUFFIX
public static final AddressComponentType POSTAL_CODE_SUFFIX
A postal code suffix as used to address postal mail within the country.
-
NATURAL_FEATURE
public static final AddressComponentType NATURAL_FEATURE
A prominent natural feature.
-
AIRPORT
public static final AddressComponentType AIRPORT
An airport.
-
PARK
public static final AddressComponentType PARK
A named park.
-
POINT_OF_INTEREST
public static final AddressComponentType POINT_OF_INTEREST
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."
-
FLOOR
public static final AddressComponentType FLOOR
The floor of a building address.
-
ESTABLISHMENT
public static final AddressComponentType ESTABLISHMENT
Typically indicates a place that has not yet been categorized.
-
PARKING
public static final AddressComponentType PARKING
A parking lot or parking structure.
-
POST_BOX
public static final AddressComponentType POST_BOX
A specific postal box.
-
POSTAL_TOWN
public static final AddressComponentType POSTAL_TOWN
A grouping of geographic areas, such as locality and sublocality, used for mailing addresses in some countries.
-
ROOM
public static final AddressComponentType ROOM
The room of a building address.
-
STREET_NUMBER
public static final AddressComponentType STREET_NUMBER
The precise street number of an address.
-
BUS_STATION
public static final AddressComponentType BUS_STATION
The location of a bus stop.
-
TRAIN_STATION
public static final AddressComponentType TRAIN_STATION
The location of a train station.
-
SUBWAY_STATION
public static final AddressComponentType SUBWAY_STATION
The location of a subway station.
-
TRANSIT_STATION
public static final AddressComponentType TRANSIT_STATION
The location of a transit station.
-
LIGHT_RAIL_STATION
public static final AddressComponentType LIGHT_RAIL_STATION
The location of a light rail station.
-
GENERAL_CONTRACTOR
public static final AddressComponentType GENERAL_CONTRACTOR
A general contractor.
-
FOOD
public static final AddressComponentType FOOD
A food service establishment.
-
REAL_ESTATE_AGENCY
public static final AddressComponentType REAL_ESTATE_AGENCY
A real-estate agency.
-
CAR_RENTAL
public static final AddressComponentType CAR_RENTAL
A car-rental establishment.
-
TRAVEL_AGENCY
public static final AddressComponentType TRAVEL_AGENCY
A travel agency.
-
ELECTRONICS_STORE
public static final AddressComponentType ELECTRONICS_STORE
An electronics store.
-
HOME_GOODS_STORE
public static final AddressComponentType HOME_GOODS_STORE
A home goods store.
-
SCHOOL
public static final AddressComponentType SCHOOL
A school.
-
STORE
public static final AddressComponentType STORE
A store.
-
SHOPPING_MALL
public static final AddressComponentType SHOPPING_MALL
A shopping mall.
-
LODGING
public static final AddressComponentType LODGING
A lodging establishment.
-
ART_GALLERY
public static final AddressComponentType ART_GALLERY
An art gallery.
-
LAWYER
public static final AddressComponentType LAWYER
A lawyer.
-
RESTAURANT
public static final AddressComponentType RESTAURANT
A restaurant.
-
BAR
public static final AddressComponentType BAR
A bar.
-
MEAL_TAKEAWAY
public static final AddressComponentType MEAL_TAKEAWAY
A take-away meal establishment.
-
CLOTHING_STORE
public static final AddressComponentType CLOTHING_STORE
A clothing store.
-
LOCAL_GOVERNMENT_OFFICE
public static final AddressComponentType LOCAL_GOVERNMENT_OFFICE
A local government office.
-
FINANCE
public static final AddressComponentType FINANCE
A finance establishment.
-
MOVING_COMPANY
public static final AddressComponentType MOVING_COMPANY
A moving company.
-
STORAGE
public static final AddressComponentType STORAGE
A storage establishment.
-
CAFE
public static final AddressComponentType CAFE
A cafe.
-
CAR_REPAIR
public static final AddressComponentType CAR_REPAIR
A car repair establishment.
-
HEALTH
public static final AddressComponentType HEALTH
A health service provider.
-
INSURANCE_AGENCY
public static final AddressComponentType INSURANCE_AGENCY
An insurance agency.
-
PAINTER
public static final AddressComponentType PAINTER
A painter.
-
ARCHIPELAGO
public static final AddressComponentType ARCHIPELAGO
An archipelago.
-
MUSEUM
public static final AddressComponentType MUSEUM
A museum.
-
CAMPGROUND
public static final AddressComponentType CAMPGROUND
A campground.
-
RV_PARK
public static final AddressComponentType RV_PARK
An RV park.
-
MEAL_DELIVERY
public static final AddressComponentType MEAL_DELIVERY
A meal delivery establishment.
-
PRIMARY_SCHOOL
public static final AddressComponentType PRIMARY_SCHOOL
A primary school.
-
SECONDARY_SCHOOL
public static final AddressComponentType SECONDARY_SCHOOL
A secondary school.
-
TOWN_SQUARE
public static final AddressComponentType TOWN_SQUARE
A town square.
-
TOURIST_ATTRACTION
public static final AddressComponentType TOURIST_ATTRACTION
Tourist Attraction
-
PLUS_CODE
public static final AddressComponentType PLUS_CODE
Plus code
-
DRUGSTORE
public static final AddressComponentType DRUGSTORE
DRUGSTORE
-
UNKNOWN
public static final AddressComponentType UNKNOWN
Indicates an unknown address component type returned by the server. The Java Client for Google Maps Services should be updated to support the new value.
-
-
Method Detail
-
values
public static AddressComponentType[] 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 (AddressComponentType c : AddressComponentType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AddressComponentType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<AddressComponentType>
-
toCanonicalLiteral
public java.lang.String toCanonicalLiteral()
-
-