leave_by
Calculate the latest departure time to reach a Danish destination by a given arrival time, with drive summary including duration and distance.
Instructions
Convenience tool: given a destination and a required arrival time, returns the time you must leave and a drive summary. Equivalent to drive_time with arriveBy but requires arriveBy explicitly. Both 'from' and 'to' accept a Danish place name / address or 'lat,lon'. Returns leaveByLocal (Europe/Copenhagen), arriveByLocal, durationMin, distanceKm, and a no-live-traffic notice. Example output: 'Horsens → Billund Lufthavn er ~48 min — kør senest 11:02 for at nå 12:00'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | Origin place name, address, or "lat,lon". Required when DEFAULT_ORIGIN env is not set. | |
| to | Yes | Destination place name, address, or "lat,lon". Required. | |
| arriveBy | Yes | Required. Desired arrival time as ISO datetime ("2026-06-12T12:00") or "HH:MM" (today in Europe/Copenhagen). | |
| bufferMin | No | Extra buffer minutes to subtract (default 10 from DEFAULT_BUFFER_MIN). |