com.graphhopper.routing.util

Class TurnCostEncoder.NoTurnCostsEncoder

  • All Implemented Interfaces:
    TurnCostEncoder
    Enclosing interface:
    TurnCostEncoder


    public static class TurnCostEncoder.NoTurnCostsEncoderextends Objectimplements TurnCostEncoder
    whether turn costs nor turn restrictions will be encoded by this encoder, should be used for pedestrians
    • Constructor Detail

      • NoTurnCostsEncoder

        public NoTurnCostsEncoder()
    • Method Detail

      • isTurnRestricted

        public boolean isTurnRestricted(long flags)
        Specified by:
        isTurnRestricted in interface TurnCostEncoder
        Returns:
        true, if the turn restriction is encoded in the specified flags
      • getTurnCost

        public double getTurnCost(long flags)
        Specified by:
        getTurnCost in interface TurnCostEncoder
        Returns:
        the costs encoded in the specified flag, if restricted it will be Double.POSITIVE_INFINITY
      • getTurnFlags

        public long getTurnFlags(boolean restriction,                         double costs)
        Specified by:
        getTurnFlags in interface TurnCostEncoder
        Parameters:
        restriction - true if restricted turn, equivalent to specifying of costs Double.POSITIVE_INFINITY
        costs - the turn costs, specify 0 or Double.POSITIVE_INFINITY if restricted == true. Only used if restricted == false.
        Returns:
        the encoded flags

Copyright © 2012–2016. All rights reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14