Package com.baidu.mapapi.search.weather
Class WeatherSearchOption
java.lang.Object
com.baidu.mapapi.search.weather.WeatherSearchOption
天气请求数据
开通高级权限: http://lbsyun.baidu.com/apiconsole/fankui#?typeOne=产品需求&typeTwo=高级服务
国内行政区域编码表:https://mapopen-website-wiki.cdn.bcebos.com/cityList/weather_district_id.csv
海外行政区域编码表:https://mapopen-website-wiki.cdn.bcebos.com/cityList/weather_aboard_district_id.xlsx
天气取值对照表:https://mapopen-website-wiki.cdn.bcebos.com/cityList/百度地图天气取值对照表(0410).xlsx
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondistrictID(String districtID) 请求数据类型,区县的行政区划编码,和location二选一语言类型,默认中文。目前仅支持海外天气服务行政区划显示英文。经纬度,高级字段,需要申请高级权限天气服务类型,默认国内languageType(LanguageType languageType) serverType(WeatherServerType weatherServerType) weatherDataType(WeatherDataType weatherDataType)
-
Constructor Details
-
WeatherSearchOption
public WeatherSearchOption()
-
-
Method Details
-
serverType
-
districtID
-
location
-
weatherDataType
-
languageType
-
getServerType
天气服务类型,默认国内 -
getDistrictID
区县的行政区划编码,和location二选一 -
getLocation
经纬度,高级字段,需要申请高级权限 -
getDataType
请求数据类型, -
getLanguageType
语言类型,默认中文。目前仅支持海外天气服务行政区划显示英文。
-