Weather on a trail
get_trail_weatherWeather for a trail over time, sampled along the trail rather than at one point: starting conditions, how the temperature changes through the trip, rain windows, wind and gusts, humidity and dew point, wind chill and heat index, sunrise, sunset, twilight, the moon, significant changes, alerts, and what to wear and carry. Give a trail_id (call list_trails) or the route itself, plus start_time and a pace or total_duration_hours. Returns a timeline every two hours and a bottom line. It does not know the terrain, shade or exposure unless the trail record says so, and it says that.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gpx | No | The text of a GPX file (track points). Up to about 450 KB. | |
| pace | No | How fast the person moves, as a value and a unit. | |
| units | No | imperial (F, mph, inches) or metric (C, km/h, mm). Defaults to imperial in the United States and metric elsewhere. | |
| geojson | No | GeoJSON as an object or a string: a LineString, MultiLineString, or Features holding them. Longitude first, as GeoJSON has it. | |
| activity | No | What the person is doing, if known. One of: walking, hiking, trail_running, road_running, cycling, camping, hunting, fishing, yard_work, construction, painting_finishing, general_outdoor. Plain words work too ("run", "hike", "stain the deck"). "Running" with no more words is treated as road_running. | |
| polyline | No | An encoded polyline (Google format). | |
| progress | No | For someone already on the route: how far along they are right now. The answer is for the rest of the route, starting now. Give distance_miles or distance_km, or a latitude and longitude. The position is used for this answer only and is never stored or logged. | |
| trail_id | No | A trail we know by name. Call list_trails to see them. Use this OR one of the route formats below. | |
| intensity | No | How hard the effort is, which changes what to wear. Defaults to the usual effort for the activity. | |
| waypoints | No | Two to twelve places to travel between, each a name like "Glenbeulah, WI" or { "latitude": 43.79, "longitude": -88.05 }. They are joined by straight lines, so distances are approximate. | |
| start_time | No | When the trip starts. Defaults to now. An ISO 8601 time such as 2026-10-03T18:00:00-05:00 (read in the place's own time zone when it has no offset), or plain words: "now", "tonight", "tomorrow morning", "Saturday", "6 PM", "between 6 PM and midnight". A bare hour with no AM or PM is refused rather than guessed. | |
| step_hours | No | Hours between timeline rows. Default 2. | |
| coordinates | No | A list of [latitude, longitude] pairs, latitude FIRST. | |
| preferences | No | Optional: { "feel": "runs_cold" | "runs_warm", "avoid": ["shorts"] }. | |
| out_and_back | No | True if the route is walked out and then back along the same line. | |
| polyline_precision | No | Digits of precision in the polyline. 5 is usual, 6 is what some routers send. | |
| total_duration_hours | No | Instead of a pace: how long the whole trip is expected to take. The pace is worked out from the length of the route. | |
| break_minutes_per_hour | No | Minutes of stops per hour of moving, which stretches arrival times. | |
| rest_at_turnaround_hours | No | Hours spent resting at the turn of an out-and-back (a night's sleep, say). |