摘要: <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.5.5</version></dependency> /** * @ClassName H 阅读全文
posted @ 2022-04-21 13:59 冬天不眠 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 1 //根据经纬度获取城市名public static String getCityNameByLan(String lng,String lat){ try{ String url="http://api.map.baidu.com/geocoder?location="+lat+","+lng+ 阅读全文
posted @ 2022-04-21 13:54 冬天不眠 阅读(50) 评论(0) 推荐(0) 编辑