apple_maps_directions
Apple Maps driving, walking, or cycling directions between an origin and destination with optional stops: routes with distance, live/historic durations, toll/highway flags, traffic note, and turn-by-turn steps (detail=full adds the path).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| via | No | Optional intermediate stops as lat,lng pairs separated by | (e.g. 37.7955,-122.3937|37.8080,-122.4177), at most 8. With stops Apple returns one route with one leg per segment. | |
| lang | No | Language for road names and instructions as a BCP 47 tag. Defaults to en-US. | |
| mode | No | Travel mode: driving (default), walking, or cycling. | |
| detail | No | How much of each route to return: summary (routes and legs only), steps (default: plus turn-by-turn steps), or full (plus the route path as coordinates). | |
| country | No | Two-letter ISO 3166-1 country code. Defaults to US. | |
| depart_at | No | Optional departure time as RFC 3339; Apple then estimates with traffic for that time. Defaults to now. | |
| avoid_tolls | No | Driving only: prefer routes without tolls. | |
| avoid_stairs | No | Walking only: prefer routes without stairs. | |
| avoid_highways | No | Driving only: prefer routes without highways. | |
| origin_latitude | Yes | Origin latitude (required). | |
| origin_longitude | Yes | Origin longitude (required). | |
| destination_latitude | Yes | Destination latitude (required). | |
| destination_longitude | Yes | Destination longitude (required). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The tool result payload (shape varies per tool; see each tool's docs resource). |