double heuristic(PointNode n1, PointNode n2)

Returns the heuristic distance estimate between n1 and n2.

Source

double heuristic(PointNode n1, PointNode n2) {
  return n1.location.distanceTo(n2.location);
}