I used Dan’s expression if you’re using a null to control your camera in conjunction with this expression and came up with this.
….Probably self-explanatory to many of you, but it came in handy for me so I wanted to share.
target1 = thisComp.layer("Target 1");
target2 = thisComp.layer("Target 2");
tStart = 1; // transition start time
tEnd = 3; // transiton end time
d1 = length(to_world([0,0,0]),target1.position);
d2 = length(to_world([0,0,0]),target2.position);
ease(time,tStart,tEnd,d1,d2)