Class GeocodingApi.ComponentFilter

  • java.lang.Object
  • All Implemented Interfaces:
    Enclosing class:

    public static class GeocodingApi.ComponentFilterextends java.lang.Objectimplements
    This class represents a component filter for a geocode request. In a geocoding response, the Google Geocoding API can return address results restricted to a specific area. The restriction is specified using the components filter.

    Please see Component Filtering for more detail.

    • Method Detail

      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • toUrlValue

        public java.lang.String toUrlValue()
        Specified by:
        toUrlValue in interface
      • locality

        public static GeocodingApi.ComponentFilter locality(java.lang.String locality)
        locality matches against both locality and sublocality types.
      • administrativeArea

        public static GeocodingApi.ComponentFilter administrativeArea(java.lang.String administrativeArea)
        administrativeArea matches all the administrative area levels.
      • postalCode

        public static GeocodingApi.ComponentFilter postalCode(java.lang.String postalCode)
        postalCode matches postal code and postal code prefix.
      • country

        public static GeocodingApi.ComponentFilter country(java.lang.String country)
        country matches a country name or a two letter ISO 3166-1 country code.

Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14