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

drivingTimeTo(note)


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

 


drivingTimeTo( note )

New to v8.0.4, drivingTimeTo estimates the driving time between the location specified by the selected (current) note and the location specified by the note path. This operator is available on computers using macOS 10.12 and later.

The estimated driving time is zero if either note's location cannot be determined, if no route can be found between the two locations, if the operating system is too old, or if the internet is not accessible.

Otherwise, the result is a time interval estimating the approximate driving time, based on traffic conditions prevailing when the action was invoked. Note that this function can be slow; consider using an edict rather than a rule, and avoid recalculating the driving time if you already know it.

if ($MyInterval==0) {
   $MyInterval = drivingTimeTo(/places/faves/Swarthmore);
}