Class PrepareEncoder

java.lang.Object
com.graphhopper.routing.ch.PrepareEncoder

public class PrepareEncoder extends Object
The flags are stored differently for shortcuts: just one weight and the two direction bits which is handled by this class for now as static methods.
Author:
Peter Karich
  • Constructor Details

    • PrepareEncoder

      public PrepareEncoder()
  • Method Details

    • getScDirMask

      public static int getScDirMask()
      A bitmask for two directions
    • getScFwdDir

      public static int getScFwdDir()
      The bit for forward direction
    • getScBwdDir

      public static int getScBwdDir()
      The bit for backward direction