> ## 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.

# Directions

> Get distance, duration, and a route geometry between two points

The Directions tool computes a **driving-car** route between an origin and a destination, both defined by latitude and longitude columns on each row. It is intended to work together with tools like [Geocode](/tools/utilities/geocode) when you need coordinates from addresses first.

### What you get

For each row, the model adds (among others):

* **`geometry`** — route geometry stored as compressed TopoJSON.
* **`distance_meters`** and **`duration_seconds`** — summary distance and travel time from the routing response when the request succeeds.
* **`error`** / **`error_message`** — populated when the directions request fails, so you can filter or debug failed rows.

### Configuration

<Steps>
  <Step title="Origin latitude column">
    Numeric column for the start point latitude. You can pick a **column** or a **parameter** (parameters appear under their own section in the control).
  </Step>

  <Step title="Origin longitude column">
    Numeric column for the start point longitude. Columns or parameters, same as origin latitude.
  </Step>

  <Step title="Destination latitude column">
    Numeric column (or parameter) for the end point latitude.
  </Step>

  <Step title="Destination longitude column">
    Numeric column (or parameter) for the end point longitude.
  </Step>
</Steps>

All four fields are required. Null origin or destination coordinates on a row cause that run to fail with a clear error for that row.
