class WeatherWebApi {

    public List<WeatherInfo> pastWeather(double lat, double log, LocalDate from, LocalDate to) {
        String path = HOST + String.format(PATH_PAST_WEATHER, lat, log, from, to, WEATHER_KEY);
        Iterator<String> reader = request.getLines(path).iterator();
        List<WeatherInfo> infos = new ArrayList<>();
        while (reader.next().startsWith("#")) { } // Skip comments
        reader.next();                            // Skip Not Available
        while (reader.hasNext()) {
            infos.add(WeatherInfo.valueOf(reader.next()));
            if(reader.hasNext()) reader.next();   // Skip daily information
        }
        return infos;
    }

    public  WeatherWebApi(Request request);

}