what's the weather in new york today?

Asked on 2024-07-30

1 search

I can't provide the current weather in New York today. However, I can share some information about how Apple has enhanced its WeatherKit API to provide more detailed and granular weather data, which can be used to build weather-related features in apps.

Relevant Sessions

  1. Bring context to today’s weather

Key Enhancements in WeatherKit API

  • Richer Forecast Details: The API now includes more detailed current conditions such as temperature, wind speed, UV index, and cloud cover by altitude. It also offers minute-by-minute precipitation, ten days worth of hourly and daily forecasts, and weather alerts.
  • Hourly and Daily Forecasts: You can now access more granular hourly and daily forecasts, including high and low humidity and precipitation amounts by the hour.
  • Changes Query: This new query provides upcoming changes to temperature and precipitation, including the time at which they will occur.
  • Historical Comparisons: The API now allows you to fetch historical weather data back to August 1, 2021, including high and low temperatures, precipitation, and snowfall amounts.

Example Usage

  • Fetching Hourly Precipitation Data: You can fetch hourly precipitation data by specifying the location and the granularity of the data you need. For example, you can request up to 240 hours of forecast data.
  • Historical Weather Data: You can fetch the past 30 days' worth of weather summary data, focusing on specific datasets like precipitation.

For more detailed information, you can watch the session Bring context to today’s weather.