weather_along_route
Forecast weather along a route, each sample read for the hour you actually reach it rather than the weather right now. Pass the route's shape (an encoded polyline6, the route tool's geometry_polyline6), optional depart_at (RFC 3339, default now), the route's duration_s (from route; omitted, an 80 km/h average is assumed and duration_source says so) and optional sample_interval_m (default 25,000, 5,000 to 100,000, at most 40 samples). Each sample carries its ETA, temperature, rain, snowfall, precipitation type and probability, wind and gust speed, visibility, the WMO weather code and severe (thunderstorm and heavy precipitation codes only). It is a FORECAST, not an observation: read on a 0.05 degree grid (about 5.5 km) at the nearest hour, up to 16 days ahead, and samples past that horizon or without data come back available: false with a reason, never painted dry. summary is one sentence (where rain or snow starts and for how far, the strongest gust, samples without data) and always ends by saying it is advisory, never a routing guarantee: keep that qualifier when you pass it on. Requires the MapMap gateway; a deployment without a weather source answers a clear error. Display the returned attribution with the forecast, linked to attribution_url, with licence_url (CC BY 4.0) linked; derived_fields names the sample fields MapMap derives rather than Open-Meteo supplies.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shape | Yes | The route shape as an encoded polyline6 (the `route` tool's `geometry_polyline6`). | |
| depart_at | No | Departure time, RFC 3339 (e.g. "2026-10-12T14:00:00Z"); defaults to now. Forecasts reach about 16 days ahead; samples past that answer unavailable. | |
| duration_s | No | The route's duration in seconds, used to work out when you reach each sample. Pass the `route` tool's duration; omitted, a generic 80 km/h average is assumed and `duration_source` says so. | |
| sample_interval_m | No | Distance between samples in metres (default 25,000, clamped to 5,000 to 100,000; at most 40 samples per route). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| samples | Yes | Route samples, start to end. | |
| summary | Yes | One honest sentence describing the samples: where rain or snow starts and for how far, the strongest gust, how many samples had no data. Always ends by saying it is an advisory forecast, never a routing guarantee. | |
| depart_at | Yes | The departure time actually used, RFC 3339 UTC. | |
| duration_s | Yes | The route duration actually used, seconds. | |
| attribution | Yes | Data attribution (CC BY 4.0): display it with the forecast, verbatim. | |
| licence_url | Yes | The data licence to link with the credit (CC BY 4.0). | |
| severe_ahead | Yes | True when any available sample carries a severe WMO code. | |
| derived_fields | Yes | The sample fields MapMap derives rather than reads from Open-Meteo ("precipitation_type", "severe"), so a display can indicate the changes the licence asks to be indicated. | |
| attribution_url | Yes | The link the credit carries ("https://open-meteo.com/"): Open-Meteo's licence asks for it next to any place its data is displayed. | |
| duration_source | Yes | "provided" or "estimated_default_speed" (an 80 km/h guess: treat the ETAs as approximate). | |
| sample_interval_m | Yes | The sample spacing actually used, metres (may be coarser than asked on a long route). |