Grow Territory from Seed
seed_buildGrows one territory outward from a seed {longitude, latitude} over a part layer until it holds a target: {type: location_count, value: N} or {type: metric_sum, field: , value: X}, counted from an ingested point layer. Adds the territory as a leaf of tal_id, or as a new alignment. Fit is closest: target_status is reached, closest_under, closest_over, frontier_exhausted, or max_parts_reached, with SEED_TARGET_UNDERSHOT/OVERSHOT warnings and the difference. Parts already in that alignment are never taken; the territory grows around them (blocked_part_count, seed_offset_km), and a seed inside an assigned part returns SEED_PART_ASSIGNED. part_scope=explicit with part_filter confines growth to an area. One seed per call. An undeclared metric field returns UNDECLARED_FIELD. Returns a task with created_territory and ts_handle; the open map repaints with map_session_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | Yes | ||
| tal_id | No | ||
| target | Yes | ||
| user_id | No | ||
| part_ids | No | ||
| max_parts | No | ||
| tal_label | No | ||
| ts_handle | No | ||
| part_layer | No | ||
| part_scope | No | ||
| part_filter | No | ||
| point_layer | No | ||
| map_session_id | No | ||
| territory_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||