百度天气API
一、参考文档
https://lbs.baidu.com/faq/api?title=webapi/weather/base
二、示例代码
String url = "https://api.map.baidu.com/weather/v1/?district_id=xxx&data_type=all&ak=xxx";
        String res = HttpUtil.get(url);
        BdWeather bdWeather = JSON.parseObject(res, BdWeather.class);
    有些事情,没经历过不知道原理,没失败过不明白奥妙,没痛苦过不了解真谛。临渊羡鱼,不如退而结网!
                    
                
                
            
        
浙公网安备 33010602011771号