public boolean getForecast ( String LATITUDE , String LONGITUDE ) { try { String reply = httpGET ( urlBuilder ( LATITUDE , LONGITUDE ) ) ; if ( reply == null ) return false ; this . forecast = Json . parse ( reply ) . asObject ( ) ; //this.forecast = JsonObject.readFrom(reply); } catch ( NullPointerException e ) { System . err . println ( "Unable to connect to the API: " + e . getMessage ( ) ) ; return false ; } return getForecast ( this . forecast ) ; }
Gets the forecast reports for the given coordinates with the set options