diff --git a/OsmAnd/src/net/osmand/plus/helpers/WaypointHelper.java b/OsmAnd/src/net/osmand/plus/helpers/WaypointHelper.java index 8d4fc5ddd3..b010925978 100644 --- a/OsmAnd/src/net/osmand/plus/helpers/WaypointHelper.java +++ b/OsmAnd/src/net/osmand/plus/helpers/WaypointHelper.java @@ -265,7 +265,7 @@ public class WaypointHelper { boolean direction = true; if (loc.hasBearing()) { double diff = MapUtils.alignAngleDifference(ro.directionRoute(0, true) - - loc.getBearing() / 180f * Math.PI)); + loc.getBearing() / 180f * Math.PI); direction = Math.abs(diff) < Math.PI /2f; } float mxspeed = ro.getMaximumSpeed(direction); diff --git a/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java b/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java index a8e860d5ab..6a02cb79be 100644 --- a/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java +++ b/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java @@ -394,7 +394,7 @@ public class RouteInfoWidgetsFactory { Location loc = locationProvider.getLastKnownLocation(); if(loc != null && loc.hasBearing()) { double diff = MapUtils.alignAngleDifference(ro.directionRoute(0, true) - - loc.getBearing() / 180f * Math.PI)); + loc.getBearing() / 180f * Math.PI); direction = Math.abs(diff) < Math.PI / 2f; } mx = ro.getMaximumSpeed(direction);