From 0fd3dedceba83647b14d8f2e87973bb57713c323 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Mon, 8 Jun 2020 17:21:09 +0200 Subject: [PATCH] Fix https://github.com/osmandapp/Osmand/issues/7456 --- .../src/main/java/net/osmand/router/RoutePlannerFrontEnd.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd-java/src/main/java/net/osmand/router/RoutePlannerFrontEnd.java b/OsmAnd-java/src/main/java/net/osmand/router/RoutePlannerFrontEnd.java index 66d5d009ad..6dd110fc22 100644 --- a/OsmAnd-java/src/main/java/net/osmand/router/RoutePlannerFrontEnd.java +++ b/OsmAnd-java/src/main/java/net/osmand/router/RoutePlannerFrontEnd.java @@ -91,7 +91,7 @@ public class RoutePlannerFrontEnd { } if (road != null) { if(!transportStop) { - float prio = ctx.getRouter().defineSpeedPriority(road.road); + float prio = Math.max(ctx.getRouter().defineSpeedPriority(road.road), 0.3f); if (prio > 0) { road.distSquare = (road.distSquare + GPS_POSSIBLE_ERROR * GPS_POSSIBLE_ERROR) / (prio * prio);