枚举 AddressComponentType
java.lang.Object
java.lang.Enum<AddressComponentType>
ai.nextbillion.maps.model.AddressComponentType
- 所有已实现的接口:
java.io.Serializable,java.lang.Comparable<AddressComponentType>,java.lang.constant.Constable
public enum AddressComponentType extends java.lang.Enum<AddressComponentType>
The Address Component types. Please see Address Types and
Address Component Types for more detail.
-
嵌套类概要
-
枚举常量概要
枚举常量 枚举常量 说明 ADMINISTRATIVE_AREA_LEVEL_1A first-order civil entity below the country level.ADMINISTRATIVE_AREA_LEVEL_2A second-order civil entity below the country level.ADMINISTRATIVE_AREA_LEVEL_3A third-order civil entity below the country level.ADMINISTRATIVE_AREA_LEVEL_4A fourth-order civil entity below the country level.ADMINISTRATIVE_AREA_LEVEL_5A fifth-order civil entity below the country level.AIRPORTAn airport.ARCHIPELAGOAn archipelago.ART_GALLERYAn art gallery.BARA bar.BUS_STATIONThe location of a bus stop.CAFEA cafe.CAMPGROUNDA campground.CAR_RENTALA car-rental establishment.CAR_REPAIRA car repair establishment.CLOTHING_STOREA clothing store.COLLOQUIAL_AREAA commonly-used alternative name for the entity.CONTINENTA continent.COUNTRYA national political entity, typically the highest order type returned by the Geocoder.DRUGSTOREDRUGSTOREELECTRONICS_STOREAn electronics store.ESTABLISHMENTTypically indicates a place that has not yet been categorized.FINANCEA finance establishment.FLOORThe floor of a building address.FOODA food service establishment.GENERAL_CONTRACTORA general contractor.HEALTHA health service provider.HOME_GOODS_STOREA home goods store.INSURANCE_AGENCYAn insurance agency.INTERSECTIONA major intersection, usually of two major roads.LAWYERA lawyer.LIGHT_RAIL_STATIONThe location of a light rail station.LOCAL_GOVERNMENT_OFFICEA local government office.LOCALITYAn incorporated city or town political entity.LODGINGA lodging establishment.MEAL_DELIVERYA meal delivery establishment.MEAL_TAKEAWAYA take-away meal establishment.MOVING_COMPANYA moving company.MUSEUMA museum.NATURAL_FEATUREA prominent natural feature.NEIGHBORHOODA named neighborhood.PAINTERA painter.PARKA named park.PARKINGA parking lot or parking structure.PLUS_CODEPlus codePOINT_OF_INTERESTA named point of interest.POLITICALA political entity.POST_BOXA specific postal box.POSTAL_CODEA postal code as used to address postal mail within the country.POSTAL_CODE_PREFIXA postal code prefix as used to address postal mail within the country.POSTAL_CODE_SUFFIXA postal code suffix as used to address postal mail within the country.POSTAL_TOWNA grouping of geographic areas, such as locality and sublocality, used for mailing addresses in some countries.PREMISEA named location, usually a building or collection of buildings with a common name.PRIMARY_SCHOOLA primary school.REAL_ESTATE_AGENCYA real-estate agency.RESTAURANTA restaurant.ROOMThe room of a building address.ROUTEA named route (such as "US 101").RV_PARKAn RV park.SCHOOLA school.SECONDARY_SCHOOLA secondary school.SHOPPING_MALLA shopping mall.STORAGEA storage establishment.STOREA store.STREET_ADDRESSA precise street address.STREET_NUMBERThe precise street number of an address.SUBLOCALITYA first-order civil entity below a locality.SUBLOCALITY_LEVEL_1SUBLOCALITY_LEVEL_2SUBLOCALITY_LEVEL_3SUBLOCALITY_LEVEL_4SUBLOCALITY_LEVEL_5SUBPREMISEA first-order entity below a named location, usually a singular building within a collection of buildings with a common name.SUBWAY_STATIONThe location of a subway station.TOURIST_ATTRACTIONTourist AttractionTOWN_SQUAREA town square.TRAIN_STATIONThe location of a train station.TRANSIT_STATIONThe location of a transit station.TRAVEL_AGENCYA travel agency.UNKNOWNIndicates an unknown address component type returned by the server.WARDA specific type of Japanese locality, used to facilitate distinction between multiple locality components within a Japanese address. -
方法概要
修饰符和类型 方法 说明 java.lang.StringtoCanonicalLiteral()java.lang.StringtoString()static AddressComponentTypevalueOf(java.lang.String name)返回带有指定名称的该类型的枚举常量。static AddressComponentType[]values()按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。
-
枚举常量详细资料
-
STREET_ADDRESS
A precise street address. -
ROUTE
A named route (such as "US 101"). -
INTERSECTION
A major intersection, usually of two major roads. -
CONTINENT
A continent. -
POLITICAL
A political entity. Usually, this type indicates a polygon of some civil administration. -
COUNTRY
A national political entity, typically the highest order type returned by the Geocoder. -
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
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
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
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
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
A commonly-used alternative name for the entity. -
LOCALITY
An incorporated city or town political entity. -
WARD
A specific type of Japanese locality, used to facilitate distinction between multiple locality components within a Japanese address. -
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
-
SUBLOCALITY_LEVEL_2
-
SUBLOCALITY_LEVEL_3
-
SUBLOCALITY_LEVEL_4
-
SUBLOCALITY_LEVEL_5
-
NEIGHBORHOOD
A named neighborhood. -
PREMISE
A named location, usually a building or collection of buildings with a common name. -
SUBPREMISE
A first-order entity below a named location, usually a singular building within a collection of buildings with a common name. -
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. -
NATURAL_FEATURE
A prominent natural feature. -
AIRPORT
An airport. -
PARK
A named park. -
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
The floor of a building address. -
ESTABLISHMENT
Typically indicates a place that has not yet been categorized. -
PARKING
A parking lot or parking structure. -
POST_BOX
A specific postal box. -
POSTAL_TOWN
A grouping of geographic areas, such as locality and sublocality, used for mailing addresses in some countries. -
ROOM
The room of a building address. -
STREET_NUMBER
The precise street number of an address. -
BUS_STATION
The location of a bus stop. -
TRAIN_STATION
The location of a train station. -
SUBWAY_STATION
The location of a subway station. -
TRANSIT_STATION
The location of a transit station. -
LIGHT_RAIL_STATION
The location of a light rail station. -
GENERAL_CONTRACTOR
A general contractor. -
FOOD
A food service establishment. -
REAL_ESTATE_AGENCY
A real-estate agency. -
CAR_RENTAL
A car-rental establishment. -
TRAVEL_AGENCY
A travel agency. -
ELECTRONICS_STORE
An electronics store. -
HOME_GOODS_STORE
A home goods store. -
SCHOOL
A school. -
STORE
A store. -
SHOPPING_MALL
A shopping mall. -
LODGING
A lodging establishment. -
ART_GALLERY
An art gallery. -
LAWYER
A lawyer. -
RESTAURANT
A restaurant. -
BAR
A bar. -
MEAL_TAKEAWAY
A take-away meal establishment. -
CLOTHING_STORE
A clothing store. -
LOCAL_GOVERNMENT_OFFICE
A local government office. -
FINANCE
A finance establishment. -
MOVING_COMPANY
A moving company. -
STORAGE
A storage establishment. -
CAFE
A cafe. -
CAR_REPAIR
A car repair establishment. -
HEALTH
A health service provider. -
INSURANCE_AGENCY
An insurance agency. -
PAINTER
A painter. -
ARCHIPELAGO
An archipelago. -
MUSEUM
A museum. -
CAMPGROUND
A campground. -
RV_PARK
An RV park. -
MEAL_DELIVERY
A meal delivery establishment. -
PRIMARY_SCHOOL
A primary school. -
SECONDARY_SCHOOL
A secondary school. -
TOWN_SQUARE
A town square. -
TOURIST_ATTRACTION
Tourist Attraction -
PLUS_CODE
Plus code -
DRUGSTORE
DRUGSTORE -
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.
-
-
方法详细资料
-
values
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
java.lang.IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException- 如果参数为空值
-
toString
public java.lang.String toString()- 覆盖:
toString在类中java.lang.Enum<AddressComponentType>
-
toCanonicalLiteral
public java.lang.String toCanonicalLiteral()
-