Interface TurnCostProvider

All Known Implementing Classes:
DefaultTurnCostProvider

public interface TurnCostProvider
Implementations of this interface define how turn costs and turn times are calculated.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final TurnCostProvider
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    calcTurnMillis(int inEdge, int viaNode, int outEdge)
     
    double
    calcTurnWeight(int inEdge, int viaNode, int outEdge)
     
  • Field Details

  • Method Details

    • calcTurnWeight

      double calcTurnWeight(int inEdge, int viaNode, int outEdge)
      Returns:
      the turn weight of a transitions from the edge with id to the edge with id at the node with id
    • calcTurnMillis

      long calcTurnMillis(int inEdge, int viaNode, int outEdge)
      Returns:
      the time it takes to take a turn in milli-seconds
      See Also: