From 3711bb56bda629760600ca46a1c1b81e95d57bf5 Mon Sep 17 00:00:00 2001 From: sonora Date: Tue, 22 Sep 2015 21:13:35 +0200 Subject: [PATCH] suppress "and arrive at your destination" if it is still a long time after the next turn --- OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java b/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java index 0b1a5cdf8a..03fb9d6335 100644 --- a/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java +++ b/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java @@ -500,9 +500,12 @@ public class VoiceRouter { if(isTargetPoint(nextInfo) && (!playedAndArriveAtTarget || repeat)) { if(next.getTurnType().goAhead()) { playGoAhead(nextInfo.distanceTo, getSpeakableStreetName(currentSegment, next)); + andSpeakArriveAtPoint(nextInfo); + playedAndArriveAtTarget = true; + } else if(nextInfo.distanceTo <= 2 * TURN_IN_DISTANCE) { + andSpeakArriveAtPoint(nextInfo); + playedAndArriveAtTarget = true; } - andSpeakArriveAtPoint(nextInfo); - playedAndArriveAtTarget = true; } }