{{tag>Function Function_List Miscellaneous}} ====== 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 [[:ref:a_f:a:find|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 ... ===== Related ===== [[ref:a_f:f:af:round|ROUND]], [[ref:a_f:f:af:min2|MIN2]], [[ref:a_f:f:af:max2|MAX2]]