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