这里是更详细的
QWeatherSDK文档
在SDK中
所有的api均被以官方文档分割方式分开, 如果想要使用GeoAPI则需要在创建好的示例调用geo()方法, 此方法返回一个Geo类, 这个类中 包括了所有的GeoAPI, 其他api也是一样 但是如果直接调用太阳辐射API会抛出kotlin.NotImplementedError异常 因为没有条件测试这个API
列出的参数后面如果加上了
?则表明此参数有默认值, 可以不填
所有的数据类均存储在
cn.rtast.qwsdk.entity包中
geo().citySearch() 参数: location adm? range? number? lang? 数据类: GeoLookupEntitygeo().topCity() 参数: location? number? lang? 数据类: GeoTopEntitygeo().poiLookup() 参数: location type city? number? lang? 数据类: POIEntitygeo().poiRange() 参数: location type radius city? number? lang? 数据类: POIRangeEntityweather().now() 参数: location lang? unit? 数据类: WeatherBowEntityweather().weather3d() 参数: location lang? unit? 数据类: WeatherDailyEntityweather().weather7d() 参数: location lang? unit? 数据类: WeatherDailyEntityweather().weather15d() 参数: location lang? unit? 数据类: WeatherDailyEntityweather().weather24h() 参数: location lang? unit? 数据类: WeatherHourlyEntityweather().weather72h() 参数: location lang? unit? 数据类: WeatherHourlyEntityweather().weather168h() 参数: location lang? unit? 数据类: WeatherHourlyEntityweather().weatherMinutely() 参数: location lang? 数据类: WeatherMinutelyEntityweather().weatherGridRealtime() 参数: location lang? unit? 数据类: WeatherGridRealtimeEntityweatherGrid3d 参数: location lang? unit? 数据类: WeatherGridDailyEntityweatherGrid7d 参数: location lang? unit? 数据类: WeatherGridDailyEntityweatherGrid24h 参数: location lang? unit? 数据类: WeatherGridHourlyEntityweatherGrid72h 参数: location lang? unit? 数据类: WeatherGridHourlyEntitywarning().now() 参数: location lang? 数据类: WarningEntitywarning().list() 参数: range? 数据类: WarningCityListEntityindices1d 参数: location type? lang? 数据类: IndicesEntityindices3d 参数: location type? lang? 数据类: IndicesEntityair().now() 参数: location lang? 数据类: AirEntityair().daily() 参数: location lang? 数据类: AirDailyEntitytimemachine().weatherHistory() 参数: location date lang? unit? 数据类: WeatherHistoricalEntitytimeMachine().airHistory() 参数: location date lang? unit? 数据类: AirHistoricalEntitytropical().forecast() 参数: stormID 数据类: TropicalForecastEntitytropical().track() 参数: stormID 数据类: TropicalTrackEntitytropical().list() 参数: basin? year 数据类: TropicalListEntityocean().tide() 参数: location date 数据类: TideEntityocean().currents() 参数: location date 数据类: CurrentsEntityNot Available/不可用
astronomy().sun() 参数: location date lang? 数据类: SunEntityastronomy().moon() 参数: location date lang? 数据类: MoonEntityastronomy().solarElevationAngle() 参数: location date time tz alt
数据类: SolarElevationAngleEntity你可以在
QWeatherSDK类中使用所有的API, 对应的方法返回了对应的子类对象
JetBrains Open Source 提供的强大IDE支持