FeatureType

  • FeatureType is an annotation interface used to identify feature types on a map.

  • It provides various string constants representing different geographical or political entities, such as countries, cities, and postal codes.

  • These constants can be used to categorize and filter features displayed on a map.

  • Examples of feature types include COUNTRY, LOCALITY, POSTAL_CODE, and ADMINISTRATIVE_AREA_LEVEL_1.

  • Developers can use these identifiers to interact with map features based on their type.

Identifiers for feature types.

Constant Summary

String ADMINISTRATIVE_AREA_LEVEL_1 Indicates a first-order civil entity below the country level.
String ADMINISTRATIVE_AREA_LEVEL_2 Indicates a second-order civil entity below the country level.
String COUNTRY Indicates the national political entity.
String DATASET Indicates a third-party dataset.
String FEATURE_TYPE_UNSPECIFIED Unspecified, invalid feature type.
String LOCALITY Indicates an incorporated city or town political entity.
String POSTAL_CODE Indicates a postal code as used to address postal mail within the country.
String SCHOOL_DISTRICT Indicates a school district.

Inherited Method Summary

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"