Class GeocodeQueryComponents

    • Method Detail

      • country

        public final String country()

        The alpha-2 or alpha-3 character code for the country that the results will be present in.

        Returns:
        The alpha-2 or alpha-3 character code for the country that the results will be present in.
      • region

        public final String region()

        The region or state results should be to be present in.

        Example: North Rhine-Westphalia.

        Returns:
        The region or state results should be to be present in.

        Example: North Rhine-Westphalia.

      • subRegion

        public final String subRegion()

        The sub-region or county for which results should be present in.

        Returns:
        The sub-region or county for which results should be present in.
      • locality

        public final String locality()

        City or locality results should be present in.

        Example: Vancouver.

        Returns:
        City or locality results should be present in.

        Example: Vancouver.

      • district

        public final String district()

        The district or division of a city the results should be present in.

        Returns:
        The district or division of a city the results should be present in.
      • street

        public final String street()

        The name of the street results should be present in.

        Returns:
        The name of the street results should be present in.
      • addressNumber

        public final String addressNumber()

        The house number or address results should have.

        Returns:
        The house number or address results should have.
      • postalCode

        public final String postalCode()

        An alphanumeric string included in a postal address to facilitate mail sorting, such as post code, postcode, or ZIP code for which the result should posses.

        Returns:
        An alphanumeric string included in a postal address to facilitate mail sorting, such as post code, postcode, or ZIP code for which the result should posses.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)