> For the complete documentation index, see [llms.txt](https://help.pickyassist.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.pickyassist.com/setting-up-guide/setting-up-connector/formatter/location.md).

# Location

### Distance

The **Distance** action under the **Location** feature in the Formatter helps you calculate the aerial distance between two locations or geographical coordinates in kilometres. This enables you to determine the distance between a specific location and a target location, allowing you to perform filtering, validations, and automations based on distance.

For example, a shop owner may provide delivery services only within a 10 KM radius. When a customer shares their location, the shop owner can instantly determine whether the delivery location falls within the supported delivery range. Based on the calculated distance, further actions and automations can be configured accordingly.

#### How it works

On clicking the Distance under the Location a menu will opens as shown in the image below

<figure><img src="/files/VNLjyCj3o1B04HllLhn0" alt=""><figcaption></figcaption></figure>

The feature includes two input fields - Location 1 and Location 2 - where you can define the required locations. You can enter locations either as geographical coordinates as in the given format or by selecting them from the map using the Search Location option. Additionally, locations can be dynamically passed using attributes by mapping location variables.

The calculated distance can be stored as a Formatter variable, which will be available in the attributes list and can be used for mapping within the same connector for further actions or automations.

You can also use the Test option to instantly calculate and verify the distance between the two manually entered locations.

The same Location Distance feature is available in the Formatter within Flows, offering identical functionality and usage.;

<figure><img src="/files/sUipkqoDcJ0BsyOPrzBS" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.pickyassist.com/setting-up-guide/setting-up-connector/formatter/location.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
