Package nwsWeatherApi

Class GridpointForecast

java.lang.Object
nwsWeatherApi.Forecast
nwsWeatherApi.GridpointForecast
Direct Known Subclasses:
GridpointForecastHourly

public class GridpointForecast extends Forecast
Wraps the GridpointForecastGeoJson schema of the NWS API.
Author:
cobalt
  • 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

      public GridpointForecast(Office wfo, int x, int y)
      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