Package com.cercalia.sdk.model.geocoding
Enum GeocodingLevel
- All Implemented Interfaces:
Serializable,Comparable<GeocodingLevel>,java.lang.constant.Constable
Geocoding level indicating precision and administrative hierarchy of result.
Maps directly to Cercalia API values and indicates the granularity of the geocoding result. Higher precision levels (ADR, ST) have more specific location information than lower levels (CTRY, REG).
Precision levels from highest to lowest:
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionHighest precision: full address with house numberCity (locality) levelLowest precision: country levelMunicipality levelPostal code levelMilestone (kilometer mark) levelPOI (Point of Interest) levelRoad levelRegion (state/autonomous community) levelStreet level: road without specific addressSubregion (subregion) level -
Method Summary
Modifier and TypeMethodDescriptionstatic GeocodingLevelParses a Cercalia level string toGeocodingLevel.getValue()Returns the Cercalia API value for this level.static GeocodingLevelReturns the enum constant of this type with the specified name.static GeocodingLevel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ADR
Highest precision: full address with house number -
ST
Street level: road without specific address -
CT
City (locality) level -
PCODE
Postal code level -
MUN
Municipality level -
SUBREG
Subregion (subregion) level -
REG
Region (state/autonomous community) level -
CTRY
Lowest precision: country level -
RD
Road level -
PK
Milestone (kilometer mark) level -
POI
POI (Point of Interest) level
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
Returns the Cercalia API value for this level.- Returns:
- API value
-
fromValue
Parses a Cercalia level string toGeocodingLevel.Case-insensitive comparison with Cercalia API values.
- Parameters:
value- Cercalia level string- Returns:
- corresponding GeocodingLevel, or null if not recognized
-