navigation fixed

This commit is contained in:
simon 2020-09-18 17:12:09 +03:00
parent c99f7d5b0e
commit 69ab36293e
2 changed files with 5 additions and 1 deletions

View file

@ -328,7 +328,7 @@ public class RouteSegmentResult implements StringExternalizable<RouteDataBundle>
for (int i = 0; i < length; i++) {
Location location = resources.getLocation(index);
if (location == null) {
break;
continue;
}
double dist = 0;
if (prevLocation != null) {

View file

@ -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;
}