热门城市查询
获取全球各国热门城市列表。
| 接口代码 | 接口 | 数据类 |
|---|---|---|
| geoCityTop | 热门城市查询 | GeoCityTopResponse |
参数
GeoCityTopParameter
-
range搜索范围,可设定只在某个国家或地区范围内进行搜索,国家和地区名称需使用ISO 3166 所定义的国家代码。如果不设置此参数,搜索范围将在所有城市。例如range=cn -
number返回结果的数量,取值范围1-20,默认返回10个结果。 -
lang多语言设置,请阅读多语言文档,了解我们的多语言是如何工作、如何设置以及数据是否支持多语言。
示例代码
public void geoCityTop(GeoCityTopParameter parameter, Callback<GeoCityTopResponse> callback);
返回数据
GeoCityTopResponse
-
code请参考状态码 -
topCityList.name地区/城市名称 -
topCityList.id地区/城市ID -
topCityList.lat地区/城市纬度 -
topCityList.lon地区/城市经度 -
topCityList.adm2地区/城市的上级行政区划名称 -
topCityList.adm1地区/城市所属一级行政区域 -
topCityList.country地区/城市所属国家名称 -
topCityList.tz地区/城市所在时区 -
topCityList.utcOffset地区/城市目前与UTC时间偏移的小时数,参考详细说明 -
topCityList.isDst地区/城市是否当前处于夏令时。1表示当前处于夏令时,0表示当前不是夏令时。 -
topCityList.type地区/城市的属性 -
topCityList.rank地区评分 -
topCityList.fxLink该地区的天气预报网页链接,便于嵌入你的网站或应用 -
refer.sources原始数据来源,或数据源说明,可能为空 -
refer.license数据许可或版权声明,可能为空