class WeatherWebApi implements WeatherApi {

    public Iterable<LocationInfo> search(String query) {
        String path = HOST + String.format(PATH_SEARCH, query, WEATHER_KEY);

        Iterable<String> src = request.getLines(path);
        src = filter(src , line -> !line.startsWith("#"));
        return map(src, line -> LocationInfo.valueOf(line));
    }

    public  WeatherWebApi(Request request);

}