Class AStar.HaversineHeuristic

java.lang.Object
org.neo4j.gds.paths.astar.AStar.HaversineHeuristic
All Implemented Interfaces:
LongToDoubleFunction, Dijkstra.HeuristicFunction
Enclosing class:
AStar

public static class AStar.HaversineHeuristic extends Object implements Dijkstra.HeuristicFunction
  • Method Details

    • applyAsDouble

      public double applyAsDouble(long source)
      Specified by:
      applyAsDouble in interface LongToDoubleFunction
    • distance

      public static double distance(double sourceLatitude, double sourceLongitude, double targetLatitude, double targetLongitude)