Analyze Contractor Network Coverage
analyze_network_coverageFinds coverage gaps in a contractor (vendor, service provider, technician, repair shop) network: counts the contractors that reach each demand point (customer, claim, store, ZIP center). Reads contractor_layer (ingested with layer_role=contractors) and demand_layer. coverage: {rule: drive_time, max_minutes} (straight-line travel model, no provider calls), {rule: drive_time, source: isochrone_tal, isochrone_tal_id} (isochrone_build areas around the contractors), or {rule: zip_list} (declared service ZIPs). One trade per call ('*' for all). Missing layers, coverage, or trade return CLARIFICATION_REQUIRED with the question. Writes new layers, never the source: _coverage (contractor_count, single_source, coverage_class red none / amber one / green 2+ / blue saturated, nearest contractor and minutes, capacity_ratio, gap score) and _gaps; gap_territory=true adds the all-gap ZIPs as one territory. Assigns nothing; dividing work is auto_build. Returns a task; the result has coverage_pct, gap and single-source counts, top_gaps, and per-contractor reach.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ts | No | ||
| trade | No | ||
| coverage | No | ||
| ts_handle | No | ||
| tier_field | No | ||
| trade_field | No | ||
| demand_layer | No | ||
| demand_metric | No | ||
| gap_territory | No | ||
| capacity_field | No | ||
| map_session_id | No | ||
| contractor_layer | No | ||
| priority_weights | No | ||
| contractor_filter | No | ||
| service_zip_field | No | ||
| saturation_threshold | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||