# Surveying Calculator: Traverse, COGO, Area & Leveling (`jumblemog/surveying-calculator`) Actor

Land surveying math from plain text: traverse closure and compass or transit rule adjustment with area, inverse, forward and intersections, area by coordinates, and level runs with misclosure and adjustment, with a plan or profile chart.

- **URL**: https://apify.com/jumblemog/surveying-calculator.md
- **Developed by:** [Jumble Mog](https://apify.com/jumblemog) (community)
- **Categories:** AI, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Surveying Calculator: Traverse, COGO, Area & Leveling

**Land surveying computations from one line of text.** Paste a traverse (`N 26°50'20" E 462.10 ft; S 79°13'00" E 617.45 ft; ...`), ask for an inverse (`inverse from N 1000 E 1000 to N 1250.50 E 1300.25`), or type your level notes (`BM A el 100.000: BS 1.234 FS 2.345; ...; close on BM B el 100.380`). You get back:

- **Traverse closure and adjustment**: latitudes and departures, linear misclosure and its direction, precision (1:n) and the FGCS order it meets, the compass (Bowditch) or transit rule corrections, adjusted coordinates, bearings and distances, and the area by coordinates. Closed loops or connecting traverses between control points.
- **Traverses from angles**: interior angles, angles to the right or left, or deflection angles, with the angular misclosure spread equally before the bearings are computed.
- **Coordinate geometry (COGO)**: inverse (bearing, azimuth and distance between points), forward (a point from a bearing and distance), intersections by two bearings, two distances or one of each (both solutions when there are two), and area, perimeter and centroid of points around a figure.
- **Differential leveling**: height of instrument, elevations of turning points and sideshots, the arithmetic check (ΣBS − ΣFS), misclosure against the closing benchmark, FGCS allowable misclosure by order, and adjusted elevations.
- **A chart**: the traverse in plan at equal scale with the closure error enlarged, the COGO points and lines, or the level run's profile.

Feet (areas in square feet and acres) or metres (square metres and hectares); results come back in the unit you wrote.

It's made for:

- Land surveyors and survey technicians checking field notes before drafting.
- Civil engineers and CAD drafters working with bearings and coordinates.
- Surveying students working traverse, COGO and leveling problems (and checking FS/PS exam answers).
- AI agents that need correct survey math instead of a guess.

![A closed traverse drawn by this Actor: five stations A to E in plan with the adjusted lines in blue over the measured lines in dashed orange, and an enlarged closure-error panel showing the 0.0734 ft misclosure toward S 2°50'34" E, precision 1:32,810, second order class II](https://api.apify.com/v2/key-value-stores/Km5b4PG3kYHdZSb1E/records/surveying-calculator-example.png?signature=IP64XvlaeKIyqpq05IFj)

### How to use it

1. Write **Traverses, COGO and level runs**, one per entry. The form has examples.
2. Optionally set the **Units** for requests written without one.
3. Click **Start**. Each request is a row in the results, with its summary, chart and report.

#### What you can write

| You write | It means |
|---|---|
| `N 45°30'15" E`, `S45-30-15W`, `N 45 30 15 E` | A bearing |
| `az 135°30'` | An azimuth (clockwise from north) |
| `N 5000 E 5000`, `(5000, 5000)` | A point: northing, easting |
| `N 26°50' E 462.10 ft; S 79°13' E 617.45 ft; ...` | Traverse legs (bearing and distance) |
| `from N 5000 E 5000` | Where the traverse starts (N 5000 E 5000 by default) |
| `close on N 1129.93 E 1455.02` | The control point a connecting traverse ends on |
| `interior angles 107°13'40", 106°03'05", ...; distances 140.85, 188.22, ... m; first bearing N 26°50'05" E` | A traverse from angles (also `angles to the right`, `left`, `deflection 45°10' R, 30°20' L`) |
| `transit rule` | Adjust by the transit rule (compass rule by default) |
| `inverse from N .. E .. to N .. E ..` | Bearing and distance between points |
| `forward from N .. E .., N 45° E, 250 ft` | A new point |
| `intersection: from N .. E .. bearing N 45° E, from N .. E .. bearing N 30° W` | Bearing-bearing intersection (also two distances, or one of each) |
| `area of N .. E .., N .. E .., N .. E ..` | Area of points in order around the figure |
| `BM A el 100.000`, `BS 1.234 FS 2.345`, `IS 2.500`, `60 m`, `close on BM B el 100.380` | Level notes: start benchmark, setups, sideshots, setup distances, closing benchmark (or `loop`) |

The same as objects: `{"type": "cogo", "op": "intersection", "points": {"A": [1000, 1000], "B": [1000, 1400]}, "distances": ["300 m", "250 m"]}` or `{"type": "leveling", "start": 100, "setups": [{"bs": 1.234, "fs": 2.345, "dist": 60}, {"bs": 2.1, "fs": 1.5, "dist": 80}], "close": 99.49, "units": "m"}`.

### Examples

- The traverse above → misclosure 0.0734 ft over 2,407.60 ft, precision 1:32,810 (second order, class II); area 390,616.88 sq ft (8.9673 acres).
- `traverse, interior angles 107°13'40", 106°03'05", 87°49'00", 114°36'20", 124°18'05"; distances 140.85, 188.22, 153.67, 128.58, 122.55 m; first bearing N 26°50'05" E; transit rule` → angular misclosure +10" (−2" per angle); precision 1:108,687; area 3.6293 ha.
- `inverse from N 1000.00 E 1000.00 to N 1250.50 E 1300.25 ft` → N 50°09'41.8" E, 391.0247 ft.
- `intersection: from N 1000 E 1000 bearing N 45° E, from N 1000 E 1500 bearing N 30° W` → N 1316.9873, E 1316.9873.
- `level run from BM A el 100.000 m: BS 1.234 FS 2.345 60 m; BS 1.876 IS 2.500 FS 0.987 70 m; BS 2.100 FS 1.500 80 m; close on BM B el 100.380` → misclosure −0.002 m (second order, class I); adjusted elevations.

### How-to examples

Each example is a complete input; the results are from runs of the Actor (also listed under **Examples**).

#### How to close and adjust a traverse and find its area

```json
{"requests": ["closed traverse from N 5000 E 5000: N 26°50'20\" E 462.10 ft; S 79°13'00\" E 617.45 ft; S 12°58'00\" W 504.20 ft; S 78°21'40\" W 421.85 ft; N 45°56'10\" W 402.00 ft"]}
```

Result: misclosure 0.0734 ft over 2,407.60 ft, precision 1:32,810 (second order, class II); area 390,616.88 sq ft (8.9673 acres), with the adjusted coordinates.

#### How to compute an inverse (bearing and distance between two points)

```json
{"requests": ["inverse from N 1000.00 E 1000.00 to N 1250.50 E 1300.25 ft"]}
```

Result: N 50°09'41.8" E, 391.0247 ft.

#### How to reduce and adjust level notes

```json
{"requests": ["level run from BM A el 100.000 m: BS 1.234 FS 2.345 60 m; BS 1.876 IS 2.500 FS 0.987 70 m; BS 2.100 FS 1.500 80 m; close on BM B el 100.380"]}
```

Result: misclosure −0.002 m (second order, class I) and the adjusted elevations.

#### How to let an AI agent do survey computations

Add this Actor to the [Apify MCP server](https://mcp.apify.com) with `https://mcp.apify.com/?tools=jumblemog/surveying-calculator`. The agent pastes the field notes as one line and answers with the closure, precision, area or elevations.

### FAQ

**Which adjustments does it use?** The compass rule or the transit rule, after spreading the angular misclosure equally. Least squares isn't covered.

**Can I enter interior angles instead of bearings?** Yes: give the angles, the distances and the first bearing, and it checks the angular misclosure first.

**Does it classify the accuracy?** Yes, by the FGCS 1984 standards for traverses and leveling, and it warns about likely blunders.

**Does it apply geodetic corrections?** No. Coordinates are on a plane grid (state plane, UTM or local), without scale-factor or curvature corrections.

### Input

| Field | What it is |
|---|---|
| `requests` | The traverses, COGO jobs and level runs, as lines of text or objects (up to 200 per run) |
| `units` | For requests without a unit: `m` (metres) or `ft` (feet) |
| `charts` | Draw a chart for each request (default on) |

### Output

One dataset item per request, also saved together in the run's `OUTPUT` record:

```json
{
  "request": 1, "status": "ok", "type": "traverse", "title": "Closed traverse, 5 legs",
  "summary": "Misclosure 0.0734 ft over 2,407.60 ft, precision 1:32,810 (Second order, class II); adjusted by the compass rule; area 390,616.88 sq ft (8.9673 acres).",
  "closure": {"latitudeError": -0.0733, "departureError": 0.0036, "linearMisclosure": 0.0734,
              "misclosureBearing": "S 2°50'34\" E", "perimeter": 2407.6, "precision": "1:32,810",
              "orderMet": "Second order, class II", "rule": "compass", "closesOn": "start"},
  "legs": [{"from": "A", "to": "B", "bearing": "N 26°50'20\" E", "distance": 462.1, "latitude": 412.3224,
            "departure": 208.6304, "latCorrection": 0.0141, "depCorrection": -0.0007,
            "adjustedBearing": "N 26°50'17\" E", "adjustedDistance": 462.1122}, "..."],
  "points": [{"point": "B", "northing": 5412.3224, "easting": 5208.6304, "adjustedNorthing": 5412.3365,
              "adjustedEasting": 5208.6297}, "..."],
  "area": {"area": 390616.88, "areaLarge": 8.96733, "centroidNorthing": 5070.6517, "centroidEasting": 5416.5515},
  "units": {"length": "ft", "area": "sq ft", "largeArea": "acres", "angle": "°", "elevation": "ft"},
  "imageUrl": "https://api.apify.com/v2/key-value-stores/.../records/001-Closed-traverse-5-legs.png"
}
```

Traverses from angles add `angles`; COGO results have `op` and `inverse`, `forward`, `intersection` or `area` and `sides`; level runs have `level` and `readings`. Every item has `units`, `summary`, `warnings`, `notes` (the method and assumptions), a Markdown `report` and links to the chart and report. A request that can't be computed has `"status": "failed"` and the reason in `error`, and isn't billed.

### How it works

1. **Directions**: quadrant bearings and azimuths clockwise from north; angles to the right turn clockwise from the backsight (azimuth = back azimuth + angle). Interior angles are read in whichever direction around the figure closes.
2. **Traverse**: latitude = distance·cos(azimuth), departure = distance·sin(azimuth); misclosure from their sums (minus the control point difference on a connecting traverse); precision = perimeter / linear misclosure.
3. **Adjustment**: compass rule, corrections in proportion to leg length; transit rule, in proportion to the size of each latitude and departure. Angular misclosure is spread equally first.
4. **Area**: the coordinate (shoelace) method on the adjusted points.
5. **Intersections**: line-line, circle-circle and line-circle, in plane coordinates.
6. **Leveling**: HI = elevation + BS, elevation = HI − FS; misclosure spread in proportion to distance from the start (or per setup without distances); allowable c·√K mm with K in km (FGCS 1984: 3, 4, 6, 8 and 12 mm).

### Pricing

You pay one low price per request, at the prices shown on this page; COGO and leveling cost less than traverses. The chart and report are included. Requests that can't be computed are never charged. If you set a maximum cost per run, the Actor stops before a request that wouldn't fit.

### Speed

Each request takes a few milliseconds. A run through the API answers in about 10 seconds, including the cloud container starting.

### Tips and limits

- **Plane surveying**: coordinates are on a plane grid (state plane, UTM or local); no geodetic, scale-factor or curvature corrections.
- **Least squares** adjustment isn't covered; compass and transit rules are the usual choice for boundary and construction traverses.
- **Blunders**: a closure worse than 1:5,000 or an angular misclosure over 12"√n gets a warning to check the notes before adjusting.
- **Curves** in a boundary (arcs) aren't part of the area; split them out or use chord points.
- **Limits**: 200 requests per run.

### For AI agents and developers

This Actor works with the [Apify MCP server](https://mcp.apify.com), so AI agents can call it as a tool. Pass `requests` as plain text and read `summary`, `closure`, `points`, `area`, `inverse`, `intersection`, `level` and `warnings`. A direct API call that waits for the answer:

```bash
curl -X POST "https://api.apify.com/v2/acts/jumblemog~surveying-calculator/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"requests": ["inverse from N 1000.00 E 1000.00 to N 1250.50 E 1300.25 ft"]}'
```

`run-sync` instead returns the run's `OUTPUT`: the status, the counts and every result as JSON.

In Python, with the `apify-client` package:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")
run = client.actor("jumblemog/surveying-calculator").call(run_input={
    "requests": [{"type": "traverse", "start": [5000, 5000], "units": "ft",
                  "legs": [{"bearing": "N 26°50'20\" E", "distance": 462.10},
                           {"bearing": "S 79°13'00\" E", "distance": 617.45},
                           {"bearing": "S 12°58'00\" W", "distance": 504.20},
                           {"bearing": "S 78°21'40\" W", "distance": 421.85},
                           {"bearing": "N 45°56'10\" W", "distance": 402.00}]}],
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["summary"])
```

### Credits

- Charts: [Vega-Lite](https://vega.github.io/vega-lite/) and [vl-convert](https://github.com/vega/vl-convert) (BSD-3-Clause), with the [Inter](https://rsms.me/inter/) font (SIL Open Font License).
- Methods: Ghilani and Wolf, *Elementary Surveying*; FGCS, *Standards and Specifications for Geodetic Control Networks* (1984).

# Actor input Schema

## `requests` (type: `array`):

One request per entry, as a line of text or an object. Bearings as 'N 45°30'15" E', 'S45-30-15W' or 'N 45 30 15 E'; azimuths as 'az 135°30''; points as 'N 5000 E 5000' (northing, easting). Traverse: legs as bearing and distance ('N 26°50' E 462.10 ft; S 79°13' E 617.45 ft; ...'), or interior angles, angles to the right or left, or deflections ('45°10' R') with the distances and the first leg's bearing; a start point ('from N 5000 E 5000'; N 5000 E 5000 if left out) and, for a connecting traverse, the control point it closes on ('close on N ... E ...'); the compass (Bowditch, default) or transit rule: misclosure, precision, adjusted coordinates and bearings, area. COGO: inverse between points ('inverse from N .. E .. to N .. E ..'), a point from a bearing and distance ('forward from N .. E .., N 45° E, 250 ft'), intersections from two points by two bearings, two distances or one of each, and the area of points in order around a figure. Leveling: the start benchmark ('BM A el 100.000'), backsight and foresight pairs ('BS 1.234 FS 2.345'), sideshots ('IS 2.5'), optional setup distances ('60 m') and the closing benchmark ('close on BM B el 100.380', or 'loop'): HI, elevations, the arithmetic check, misclosure with FGCS limits, and adjusted elevations. Object fields: type (traverse, cogo or leveling), legs \[{direction, distance}], angles, angleType (interior, right, left, deflection), distances, firstDirection, start, end, rule, names, op (inverse, forward, intersection, area), points, directions, from, to, direction, distance, setups \[{bs, fs, sideshots, dist, to}], close, length, units, title, text.

## `units` (type: `string`):

For requests without a unit. ft, acres or miles in a request switch it to feet; m, km or ha to metres.

## `charts` (type: `boolean`):

The traverse or points in plan at equal scale (with the closure error enlarged), or the level run's profile.

## Actor input object example

```json
{
  "requests": [
    "closed traverse from N 5000 E 5000: N 26°50'20\" E 462.10 ft; S 79°13'00\" E 617.45 ft; S 12°58'00\" W 504.20 ft; S 78°21'40\" W 421.85 ft; N 45°56'10\" W 402.00 ft",
    "traverse, interior angles 107°13'40\", 106°03'05\", 87°49'00\", 114°36'20\", 124°18'05\"; distances 140.85, 188.22, 153.67, 128.58, 122.55 m; first bearing N 26°50'05\" E; start N 1000 E 2000; transit rule",
    "inverse from N 1000.00 E 1000.00 to N 1250.50 E 1300.25 ft",
    "forward from N 1000 E 1000, N 45°30'15\" E, 250 ft",
    "intersection: from N 1000 E 1000 bearing N 45° E, from N 1000 E 1500 bearing N 30° W",
    "area of N 1000 E 1000, N 1000 E 1200, N 1150 E 1200, N 1100 E 1000 ft",
    "level run from BM A el 100.000 m: BS 1.234 FS 2.345 60 m; BS 1.876 IS 2.500 FS 0.987 70 m; BS 2.100 FS 1.500 80 m; close on BM B el 100.380",
    {
      "type": "cogo",
      "op": "intersection",
      "points": {
        "A": [
          1000,
          1000
        ],
        "B": [
          1000,
          1400
        ]
      },
      "distances": [
        "300 m",
        "250 m"
      ]
    }
  ],
  "units": "m",
  "charts": true
}
```

# Actor output Schema

## `results` (type: `string`):

One row per request: the summary and chart.

## `output` (type: `string`):

The OUTPUT record: every result in one JSON object.

## `files` (type: `string`):

Charts (PNG and SVG) and Markdown reports in the run's key-value store.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "requests": [
        "closed traverse from N 5000 E 5000: N 26°50'20\" E 462.10 ft; S 79°13'00\" E 617.45 ft; S 12°58'00\" W 504.20 ft; S 78°21'40\" W 421.85 ft; N 45°56'10\" W 402.00 ft",
        "traverse, interior angles 107°13'40\", 106°03'05\", 87°49'00\", 114°36'20\", 124°18'05\"; distances 140.85, 188.22, 153.67, 128.58, 122.55 m; first bearing N 26°50'05\" E; start N 1000 E 2000; transit rule",
        "inverse from N 1000.00 E 1000.00 to N 1250.50 E 1300.25 ft",
        "forward from N 1000 E 1000, N 45°30'15\" E, 250 ft",
        "intersection: from N 1000 E 1000 bearing N 45° E, from N 1000 E 1500 bearing N 30° W",
        "area of N 1000 E 1000, N 1000 E 1200, N 1150 E 1200, N 1100 E 1000 ft",
        "level run from BM A el 100.000 m: BS 1.234 FS 2.345 60 m; BS 1.876 IS 2.500 FS 0.987 70 m; BS 2.100 FS 1.500 80 m; close on BM B el 100.380",
        {
            "type": "cogo",
            "op": "intersection",
            "points": {
                "A": [
                    1000,
                    1000
                ],
                "B": [
                    1000,
                    1400
                ]
            },
            "distances": [
                "300 m",
                "250 m"
            ]
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("jumblemog/surveying-calculator").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "requests": [
        "closed traverse from N 5000 E 5000: N 26°50'20\" E 462.10 ft; S 79°13'00\" E 617.45 ft; S 12°58'00\" W 504.20 ft; S 78°21'40\" W 421.85 ft; N 45°56'10\" W 402.00 ft",
        "traverse, interior angles 107°13'40\", 106°03'05\", 87°49'00\", 114°36'20\", 124°18'05\"; distances 140.85, 188.22, 153.67, 128.58, 122.55 m; first bearing N 26°50'05\" E; start N 1000 E 2000; transit rule",
        "inverse from N 1000.00 E 1000.00 to N 1250.50 E 1300.25 ft",
        "forward from N 1000 E 1000, N 45°30'15\" E, 250 ft",
        "intersection: from N 1000 E 1000 bearing N 45° E, from N 1000 E 1500 bearing N 30° W",
        "area of N 1000 E 1000, N 1000 E 1200, N 1150 E 1200, N 1100 E 1000 ft",
        "level run from BM A el 100.000 m: BS 1.234 FS 2.345 60 m; BS 1.876 IS 2.500 FS 0.987 70 m; BS 2.100 FS 1.500 80 m; close on BM B el 100.380",
        {
            "type": "cogo",
            "op": "intersection",
            "points": {
                "A": [
                    1000,
                    1000,
                ],
                "B": [
                    1000,
                    1400,
                ],
            },
            "distances": [
                "300 m",
                "250 m",
            ],
        },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("jumblemog/surveying-calculator").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "requests": [
    "closed traverse from N 5000 E 5000: N 26°50'\''20\\" E 462.10 ft; S 79°13'\''00\\" E 617.45 ft; S 12°58'\''00\\" W 504.20 ft; S 78°21'\''40\\" W 421.85 ft; N 45°56'\''10\\" W 402.00 ft",
    "traverse, interior angles 107°13'\''40\\", 106°03'\''05\\", 87°49'\''00\\", 114°36'\''20\\", 124°18'\''05\\"; distances 140.85, 188.22, 153.67, 128.58, 122.55 m; first bearing N 26°50'\''05\\" E; start N 1000 E 2000; transit rule",
    "inverse from N 1000.00 E 1000.00 to N 1250.50 E 1300.25 ft",
    "forward from N 1000 E 1000, N 45°30'\''15\\" E, 250 ft",
    "intersection: from N 1000 E 1000 bearing N 45° E, from N 1000 E 1500 bearing N 30° W",
    "area of N 1000 E 1000, N 1000 E 1200, N 1150 E 1200, N 1100 E 1000 ft",
    "level run from BM A el 100.000 m: BS 1.234 FS 2.345 60 m; BS 1.876 IS 2.500 FS 0.987 70 m; BS 2.100 FS 1.500 80 m; close on BM B el 100.380",
    {
      "type": "cogo",
      "op": "intersection",
      "points": {
        "A": [
          1000,
          1000
        ],
        "B": [
          1000,
          1400
        ]
      },
      "distances": [
        "300 m",
        "250 m"
      ]
    }
  ]
}' |
apify call jumblemog/surveying-calculator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jumblemog/surveying-calculator"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/dGJpAlb7z9OIQ1xhq/builds/GVNx2HjIdvOPzdNRH/openapi.json
