Compare two options on one job, with the crossover
compare_on_jobWorks both sides of a comparison page (LVP vs tile, paint vs wallpaper …) on one job: each side's quantity in both unit systems, allowance, weight and person-hours, the difference, and the crossover as one job figure is swept. Each calculator runs as its page runs it. No prices.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job | No | The job's figures by field id, each length or area with its unit ("14 ft", {"value": 4.2, "unit": "m"}), a count or pitch as a number, a choice as its option value. Fields left out open at the page's own figure. | |
| sweep | No | The job field the crossover chart sweeps; the page's own when left out. | |
| detail | No | full (the default): the whole answer. summary: the result lines, the citation line and the page only — fewer tokens to read. | full |
| market | No | Optional. A market whose own opening choice some inputs take (a UK reader's code, an IEC motor), and whose currency symbol prints the caller's own money figures. | |
| points | No | Sample points across the swept field's range. | |
| system | No | The unit system inputs left out open in, and the one the page link opens in. The answer comes in both. | metric |
| comparison | Yes | A comparison page's slug, such as lvp-vs-tile or paint-vs-wallpaper. | |
| inputUnits | No | Send "base" to pass bare numbers on dimensioned inputs in base units (m, m², L, kg …), as the published test vectors are written. Without it a length, area or volume must carry its unit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||