Package slash.navigation.routing

Examples of slash.navigation.routing.RoutingResult


        for (int i = 0; i < selectedPositions.size(); i++) {
            // skip the very last position without successor
            if (i == r.getPositionsModel().getRowCount() - 1 || i == selectedPositions.size() - 1)
                continue;

            RoutingResult result = routingService.getRouteBetween(selectedPositions.get(i), selectedPositions.get(i + 1), travelMode);
            if (result != null) {
                List<BaseNavigationPosition> positions = new ArrayList<BaseNavigationPosition>();
                for (NavigationPosition position : result.getPositions()) {
                    positions.add(r.getPositionsModel().getRoute().createPosition(position.getLongitude(), position.getLatitude(), position.getElevation(), null, null, null));
                }
                int insertRow = r.getPositionsModel().getIndex(selectedPositions.get(i)) + 1;
                r.getPositionsModel().add(insertRow, positions);
View Full Code Here

TOP

Related Classes of slash.navigation.routing.RoutingResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.