Calculate a driving commute
get_commute_timeRead-onlyIdempotent
Get the routed driving commute for a job site. Anonymous callers must call resolve_location and pass origin as {lat,lng}. Connected callers may use a saved origin with filters:read. location_index comes from search_jobs.
Input Schema
TableJSON 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. |