# weather **Repository Path**: keepcoding/weather ## Basic Information - **Project Name**: weather - **Description**: 读取weather.com.cn的天气预报信息 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 14 - **Created**: 2013-12-15 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #weather 读[www.weather.com.cn](http://www.weather.com.cn)数据的工具包 ##使用简介 * 接口地址信息详见[weather.properties](http://git.oschina.net/kakotor/weather/blob/master/src/main/resources/weather.properties) * 已生成的地址信息文件[locations.json](http://git.oschina.net/kakotor/weather/blob/master/src/main/resources/locations.json) ###读取天气信息 ```java try { WeatherLastHour lastHour = WeatherReader.getLastHour("1010200"); WeatherSixDay sixDay = WeatherReader.getSixDay("1010200"); WeatherToday today = WeatherReader.getToday("1010200"); } catch (IOException e) { e.printStackTrace(); } ``` ###生成地区信息文件 ```java LocationInfoBuilder builder = new LocationInfoBuilder(); builder.build(); ```