Calculate a driving commute
get_commute_timeGet the routed driving commute for a job site. Drive times use typical weekday rush-hour traffic. Anonymous callers require origin as {lat,lng}. Connected callers may use a saved origin with filters:read. location_index identifies the matching site in search results.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"job_id": "<job_id>"
},
"name": "get_commute_time"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | ||
| origin | No | Driving start coordinates from resolve_location as {lat,lng}; required for anonymous callers. | |
| location_index | No | Site index from search_jobs; default 0. |