Package org.opentripplanner.routing.util

Examples of org.opentripplanner.routing.util.SlopeCosts


                new Coordinate(length, 0) // slope = -0.1
        };
        PackedCoordinateSequence elev = new PackedCoordinateSequence.Double(profile);
        testStreet.setElevationProfile(elev, false);

        SlopeCosts costs = ElevationUtils.getSlopeCosts(elev, true);
        double trueLength = costs.lengthMultiplier * length;
        double slopeWorkLength = testStreet.getSlopeWorkCostEffectiveLength();
        double slopeSpeedLength = testStreet.getSlopeSpeedEffectiveLength();

        RoutingRequest options = new RoutingRequest(TraverseMode.BICYCLE);
View Full Code Here


        }
        if (super.isSlopeOverride() && !computed) {
            return false;
        }
        boolean slopeLimit = getPermission().allows(StreetTraversalPermission.CAR);
        SlopeCosts costs = ElevationUtils.getSlopeCosts(elev, slopeLimit);

        packedElevationProfile = CompactElevationProfile.compactElevationProfile(elev);
        slopeSpeedFactor = (float)costs.slopeSpeedFactor;
        slopeWorkFactor = (float)costs.slopeWorkFactor;
        maxSlope = (float)costs.maxSlope;
View Full Code Here

TOP

Related Classes of org.opentripplanner.routing.util.SlopeCosts

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.