This version is out of date, covering development from v8.0.0 to v8.x.x. It is maintained here only for inbound reference links from elsewhere. It is no longer actively updated.

Jump to the current version of aTbRef

Tinderbox v8 Icon

distanceTo(note1,note2)


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Altered: 

 Function   [other Function type actions]

 Item   [operators of similar scope]

 Data manipulation   [other Data manipulation operators]

 8.0.4

 


distanceTo(note1,note2)

From v8.0.4, distanceTo computes the approximate distance in kilometres between two notes for which a $Latitude and $Longitude are known.

For example, if note1 'Boston' has the latitude and longitude of Boston and note2 'Paris' has the latitude a longitude of Paris, then for

$MyNumber = distanceTo("Boston","Paris"); 

$MyNumber is about 5582 (km).

Long distances should use a great circle route.

Note the measurement is approximate and not intended for precise navigation.