public void getForecast() throws IOException
	{
		String url = API_URL + this.api + "/" + this.lat + "," + this.lon;
		URL request = new URL(url);
		BufferedReader br = new BufferedReader(new InputStreamReader(request.openStream()));
		JsonObject forecast = JsonObject.readFrom(br.readLine());
		
		try {
			this.currently = forecast.get("currently").asObject();
		}
		catch (NullPointerException e) {
			this.currently = null;
		}
		
		try {
			this.minutely = forecast.get("minutely").asObject();
		}
		catch (NullPointerException e) {
			this.minutely = null;
		}
		
		try {
			this.hourly = forecast.get("hourly").asObject();
		}
		catch (NullPointerException e) {
			this.hourly = null;
		}
		
		try {
			this.daily = forecast.get("daily").asObject();
		}
		catch (NullPointerException e) {
			this.daily = null;
		}
		
		try {
			this.alerts = forecast.get("alerts").asArray();
		}
		catch (NullPointerException e) {
			this.alerts = null;
		}
//		
//		try {
//			this.flags = forecast.get("flags").asObject();
//		}
//		catch (NullPointerException e) {
//			this.flags = null;
//		}
		
		try {
			this.timezone = forecast.get("timezone").toString();
		}
		catch (NullPointerException e) {
			this.timezone = null;
		}
		
		try {
			this.offset = forecast.get("offset").asDouble();
		}
		catch (NullPointerException e) {
			this.offset = Double.POSITIVE_INFINITY;
		}
		
	}