> ## Documentation Index
> Fetch the complete documentation index at: https://docs.less.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Polygon

> Build polygons/area from coordinates or convert coordinate lists to polygons

The Polygon tool produces **polygons** in two different ways. Pair it with [Point-in-Polygon](https://docs.less.tech/tools/utilities/point-in-polygon.md) or other workflows that expect a polygon column.

### Modes

1. **From coordinates** — start from a center latitude/longitude per row and call the isochrones service to build an area by **driving distance** or **driving time**.
2. **Convert from JSON** — start from a column of coordinate lists and close the ring to form a polygon without calling the isochrone API.

> [tab] From coordinates
>
> **1. Polygon mode**
>
> Select **From coordinates**.
>
> **2. Latitude / longitude columns**
>
> Choose numeric columns for the center point of each polygon.
>
> **3. Range type**
>
> Pick **Distance** (kilometers) or **Time** (minutes) to control how large the polygons will be. For example, an area around a point with a 100 kilometer distance from the center point to the outer ring of the area is fairly. Conversely, a 5 minute drivetime distance from the center to the outer ring of the area is comparatively small.
>
> **4. Range**
>
> Select range.
> Distance can be between 1–100 kilometers. Time can between 1–180 minutes.
>
> **5. Smoothing**
>
> Adjust **0–100** to simplify or round the polygon boundary; higher values yield simpler, more rounded areas/polygons.

> [tab] Convert from JSON
>
> **1. Polygon mode**
>
> Select **Convert from JSON**.
>
> **2. Coordinates column**
>
> Choose a **List** column where each row is an array of objects with **`lat`** and **`lon`** keys. The tool builds a TopoJSON polygon in the output **`geometry`** column.

### Outputs (summary)

* **From coordinates** — input columns are preserved where applicable; a **`geometry`** column holds the isochrone polygon (TopoJSON). Failed rows may include **`error`** and **`error_message`** fields.
* **Convert from JSON** — same row keys plus a **`geometry`** TopoJSON polygon per successful conversion.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.