Calculates the as-the-crow-flies distance between two nodes.
Syntax: DistanceBetweenNodes(node1,node2: integer): double