Package nwsWeatherApi
Class GridpointForecast
java.lang.Object
nwsWeatherApi.Forecast
nwsWeatherApi.GridpointForecast
- Direct Known Subclasses:
GridpointForecastHourly
Wraps the GridpointForecastGeoJson schema of the NWS API.
- Author:
- cobalt
-
Constructor Summary
ConstructorsConstructorDescriptionGridpointForecast(com.github.cliftonlabs.json_simple.JsonObject obj) Creates a GridpointForecast using a valid JSON of the NWS API GridpointForecastGeoJson schema.GridpointForecast(Office wfo, int x, int y) Creates a GridpointForecast using the WFO and the X and Y coordinates on the WFO's grid. -
Method Summary
Methods inherited from class nwsWeatherApi.Forecast
getForecast, toString
-
Constructor Details
-
GridpointForecast
public GridpointForecast(com.github.cliftonlabs.json_simple.JsonObject obj) Creates a GridpointForecast using a valid JSON of the NWS API GridpointForecastGeoJson schema.- Parameters:
obj-
-
GridpointForecast
Creates a GridpointForecast using the WFO and the X and Y coordinates on the WFO's grid. Each grid coordinate corresponds to a 2.5 * 2.5 km square.- Parameters:
wfo-x-y-
-
-
Method Details
-
getPeriod
-