예제 #1
0
 public synchronized NextDirectionInfo getNextRouteDirectionInfoAfter(
     NextDirectionInfo previous, NextDirectionInfo to, boolean toSpeak) {
   NextDirectionInfo i = route.getNextRouteDirectionInfoAfter(previous, to, toSpeak);
   if (i != null) {
     i.imminent = voiceRouter.calculateImminent(i.distanceTo, null);
   }
   return i;
 }
예제 #2
0
 public synchronized NextDirectionInfo getNextRouteDirectionInfo(
     NextDirectionInfo info, boolean toSpeak) {
   NextDirectionInfo i = route.getNextRouteDirectionInfo(info, lastProjection, toSpeak);
   if (i != null) {
     i.imminent = voiceRouter.calculateImminent(i.distanceTo, lastProjection);
   }
   return i;
 }