HeuristicFunction hf = createHeuristicFunction(toRNode,
waySelection);
Problem problem = createProblem(fromRNode, toRNode, mapData,
wayFilter, ignoreOneways, waySelection);
Search search = new AStarSearch(new GraphSearch(), hf);
List<Action> actions = search.search(problem);
if (actions.isEmpty())
break;
for (Object action : actions) {
if (action instanceof OsmMoveAction) {
OsmMoveAction a = (OsmMoveAction) action;