Class GeoSummary.Builder

  • Enclosing class:
    GeoSummary

    public static class GeoSummary.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • adminDivCode

        public GeoSummary.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 GeoSummary.Builder cityName​(String cityName)
        Common English-language name for the city.
        Parameters:
        cityName - the value to set
        Returns:
        this builder
      • countryCode

        public GeoSummary.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 GeoSummary.Builder countryName​(String countryName)
        The common English-language name for the country.
        Parameters:
        countryName - the value to set
        Returns:
        this builder
      • latitude

        public GeoSummary.Builder latitude​(Double latitude)
        Degrees north of the equator.
        Parameters:
        latitude - the value to set
        Returns:
        this builder
      • longitude

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