Blog7 min read

Happy Thanksgiving — and what building Route Weather taught us about WeatherKit, black ice, and mountain elevation

Every Thanksgiving week, millions of people pack the car for a long drive to see family. Take a classic holiday corridor like the 384-mile Interstate 80 drive from New York City to Pittsburgh, departing at 5:00 AM Wednesday morning.

That is the exact kind of trip where regular weather apps fall short. Checking the forecast at your starting point and your destination tells you nothing about what happens in the six hours between them — the mountain ridge you cross two and a half hours in, the cold valley floor right before sunrise, or whether leaving two hours earlier or later puts you completely clear of a storm.

So we built Route Weather, an app for iPhone, iPad, Mac, and iPhone Duo that forecasts the weather along your actual driving route at the exact time you will reach each mile, paired with a 30-meter mountain-pass elevation profile and an interactive departure scrubber.

Route Weather app icon: a colored mountain-pass route climbing from a green car pin under a sun to a red flag pin under a snow cloud

Route Weather is now on the App Store. Plan one-way, round-trip, or multi-day drives, drag the highway line onto alternate corridors, and compare hourly departure windows up to seven days ahead.

Route Weather on Mac showing live Apple WeatherKit data for New York, NY to Pittsburgh, PA on I-80 W departing Wednesday at 5:00 AM: clear green driving conditions, 24°F to 40°F dry roads, 30-meter Appalachian elevation profile, and the red Thursday storm band ahead on the departure sparkline

Building a road-weather app and testing it against live holiday-week forecasts turned up several surprises — places where naive code looked completely reasonable on paper and broke the moment it met real weather data. Here are four discoveries that shaped the app.

1. Apple WeatherKit’s Swift WeatherAlert drops alert start and end times

We caught this one while testing that Wednesday 5:00 AM New York-to-Pittsburgh run on Tuesday evening.

The Wednesday 5:00 AM route across New York, New Jersey, and Pennsylvania lit up bright red with a High Wind Watch, a Coastal Flood Watch, and a Wind Advisory. Yet the hourly forecast for Wednesday morning was crystal clear with 6–15 mph winds. Opening Apple’s Weather app immediately showed why: “High Wind Watch. These conditions are expected by 10:00 AM, Thursday, November 26” — thirty-seven hours later, long after a Wednesday morning drive would be over.

When we checked the Swift WeatherKit SDK interface, the reason was plain. WeatherKit.WeatherAlert only exposes six properties: detailsURL, source, summary, region, severity, and metadata. Neither the alert’s official onset time nor its end time is exposed in Swift. Even worse, metadata.expirationDate is just the cache lifetime of the API response (often 15 minutes), not when the storm starts or ends. Treat that cache timestamp as an expiry and every real warning vanishes 15 minutes into a 3-hour drive; ignore it completely and a Thursday wind watch lights up Wednesday’s clear highway in red.

The fix took two layers:

  • Exact National Weather Service windows: Whenever a WeatherKit cell carries an alert from the National Weather Service, Route Weather makes one fast, cached lookup to the official public NWS endpoint (api.weather.gov/alerts/active) to recover the real onset and end timestamps. Cells with no NWS alerts make zero extra requests. Wednesday 5:00 AM immediately turned clean green (above), while sliding departure forward to Thursday morning lights up the exact storm window below: High Wind Watch (Thu 10:00 AM – Fri 1:00 AM), Coastal Flood Watch (Thu 7:00 AM – Fri 1:00 PM), 43 mph wind gusts, and wintry mix near White Haven.
  • Handling “Until further notice” alerts: Checking the live NWS feed turned up another edge case: active river Flood Warnings often have a null end time with an expires timestamp only 15 hours out (when the next statement update is due). Using that update timestamp as the alert end would make a Flood Warning silently disappear halfway through the next day, so we preserve the onset, keep scoring through a 24-hour horizon, and display “Until further notice” on the card.
  • Honest severity badges and bounded fallback: A High Wind Watch carries CAP severity Severe, so mapping severity directly to a label printed a red WARNING badge next to High Wind Watch. Alert pills now read the official Watch / Advisory / Warning type, and non-US or un-enriched undated alerts stay bounded to 24 hours without distorting the departure optimizer for trips days away.
The exact same New York, NY to Pittsburgh, PA route on I-80 W scrubbed forward to Thursday at 10:00 AM: live National Weather Service High Wind Watch (Thu 10:00 AM – Fri 1:00 AM) and Coastal Flood Watch (Thu 7:00 AM – Fri 1:00 PM) with WATCH badges, 43 mph gusts, sleet at White Haven, and a Best departure suggestion

2. 23 °F and 88% humidity is not black ice

Early in testing, the Pennsylvania checkpoints along I-80 kept flashing Black ice risk on a dry, crystal-clear pre-dawn morning: 23 °F (−5 °C), 88% relative humidity, clear skies, and not a drop of rain in days.

That is what happens when you write the textbook shortcut — freezing air plus high relative humidity equals ice. Cold air holds very little water vapor, so clear nights routinely hit 85–90% relative humidity with completely dry pavement. Flagging black ice on every crisp winter morning teaches drivers to ignore the warning when it actually matters.

We replaced that shortcut with a three-part physical road-ice model:

  1. Freezing rain: Freezing rain or freezing drizzle freezes on contact with pavement and is flagged directly as high-severity glaze (without fabricating snowfall numbers).
  2. Wet-road refreeze (black ice): Inside the exact same WeatherKit cell call we already make for the upcoming week, we ask for 12 hours of recent past weather (12 hours ago through 192 hours ahead). If measurable rain or snowmelt occurred in the preceding 12 hours, we also check whether warm, sunny, low-humidity afternoon hours dried the road surface before temperatures dropped below freezing. Overnight rain followed by a dawn freeze triggers a refreeze warning; rain followed by a dry, sunny afternoon does not.
  3. Bridge-deck frost and freezing fog: Dry-air frost is only flagged when air is genuinely near saturation (dew-point spread around 1 °C or tighter) or in freezing fog below 33 °F, where frost actually deposits on cold bridges and overpasses.

3. Grid-cell centers are not the highway — and 1,000 meters matters

Weather models work on spatial grids. To keep long routes fast and respectful of API quotas, Route Weather snaps normal checkpoints to 0.15° (~15 km) cells and automatically detected mountain passes to tighter 0.04° (~4 km) cells, deduplicating across alternate routes.

Because we already operate our own global 30-meter elevation server for Geo Elevation and GPX Explore, we checked how far a grid-cell center’s terrain height can sit from the actual road. One spot on Interstate 70 in Colorado stood out immediately:

Location Highway elevation 0.15° cell center Difference
Donner Summit, I-80 2,197 m 2,145 m (0.04° pass cell) −52 m
Vail Pass, I-70 3,237 m 3,251 m (pass cell) / 3,578 m (0.15° cell) +14 m / +341 m
Glenwood Canyon, I-70 1,795 m 2,853 m +1,058 m

Through Glenwood Canyon, the 0.15° cell center sits up on the mountain ridge more than a kilometer above the highway. Without elevation correction, a canyon road reads 5–7 °C colder than reality — enough to turn chilly valley rain into snow on screen.

Route Weather now fetches 30-meter terrain elevations for both the highway and each WeatherKit cell center in parallel, adjusts temperature and dew point to the road’s true elevation using dry and moist lapse rates plus wet-bulb temperature, and plots the ETA-matched 32 °F / 0 °C freezing level directly across the elevation profile. Below is the built-in Donner Pass mountain sample on iPad, where you can see the 7,197 ft summit climb straight through the 32 °F snow line at your exact crossing time:

Route Weather on iPad in dark mode showing the built-in San Francisco to Lake Tahoe mountain scenario: the 32°F dashed freezing level cuts right through 7,197 ft Donner Pass, with the departure sparkline suggesting leaving 3 hours later

4. The smaller things you only catch on real trips

Testing across Mac, iPad, and foldable iPhone Duo — and putting the codebase through four rounds of independent review — turned up a few other details that make a big difference on the road:

  • Leg-by-leg speed timing: A multi-stop trip that combines a slow mountain stretch (120 km in 2 hours 15 minutes) with a fast interstate leg (350 km in 3 hours 20 minutes) can drift checkpoint ETAs by over an hour if you interpolate travel time by flat distance fraction. Scaling legs to the resampled polyline and interpolating leg-by-leg keeps every checkpoint ETA aligned with Apple Maps’ drive time.
  • Knowing how fresh the forecast is: Every route displays when the oldest cell along your path was last fetched from Apple WeatherKit, with a one-tap refresh button so you can judge staleness yourself before heading out.
  • Never faking missing weather: If you are offline or a weather cell cannot load, Route Weather never substitutes synthetic preview numbers. Your route, distance, drive time, and 30-meter elevation profile stay usable, and missing segments clearly say weather is unavailable with a Retry button.
  • Zero extra API calls when scrubbing: Because each cell fetches eight full days of hourly forecasts in one request, sliding your departure time hour by hour across a 7-day window — or switching between round-trip legs — recalculates everything locally in under a millisecond.

Disclaimer

Route Weather is a trip-planning aid built from third-party weather forecasts and 30-meter elevation models. Forecasts and road-icing estimates cannot capture localized microclimates, black ice in shaded curves, sudden squalls, or active road closures. Always check official National Weather Service advisories, state DOT road conditions, and chain-control signs before and during winter travel.

Happy Thanksgiving and safe travels

Route Weather follows the same principles as our other mapping tools: one purchase across iPhone, iPad, Mac, and iPhone Duo, no account, no ads, no tracking, and your saved trips synced privately through your own iCloud.

See more screenshots and questions answered on the Route Weather page, and read the full walkthrough in the Route Weather guide.

Download on the App Store

Whether you are crossing a snowy mountain pass, driving five hours down the interstate, or staying close to home this week — wishing you, your family, and everyone on the road clear skies, safe travels, and a very Happy Thanksgiving!

Gavi Narra ·

How-to guides for our apps, and developer notes →