suspect manager

This commit is contained in:
Arndt Brenschede 2018-03-07 19:32:54 +01:00
parent 45495d8692
commit c9593331bd
3 changed files with 384 additions and 0 deletions

View file

@ -112,6 +112,12 @@ public class RouteServer extends Thread
return;
}
}
else if ( url.startsWith( "/brouter/suspects" ) )
{
writeHttpHeader(bw, "text/html");
SuspectManager.process( url, bw );
return;
}
else
{
throw new IllegalArgumentException( "unknown request syntax: " + getline );
@ -119,6 +125,11 @@ public class RouteServer extends Thread
RoutingContext rc = handler.readRoutingContext();
List<OsmNodeNamed> wplist = handler.readWayPointList();
if ( wplist.size() < 10 )
{
NearRecentWps.add( wplist );
}
cr = new RoutingEngine( null, null, serviceContext.segmentDir, wplist, rc );
cr.quite = true;
cr.doRun( maxRunningTime );