Class Geolocation.Builder

  • Enclosing class:
    Geolocation

    public static class Geolocation.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • geoKey

        public Geolocation.Builder geoKey​(String geoKey)
        An opaque identifier for the geographic location of the vantage point.
        Parameters:
        geoKey - the value to set
        Returns:
        this builder
      • adminDivCode

        public Geolocation.Builder adminDivCode​(String adminDivCode)
        The ISO 3166-2 code for this location’s first-level administrative division, either a US state or Canadian province.

        Only included for locations in the US or Canada. For a list of codes, see Country Codes.

        Parameters:
        adminDivCode - the value to set
        Returns:
        this builder
      • cityName

        public Geolocation.Builder cityName​(String cityName)
        Common English-language name for the city.
        Parameters:
        cityName - the value to set
        Returns:
        this builder
      • countryCode

        public Geolocation.Builder countryCode​(String countryCode)
        The ISO 3166-1 alpha-2 country code.

        For a list of codes, see Country Codes.

        Parameters:
        countryCode - the value to set
        Returns:
        this builder
      • countryName

        public Geolocation.Builder countryName​(String countryName)
        The common English-language name for the country.
        Parameters:
        countryName - the value to set
        Returns:
        this builder
      • latitude

        public Geolocation.Builder latitude​(Float latitude)
        Degrees north of the Equator.
        Parameters:
        latitude - the value to set
        Returns:
        this builder
      • longitude

        public Geolocation.Builder longitude​(Float longitude)
        Degrees east of the prime meridian.
        Parameters:
        longitude - the value to set
        Returns:
        this builder