Get weather alerts for a given area.
const active = true;
const latitude = 35.6175667;
const longitude = -80.7709911;
const alerts = await client.getAlerts(active, { latitude, longitude });
Get a weather forecast for a given latitude and longitude.
const latitude = 35.6175667;
const longitude = -80.7709911;
const forecast = await client.getForecast(latitude, longitude, 'baseline');
Get latest weather observation for a given station.
const latestObservation = await client.getLatestStationObservations('KSFO');
Get the closest weather station for a given latitude and longitude.
const latitude = 35.6175667;
const longitude = -80.7709911;
const stationOrNull = await client.getNearestStation(latitude, longitude);
Get weather observations for a given station.
const observations = await client.getStationObservations('KSFO');
Get the closest weather stations for a given latitude and longitude.
const latitude = 35.6175667;
const longitude = -80.7709911;
const stations = await client.getStations(latitude, longitude);
Generated using TypeDoc
The main client