Package com.cercalia.sdk.model.geoment
Class GeomentPostalCodeOptions
java.lang.Object
com.cercalia.sdk.model.geoment.GeomentPostalCodeOptions
Options for fetching postal code geometry.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull GeomentPostalCodeOptions.Builder@Nullable StringgetCtryc()@NotNull StringgetPcode()@Nullable Integerstatic @NotNull GeomentPostalCodeOptionsCreates options for a postal code.static @NotNull GeomentPostalCodeOptionsCreates options for a postal code with country code.static @NotNull GeomentPostalCodeOptionsCreates options for a postal code with country code and tolerance.
-
Method Details
-
getPcode
- Returns:
- postal code.
-
getCtryc
- Returns:
- country code.
-
getTolerance
- Returns:
- geometry simplification tolerance.
-
of
Creates options for a postal code.- Parameters:
pcode- postal code.- Returns:
- a new
GeomentPostalCodeOptionsinstance.
-
of
@NotNull public static @NotNull GeomentPostalCodeOptions of(@NotNull @NotNull String pcode, @NotNull @NotNull String ctryc) Creates options for a postal code with country code.- Parameters:
pcode- postal code.ctryc- country code.- Returns:
- a new
GeomentPostalCodeOptionsinstance.
-
of
@NotNull public static @NotNull GeomentPostalCodeOptions of(@NotNull @NotNull String pcode, @NotNull @NotNull String ctryc, int tolerance) Creates options for a postal code with country code and tolerance.- Parameters:
pcode- postal code.ctryc- country code.tolerance- geometry simplification tolerance.- Returns:
- a new
GeomentPostalCodeOptionsinstance.
-
builder
@NotNull public static @NotNull GeomentPostalCodeOptions.Builder builder(@NotNull @NotNull String pcode) - Parameters:
pcode- postal code.- Returns:
- a new builder for
GeomentPostalCodeOptions.
-