Tinderbox v9 Icon


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]



drivingTimeTo( note )

drivingTimeTo estimates the driving time between the location specified by the selected (current) note and the location specified by the note path.

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