Location
Distance calculator with 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

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

Last updated
Was this helpful?