Class PostalCodeCity

java.lang.Object
com.cercalia.sdk.model.geocoding.PostalCodeCity

public final class PostalCodeCity extends Object
Represents a locality associated with a postal code.

Contains administrative information and coordinates for a locality linked to a specific postal code area.

  • Method Details

    • builder

      public static PostalCodeCity.Builder builder()
    • getId

      @NotNull public @NotNull String getId()
      Returns:
      Internal Cercalia ID for the locality.
    • getName

      @NotNull public @NotNull String getName()
      Returns:
      Name of the locality.
    • getMunicipality

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

      @Nullable public @Nullable String getMunicipalityCode()
      Returns:
      Internal Cercalia ID for the municipality.

      Note: Intentional typo municipalityCode for parity with TS SDK.

    • getSubregion

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

      @Nullable public @Nullable String getSubregionCode()
      Returns:
      Internal Cercalia ID for the subregion.
    • getRegion

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

      @Nullable public @Nullable String getRegionCode()
      Returns:
      Internal Cercalia ID for the region.
    • getCountry

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

      @Nullable public @Nullable String getCountryCode()
      Returns:
      Internal Cercalia ID for the country.
    • getCoord

      @NotNull public @NotNull Coordinate getCoord()
      Returns:
      Coordinates of the locality.
    • 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