Fix #5003
This commit is contained in:
parent
fcb248e550
commit
7312a4f3a0
2 changed files with 16 additions and 0 deletions
|
@ -237,6 +237,7 @@ public class RouteDataObject {
|
|||
return null;
|
||||
}
|
||||
|
||||
|
||||
public String getName(String lang){
|
||||
return getName(lang, false);
|
||||
}
|
||||
|
@ -685,6 +686,18 @@ public class RouteDataObject {
|
|||
return direction;
|
||||
}
|
||||
|
||||
public boolean isRoadDeleted() {
|
||||
int[] pt = getTypes();
|
||||
int sz = pt.length;
|
||||
for (int i = 0; i < sz; i++) {
|
||||
RouteTypeRule r = region.quickGetEncodingRule(pt[i]);
|
||||
if ("osmand_change".equals(r.getTag()) && "delete".equals(r.getValue())) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean isStopApplicable(boolean direction, int intId, int startPointInd, int endPointInd) {
|
||||
int[] pt = getPointTypes(intId);
|
||||
int sz = pt.length;
|
||||
|
|
|
@ -71,6 +71,9 @@ public class RouteSegmentResult {
|
|||
}
|
||||
|
||||
public void attachRoute(int roadIndex, RouteSegmentResult r){
|
||||
if(r.getObject().isRoadDeleted()) {
|
||||
return;
|
||||
}
|
||||
int st = Math.abs(roadIndex - startPointIndex);
|
||||
if(attachedRoutes[st] == null) {
|
||||
attachedRoutes[st] = new ArrayList<RouteSegmentResult>();
|
||||
|
|
Loading…
Reference in a new issue