Class FiniteWeightFilter

java.lang.Object
com.graphhopper.routing.util.FiniteWeightFilter
All Implemented Interfaces:
EdgeFilter

public class FiniteWeightFilter extends Object implements EdgeFilter
An EdgeFilter that only accepts edges with finite weight (in either direction)
  • Constructor Details

    • FiniteWeightFilter

      public FiniteWeightFilter(Weighting weighting)
  • Method Details

    • accept

      public final boolean accept(EdgeIteratorState edgeState)
      Specified by:
      accept in interface EdgeFilter
      Returns:
      true if the current edge should be processed and false otherwise.