오픈웨더맵 API 자바 Wrapper
- retrofit2와 lombok 사용.
Java 1.8
retrofit2
lombok
// 서울
double LATITUDE = 37.56667;
double LONGITUDE = 126.97806;
OpenWeatherMap openWeatherMap = new OpenWeatherMap("API_KEY");
CurrentWeatherInfo currentWeatherInfo = openWeatherMap.getCurrentWeatherByGeo(LATITUDE, LONGITUDE);
ForecastWeatherInfo forecastWeatherInfo = openWeatherMap.getForecastWeatherByGeo(LATITUDE, LONGITUDE);
- 오픈웨더맵 API
- retorfit 한글문서
- Project Lombok