Table of Contents

, ,

DISTANCE

Description

Returns the distance between two addresses or locations in metres

Syntax

DISTANCE (from, to, key)

Cannot be used in the condition of a FIND action.

Parameters

Two addresses or locations as Plain Text and a Google Maps key as PlainText. A location can be specified as two geo coordinates separated by comma

Returns

Number: the distance between the two addresses or locations in metres.

Example

IF DISTANCE ( ThisClient.Address, ThatClient.Address, SystemSettings.GoogleMapsKey ) > 1000 THEN ... 

ROUND, MIN2, MAX2