public class WeatherSearchOption
extends java.lang.Object
Constructor and Description |
---|
WeatherSearchOption() |
Modifier and Type | Method and Description |
---|---|
WeatherSearchOption |
districtID(java.lang.String districtID) |
WeatherDataType |
getDataType()
请求数据类型,
|
java.lang.String |
getDistrictID()
区县的行政区划编码,和location二选一
|
LanguageType |
getLanguageType()
语言类型,默认中文。目前仅支持海外天气服务行政区划显示英文。
|
LatLng |
getLocation()
经纬度,高级字段,需要申请高级权限
|
WeatherServerType |
getServerType()
天气服务类型,默认国内
|
WeatherSearchOption |
languageType(LanguageType languageType) |
WeatherSearchOption |
location(LatLng location) |
WeatherSearchOption |
serverType(WeatherServerType weatherServerType) |
WeatherSearchOption |
weatherDataType(WeatherDataType weatherDataType) |
public WeatherSearchOption serverType(WeatherServerType weatherServerType)
public WeatherSearchOption districtID(java.lang.String districtID)
public WeatherSearchOption location(LatLng location)
public WeatherSearchOption weatherDataType(WeatherDataType weatherDataType)
public WeatherSearchOption languageType(LanguageType languageType)
public WeatherServerType getServerType()
public java.lang.String getDistrictID()
public LatLng getLocation()
public WeatherDataType getDataType()
public LanguageType getLanguageType()