congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
FootFlagEncoder.getTurnCost
Code IndexAdd Tabnine to your IDE (free)

How to use
getTurnCost
method
in
com.graphhopper.routing.util.FootFlagEncoder

Best Java code snippets using com.graphhopper.routing.util.FootFlagEncoder.getTurnCost (Showing top 1 results out of 315)

origin: graphhopper/graphhopper

@Test
public void testTurnFlagEncoding_noCostsAndRestrictions() {
  long flags_r0 = footEncoder.getTurnFlags(true, 0);
  long flags_0 = footEncoder.getTurnFlags(false, 0);
  long flags_r20 = footEncoder.getTurnFlags(true, 20);
  long flags_20 = footEncoder.getTurnFlags(false, 20);
  assertEquals(0, footEncoder.getTurnCost(flags_r0), 1e-1);
  assertEquals(0, footEncoder.getTurnCost(flags_0), 1e-1);
  assertEquals(0, footEncoder.getTurnCost(flags_r20), 1e-1);
  assertEquals(0, footEncoder.getTurnCost(flags_20), 1e-1);
  assertFalse(footEncoder.isTurnRestricted(flags_r0));
  assertFalse(footEncoder.isTurnRestricted(flags_0));
  assertFalse(footEncoder.isTurnRestricted(flags_r20));
  assertFalse(footEncoder.isTurnRestricted(flags_20));
}
com.graphhopper.routing.utilFootFlagEncodergetTurnCost

Javadoc

Foot flag encoder does not provide any turn cost / restrictions

Popular methods of FootFlagEncoder

  • <init>
  • getMaxSpeed
  • handlePriority
  • setBlockByDefault
  • setBlockFords
  • collect
  • getFerrySpeed
  • isAccept
  • isBlockFords
  • isFerry
  • setBool
  • setSpeed
  • setBool,
  • setSpeed,
  • supports,
  • getConditionalTagInspector,
  • init,
  • acceptWay,
  • flagsDefault,
  • getReverseSpeed,
  • getSpeed

Popular in Java

  • Reading from database using SQL prepared statement
  • putExtra (Intent)
  • setScale (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JPanel (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now