Class PoiGeographicElement

java.lang.Object
com.cercalia.sdk.model.poi.PoiGeographicElement

public final class PoiGeographicElement extends Object
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.

  • Method Details

    • getHouseNumber

      @Nullable public @Nullable String getHouseNumber()
      Returns:
      House number or address range.
    • getStreet

      @Nullable public @Nullable String getStreet()
      Returns:
      Name of the street.
    • getStreetCode

      @Nullable public @Nullable String getStreetCode()
      Returns:
      Unique identifier for the street.
    • getLocality

      @Nullable public @Nullable String getLocality()
      Returns:
      Name of the locality.
    • getLocalityCode

      @Nullable public @Nullable String getLocalityCode()
      Returns:
      Unique identifier for the locality.
    • getMunicipality

      @Nullable public @Nullable String getMunicipality()
      Returns:
      Name of the municipality.
    • getMunicipalityCode

      @Nullable public @Nullable String getMunicipalityCode()
      Returns the municipality code.

      Note: Method name preserves the intentional typo municipalityCode for compatibility.

      Returns:
      The municipality code.
    • getSubregion

      @Nullable public @Nullable String getSubregion()
      Returns:
      Name of the subregion.
    • getSubregionCode

      @Nullable public @Nullable String getSubregionCode()
      Returns:
      Unique identifier for the subregion.
    • getRegion

      @Nullable public @Nullable String getRegion()
      Returns:
      Name of the region.
    • getRegionCode

      @Nullable public @Nullable String getRegionCode()
      Returns:
      Unique identifier for the region.
    • getCountry

      @Nullable public @Nullable String getCountry()
      Returns:
      Name of the country.
    • getCountryCode

      @Nullable public @Nullable String getCountryCode()
      Returns:
      ISO code or unique identifier for the country.
    • builder

      public static PoiGeographicElement.Builder builder()
      Creates a new builder for PoiGeographicElement.
      Returns:
      A new builder instance.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object