Package com.cercalia.sdk.model.poi
Class PoiGeographicElement
java.lang.Object
com.cercalia.sdk.model.poi.PoiGeographicElement
Represents geographic/administrative element data for a POI.
Follows the Golden Rules: direct mapping from the API, providing both names
and IDs for all administrative levels. No administrative fallbacks are performed;
if the API returns null, this model returns null.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic PoiGeographicElement.Builderbuilder()Creates a new builder forPoiGeographicElement.boolean@Nullable String@Nullable String@Nullable String@Nullable String@Nullable String@Nullable String@Nullable StringReturns the municipality code.@Nullable String@Nullable String@Nullable String@Nullable String@Nullable String@Nullable StringinthashCode()toString()
-
Method Details
-
getHouseNumber
- Returns:
- House number or address range.
-
getStreet
- Returns:
- Name of the street.
-
getStreetCode
- Returns:
- Unique identifier for the street.
-
getLocality
- Returns:
- Name of the locality.
-
getLocalityCode
- Returns:
- Unique identifier for the locality.
-
getMunicipality
- Returns:
- Name of the municipality.
-
getMunicipalityCode
Returns the municipality code.Note: Method name preserves the intentional typo
municipalityCodefor compatibility.- Returns:
- The municipality code.
-
getSubregion
- Returns:
- Name of the subregion.
-
getSubregionCode
- Returns:
- Unique identifier for the subregion.
-
getRegion
- Returns:
- Name of the region.
-
getRegionCode
- Returns:
- Unique identifier for the region.
-
getCountry
- Returns:
- Name of the country.
-
getCountryCode
- Returns:
- ISO code or unique identifier for the country.
-
builder
Creates a new builder forPoiGeographicElement.- Returns:
- A new builder instance.
-
equals
-
hashCode
public int hashCode() -
toString
-