navigation fixed
This commit is contained in:
parent
c99f7d5b0e
commit
69ab36293e
2 changed files with 5 additions and 1 deletions
|
@ -328,7 +328,7 @@ public class RouteSegmentResult implements StringExternalizable<RouteDataBundle>
|
||||||
for (int i = 0; i < length; i++) {
|
for (int i = 0; i < length; i++) {
|
||||||
Location location = resources.getLocation(index);
|
Location location = resources.getLocation(index);
|
||||||
if (location == null) {
|
if (location == null) {
|
||||||
break;
|
continue;
|
||||||
}
|
}
|
||||||
double dist = 0;
|
double dist = 0;
|
||||||
if (prevLocation != null) {
|
if (prevLocation != null) {
|
||||||
|
|
|
@ -341,6 +341,10 @@ public class RouteCalculationResult {
|
||||||
LatLon point = s.getPoint(i);
|
LatLon point = s.getPoint(i);
|
||||||
n.setLatitude(point.getLatitude());
|
n.setLatitude(point.getLatitude());
|
||||||
n.setLongitude(point.getLongitude());
|
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) {
|
if (i == s.getEndPointIndex() && routeInd != list.size() - 1) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue