端点列表

方法路径说明
GET/weather/query天气查询(支持城市名/坐标/IP)
GET/weather/gpsGPS 反向地理编码 + 天气查询
GET/weather/locationIP 地理定位调试
GET/weather/health健康检查

参数说明 (/weather/query)

参数类型说明优先级
citystring城市名(中英文均可)1(最高)
latnumber纬度(需配合 lon)2
lonnumber经度(需配合 lat)2
ipstring指定 IP 地址查询3

使用示例

按城市名查询
GET /weather/query?city=北京
按坐标查询
GET /weather/query?lat=39.9&lon=116.4
GPS 反向定位 + 天气
GET /weather/gps?lat=39.9&lon=116.4
IP 定位调试
GET /weather/location
详细信息
试一试 /weather/query → 健康检查 →

实时天气预览

加载中...