Package org.neo4j.gds.paths.astar
Class AStar.HaversineHeuristic
java.lang.Object
org.neo4j.gds.paths.astar.AStar.HaversineHeuristic
- All Implemented Interfaces:
LongToDoubleFunction
,Dijkstra.HeuristicFunction
- Enclosing class:
- AStar
-
Method Summary
Modifier and TypeMethodDescriptiondouble
applyAsDouble
(long source) static double
distance
(double sourceLatitude, double sourceLongitude, double targetLatitude, double targetLongitude)
-
Method Details
-
applyAsDouble
public double applyAsDouble(long source) - Specified by:
applyAsDouble
in interfaceLongToDoubleFunction
-
distance
public static double distance(double sourceLatitude, double sourceLongitude, double targetLatitude, double targetLongitude)
-