public static class Geolocation.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
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.
|
Geolocation |
build() |
Geolocation.Builder |
cityName(String cityName)
Common English-language name for the city.
|
Geolocation.Builder |
copy(Geolocation model) |
Geolocation.Builder |
countryCode(String countryCode)
The ISO 3166-1 alpha-2 country code.
|
Geolocation.Builder |
countryName(String countryName)
The common English-language name for the country.
|
Geolocation.Builder |
geoKey(String geoKey)
An opaque identifier for the geographic location of the vantage point.
|
Geolocation.Builder |
latitude(Float latitude)
Degrees north of the Equator.
|
Geolocation.Builder |
longitude(Float longitude)
Degrees east of the prime meridian.
|
public Geolocation.Builder geoKey(String geoKey)
An opaque identifier for the geographic location of the vantage point.
geoKey
- the value to setpublic 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.
adminDivCode
- the value to setpublic Geolocation.Builder cityName(String cityName)
Common English-language name for the city.
cityName
- the value to setpublic Geolocation.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 Geolocation.Builder countryName(String countryName)
The common English-language name for the country.
countryName
- the value to setpublic Geolocation.Builder latitude(Float latitude)
Degrees north of the Equator.
latitude
- the value to setpublic Geolocation.Builder longitude(Float longitude)
Degrees east of the prime meridian.
longitude
- the value to setpublic Geolocation build()
public Geolocation.Builder copy(Geolocation model)
Copyright © 2016–2024. All rights reserved.