*/
public List<Position> calculateRoute(List<MapNode> locs, OsmMap mapData,
int waySelection) {
List<Position> result = new ArrayList<Position>();
try {
MapWayFilter wayFilter = createMapWayFilter(mapData, waySelection);
boolean ignoreOneways = (waySelection == 0);
MapNode fromRNode = mapData.getNearestWayNode(new Position(locs
.get(0)), wayFilter);
result.add(new Position(fromRNode.getLat(), fromRNode.getLon()));
for (int i = 1; i < locs.size()