-
Notifications
You must be signed in to change notification settings - Fork 0
National Weather Service (NWS)
NWS is an agency within NOAA
forecast.weather.gov is a website provided by the National Weather Service that offers forecasted weather data for locations across the United States. To retrieve weather data for a specific location, you can use the site's URL structure, which accepts latitude and longitude coordinates. For example, to get the forecast for a location with latitude 37.7749 and longitude -122.4194, you can use the following URL: https://forecast.weather.gov/MapClick.php?lat=37.7749&lon=-122.4194
The NWS also provides a Web Service API that allows developers to retrieve weather data programmatically. The API endpoint for getting the forecast data is: https://api.weather.gov/points/{latitude},{longitude} You can find more information about the NWS API and its usage in the API documentation.
You can find river forecast data through the NWS Advanced Hydrologic Prediction Service (AHPS). The AHPS provides river forecasts, flood warnings, and other hydrologic information for various locations across the United States. To access river forecast data programmatically, you can use the NWS River Forecast API. The API endpoint for retrieving river forecast data is: https://api.weather.gov/ahps/forecasts/{office_id}/{river_name} Replace {office_id} with the NWS office ID and {river_name} with the name of the river for which you want to retrieve the forecast data. You can find more information about the River Forecast API and its usage in the API documentation.