public static class GeoSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
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.
|
GeoSummary |
build() |
GeoSummary.Builder |
cityName(String cityName)
Common English-language name for the city.
|
GeoSummary.Builder |
copy(GeoSummary model) |
GeoSummary.Builder |
countryCode(String countryCode)
The ISO 3166-1 alpha-2 country code.
|
GeoSummary.Builder |
countryName(String countryName)
The common English-language name for the country.
|
GeoSummary.Builder |
latitude(Double latitude)
Degrees north of the equator.
|
GeoSummary.Builder |
longitude(Double longitude)
Degrees east of the prime meridian.
|
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.
adminDivCode
- the value to setpublic GeoSummary.Builder cityName(String cityName)
Common English-language name for the city.
cityName
- the value to setpublic GeoSummary.Builder countryCode(String countryCode)
The ISO 3166-1 alpha-2 country code. For a list of codes, see Country Codes.
countryCode
- the value to setpublic GeoSummary.Builder countryName(String countryName)
The common English-language name for the country.
countryName
- the value to setpublic GeoSummary.Builder latitude(Double latitude)
Degrees north of the equator.
latitude
- the value to setpublic GeoSummary.Builder longitude(Double longitude)
Degrees east of the prime meridian.
longitude
- the value to setpublic GeoSummary build()
public GeoSummary.Builder copy(GeoSummary model)
Copyright © 2016–2024. All rights reserved.