From f8107714b6e3d71fceb595e96047c25699d2e8ab Mon Sep 17 00:00:00 2001 From: sonora Date: Wed, 21 Dec 2011 22:40:54 +0100 Subject: [PATCH] adjust angle limits for turn announcements to more customary figures --- .../src/net/osmand/plus/routing/RouteProvider.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/routing/RouteProvider.java b/OsmAnd/src/net/osmand/plus/routing/RouteProvider.java index b74141c022..79a8d09002 100644 --- a/OsmAnd/src/net/osmand/plus/routing/RouteProvider.java +++ b/OsmAnd/src/net/osmand/plus/routing/RouteProvider.java @@ -428,24 +428,24 @@ public class RouteProvider { } - if(delta > 50 && delta < 310){ + if(delta > 45 && delta < 315){ - if(delta < 70){ + if(delta < 60){ type = TurnType.valueOf(TurnType.TSLL); description = getString(ctx, R.string.route_tsll); - } else if(delta < 110){ + } else if(delta < 120){ type = TurnType.valueOf(TurnType.TL); description = getString(ctx, R.string.route_tl); - } else if(delta < 135){ + } else if(delta < 150){ type = TurnType.valueOf(TurnType.TSHL); description = getString(ctx, R.string.route_tshl); - } else if(delta < 225){ + } else if(delta < 210){ type = TurnType.valueOf(TurnType.TU); description = getString(ctx, R.string.route_tu); - } else if(delta < 250){ + } else if(delta < 240){ description = getString(ctx, R.string.route_tshr); type = TurnType.valueOf(TurnType.TSHR); - } else if(delta < 290){ + } else if(delta < 300){ description = getString(ctx, R.string.route_tr); type = TurnType.valueOf(TurnType.TR); } else {