Analyze Routes
analyze_routesReturns the total hours for each of the routes calculate_route has drawn: drive hours, dwell hours, route_workload_hours (provider drive time plus dwell, no visit-frequency multiplier), stop coordinates, centroid, and bbox. Synchronous. Needs map_session_id or ts_handle, and dwell from dwell_time or the dwell recorded on the route; unresolved dwell returns CLARIFICATION_REQUIRED (needs_dwell). A circuit's stop_count includes the return to the start, so that stop's dwell counts twice. Facts only: no capacity, ranking, or overload flags. These hours are a different measure from territory and cluster workload; territory statistics come from analyze.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| route_ids | No | ||
| ts_handle | No | ||
| dwell_time | No | ||
| map_session_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||