From 69ab36293e96b34a51348e5b83341214b85bd084 Mon Sep 17 00:00:00 2001 From: simon Date: Fri, 18 Sep 2020 17:12:09 +0300 Subject: [PATCH] navigation fixed --- .../src/main/java/net/osmand/router/RouteSegmentResult.java | 2 +- .../src/net/osmand/plus/routing/RouteCalculationResult.java | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/OsmAnd-java/src/main/java/net/osmand/router/RouteSegmentResult.java b/OsmAnd-java/src/main/java/net/osmand/router/RouteSegmentResult.java index 2aad93fd77..089de43fcd 100644 --- a/OsmAnd-java/src/main/java/net/osmand/router/RouteSegmentResult.java +++ b/OsmAnd-java/src/main/java/net/osmand/router/RouteSegmentResult.java @@ -328,7 +328,7 @@ public class RouteSegmentResult implements StringExternalizable for (int i = 0; i < length; i++) { Location location = resources.getLocation(index); if (location == null) { - break; + continue; } double dist = 0; if (prevLocation != null) { diff --git a/OsmAnd/src/net/osmand/plus/routing/RouteCalculationResult.java b/OsmAnd/src/net/osmand/plus/routing/RouteCalculationResult.java index 0dbbbb931b..2326bbaf4a 100644 --- a/OsmAnd/src/net/osmand/plus/routing/RouteCalculationResult.java +++ b/OsmAnd/src/net/osmand/plus/routing/RouteCalculationResult.java @@ -341,6 +341,10 @@ public class RouteCalculationResult { LatLon point = s.getPoint(i); n.setLatitude(point.getLatitude()); n.setLongitude(point.getLongitude()); + //FIXME: investigate gpx file + if (s.getObject().getPoint31XTile(i) == 0 && s.getObject().getPoint31YTile(i) == 0){ + break; + } if (i == s.getEndPointIndex() && routeInd != list.size() - 1) { break; }