protect against start way logic
This commit is contained in:
parent
6f83e2e9c4
commit
068eda48ad
@ -172,10 +172,15 @@ public final class RoutingContext {
|
||||
useDynamicDistance = expctxGlobal.getVariableValue("use_dynamic_range", 0f) == 1f;
|
||||
|
||||
boolean test = expctxGlobal.getVariableValue("check_start_way", 1f) == 1f;
|
||||
if (!test) expctxGlobal.freeNoWays();
|
||||
if (!test) freeNoWays();
|
||||
|
||||
}
|
||||
|
||||
public void freeNoWays() {
|
||||
BExpressionContext expctxGlobal = expctxWay;
|
||||
if (expctxGlobal != null) expctxGlobal.freeNoWays();
|
||||
}
|
||||
|
||||
public List<OsmNodeNamed> poipoints;
|
||||
|
||||
public List<OsmNodeNamed> nogopoints = null;
|
||||
|
||||
@ -327,6 +327,8 @@ public class RoutingEngine extends Thread {
|
||||
try {
|
||||
startTime = System.currentTimeMillis();
|
||||
|
||||
routingContext.freeNoWays();
|
||||
|
||||
MatchedWaypoint wpt1 = new MatchedWaypoint();
|
||||
wpt1.waypoint = waypoints.get(0);
|
||||
wpt1.name = "wpt_info";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user