# Drone Spray Path Planner

> Drone Spray Path Planner is a paid API for AI agents from agri.halowerk.com, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-14).

Generates a parallel boustrophedon (alternating-direction) spray path over a rectangular field area given swath width and overlap fraction.

## Facts

- Endpoint: POST https://agri.halowerk.com/v1/drone-spray-path
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/drone-spray-path-planner-5a93efb6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BMqt_QcJZV9oqP4_6L50S

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability drone-spray-path-planner-5a93efb6 -d '<json body>'
```

Example prompt: Plan a drone spray path for a 500 by 300 unit rectangular field with the origin at (0, 0), using a swath width of 10 units, 15% overlap, and passes running along the width direction.

## When to prefer this

Use this endpoint when you need a fast, deterministic boustrophedon spray path for a simple axis-aligned rectangle in local coordinates and do not require terrain-aware routing, obstacle avoidance, no-fly zone enforcement, battery/range planning, or integration with a flight controller. Ideal for pre-mission pass planning tools, simulation, or generating input for a separate flight-control system.

## Known failure modes

- overlap_fraction >= 1.0 causes infinite passes — capped at 0.95
- swath_width larger than field dimension produces only one pass
- missing required fields (width, height, swath_width) returns validation error
- extremely large field dimensions combined with tiny swath width may produce very large response payloads
- invalid origin coordinate types return schema validation error

## How this service works

Builds parallel passes over an axis-aligned rectangle using supplied swath width and overlap, alternating travel direction to reduce deadhead distance. Coordinates are in caller-supplied local units. It does not use maps, terrain, wind, obstacles, battery limits, no-fly zones, chemical rules or flight-control integration.

## Output

Returns an ordered list of waypoints or line segments defining the alternating parallel passes across the rectangle, including coordinates for each pass start and end point in the caller's local unit system, structured to minimize deadhead (non-spraying) travel distance between passes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "width": {
   "type": "number",
   "maximum": 1000000000,
   "minimum": 0.001
  },
  "height": {
   "type": "number",
   "maximum": 1000000000,
   "minimum": 0.001
  },
  "origin": {
   "type": "object",
   "required": [
    "x",
    "y"
   ],
   "properties": {
    "x": {
     "type": "number",
     "maximum": 1000000000,
     "minimum": -1000000000
    },
    "y": {
     "type": "number",
     "maximum": 1000000000,
     "minimum": -1000000000
    }
   },
   "additionalProperties": false
  },
  "orientation": {
   "enum": [
    "passes_along_width",
    "passes_along_height"
   ],
   "type": "string"
  },
  "swath_width": {
   "type": "number",
   "maximum": 1000000000,
   "minimum": 0.001
  },
  "overlap_fraction": {
   "type": "number",
   "maximum": 0.95,
   "minimum": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/drone-spray-path-planner-5a93efb6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agri.halowerk.com](https://www.zero.xyz/host/agri.halowerk.com/llms.txt)
