class WeatherService {

    public Stream<Location> search(String query) {
        Stream<LocationInfo> locals = api.search(query);
        return locals.map(this::toLocation);
    }

    public  WeatherService(WeatherApi api);
    public  WeatherService();

}