FeatureType
Stay organized with collections
Save and categorize content based on your preferences.
Identifiers for feature types.
Inherited Method Summary
From interface java.lang.annotation.Annotation
Constants
public static final String
ADMINISTRATIVE_AREA_LEVEL_1
Indicates a first-order civil entity below the country level.
Constant Value:
"ADMINISTRATIVE_AREA_LEVEL_1"
public static final String
ADMINISTRATIVE_AREA_LEVEL_2
Indicates a second-order civil entity below the country level.
Constant Value:
"ADMINISTRATIVE_AREA_LEVEL_2"
public static final String
COUNTRY
Indicates the national political entity.
Constant Value:
"COUNTRY"
public static final String
DATASET
Indicates a third-party dataset.
Constant Value:
"DATASET"
public static final String
FEATURE_TYPE_UNSPECIFIED
Unspecified, invalid feature type.
Constant Value:
"FEATURE_TYPE_UNSPECIFIED"
public static final String
LOCALITY
Indicates an incorporated city or town political entity.
Constant Value:
"LOCALITY"
public static final String
POSTAL_CODE
Indicates a postal code as used to address postal mail within the country.
Constant Value:
"POSTAL_CODE"
public static final String
SCHOOL_DISTRICT
Indicates a school district.
Constant Value:
"SCHOOL_DISTRICT"
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eFeatureType\u003c/code\u003e is an annotation interface used to identify feature types on a map.\u003c/p\u003e\n"],["\u003cp\u003eIt provides various string constants representing different geographical or political entities, such as countries, cities, and postal codes.\u003c/p\u003e\n"],["\u003cp\u003eThese constants can be used to categorize and filter features displayed on a map.\u003c/p\u003e\n"],["\u003cp\u003eExamples of feature types include \u003ccode\u003eCOUNTRY\u003c/code\u003e, \u003ccode\u003eLOCALITY\u003c/code\u003e, \u003ccode\u003ePOSTAL_CODE\u003c/code\u003e, and \u003ccode\u003eADMINISTRATIVE_AREA_LEVEL_1\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use these identifiers to interact with map features based on their type.\u003c/p\u003e\n"]]],["`FeatureType` provides identifiers for various types of geographical features. It defines constants like `ADMINISTRATIVE_AREA_LEVEL_1` and `_2` (first and second-order civil entities), `COUNTRY` (national entity), `DATASET` (third-party), `LOCALITY` (city/town), `POSTAL_CODE`, `SCHOOL_DISTRICT`, and `FEATURE_TYPE_UNSPECIFIED` (invalid). `FeatureType` extends the `Annotation` interface and inherits methods such as `annotationType`, `equals`, `hashCode`, and `toString`. Each constant is a string value representing its feature.\n"],null,["# FeatureType\n\npublic abstract @interface **FeatureType** implements [Annotation](//developer.android.com/reference/java/lang/annotation/Annotation.html) \nIdentifiers for feature types. \n\n### Constant Summary\n\n|-------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------|\n| [String](//developer.android.com/reference/java/lang/String.html) | [ADMINISTRATIVE_AREA_LEVEL_1](/android/reference/com/google/android/gms/maps/model/FeatureType#ADMINISTRATIVE_AREA_LEVEL_1) | Indicates a first-order civil entity below the country level. |\n| [String](//developer.android.com/reference/java/lang/String.html) | [ADMINISTRATIVE_AREA_LEVEL_2](/android/reference/com/google/android/gms/maps/model/FeatureType#ADMINISTRATIVE_AREA_LEVEL_2) | Indicates a second-order civil entity below the country level. |\n| [String](//developer.android.com/reference/java/lang/String.html) | [COUNTRY](/android/reference/com/google/android/gms/maps/model/FeatureType#COUNTRY) | Indicates the national political entity. |\n| [String](//developer.android.com/reference/java/lang/String.html) | [DATASET](/android/reference/com/google/android/gms/maps/model/FeatureType#DATASET) | Indicates a third-party dataset. |\n| [String](//developer.android.com/reference/java/lang/String.html) | [FEATURE_TYPE_UNSPECIFIED](/android/reference/com/google/android/gms/maps/model/FeatureType#FEATURE_TYPE_UNSPECIFIED) | Unspecified, invalid feature type. |\n| [String](//developer.android.com/reference/java/lang/String.html) | [LOCALITY](/android/reference/com/google/android/gms/maps/model/FeatureType#LOCALITY) | Indicates an incorporated city or town political entity. |\n| [String](//developer.android.com/reference/java/lang/String.html) | [POSTAL_CODE](/android/reference/com/google/android/gms/maps/model/FeatureType#POSTAL_CODE) | Indicates a postal code as used to address postal mail within the country. |\n| [String](//developer.android.com/reference/java/lang/String.html) | [SCHOOL_DISTRICT](/android/reference/com/google/android/gms/maps/model/FeatureType#SCHOOL_DISTRICT) | Indicates a school district. |\n\n### Inherited Method Summary\n\nFrom interface java.lang.annotation.Annotation \n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| abstract [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c? extends [Annotation](//developer.android.com/reference/java/lang/annotation/Annotation.html)\\\u003e | annotationType() |\n| abstract boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| abstract int | hashCode() |\n| abstract [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n\nConstants\n---------\n\n#### public static final [String](//developer.android.com/reference/java/lang/String.html)\n**ADMINISTRATIVE_AREA_LEVEL_1**\n\nIndicates a first-order civil entity below the country level. \nConstant Value: \"ADMINISTRATIVE_AREA_LEVEL_1\" \n\n#### public static final [String](//developer.android.com/reference/java/lang/String.html)\n**ADMINISTRATIVE_AREA_LEVEL_2**\n\nIndicates a second-order civil entity below the country level. \nConstant Value: \"ADMINISTRATIVE_AREA_LEVEL_2\" \n\n#### public static final [String](//developer.android.com/reference/java/lang/String.html)\n**COUNTRY**\n\nIndicates the national political entity. \nConstant Value: \"COUNTRY\" \n\n#### public static final [String](//developer.android.com/reference/java/lang/String.html)\n**DATASET**\n\nIndicates a third-party dataset. \nConstant Value: \"DATASET\" \n\n#### public static final [String](//developer.android.com/reference/java/lang/String.html)\n**FEATURE_TYPE_UNSPECIFIED**\n\nUnspecified, invalid feature type. \nConstant Value: \"FEATURE_TYPE_UNSPECIFIED\" \n\n#### public static final [String](//developer.android.com/reference/java/lang/String.html)\n**LOCALITY**\n\nIndicates an incorporated city or town political entity. \nConstant Value: \"LOCALITY\" \n\n#### public static final [String](//developer.android.com/reference/java/lang/String.html)\n**POSTAL_CODE**\n\nIndicates a postal code as used to address postal mail within the country. \nConstant Value: \"POSTAL_CODE\" \n\n#### public static final [String](//developer.android.com/reference/java/lang/String.html)\n**SCHOOL_DISTRICT**\n\nIndicates a school district. \nConstant Value: \"SCHOOL_DISTRICT\""]]