public String getJson(String location, String city) {
        try {
            /*
             * Create the query url from template
             */
            city = city.replace(" ", "_");
            location = location.replace(" ", "_");
            String weatherQuery = String.format(QUERY_URL, location, city);
            System.out.println("URL: " + weatherQuery);
            url = new URL(weatherQuery);

            System.out.println(fullUrl);

            conn = url.openConnection();

            // Get the response
            rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));

            String line = "";
            while ((line = rd.readLine()) != null) {
                json = json.concat(line);
            }

            rd.close();

        } catch (MalformedURLException ex) {
            ex.printStackTrace();
        } catch (IOException ex) {
            ex.printStackTrace();
        }

        return json;
    }