aboutsummaryrefslogtreecommitdiff
path: root/hdist.py
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-04-29 16:01:13 -0400
committerAlex Auvolat <alex.auvolat@ens.fr>2015-04-29 16:01:13 -0400
commit7604b28ff6e8293af383ae7328ea2285b3c9bba5 (patch)
treebc4084ad093f3f3cd3a327736eebab96414aa2cf /hdist.py
parentf768d3e770216d4227ffd989cf98f1628fc476a3 (diff)
downloadtaxi-7604b28ff6e8293af383ae7328ea2285b3c9bba5.tar.gz
taxi-7604b28ff6e8293af383ae7328ea2285b3c9bba5.zip
Debug.
Diffstat (limited to 'hdist.py')
-rw-r--r--hdist.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/hdist.py b/hdist.py
index d5d7aec..3f62eb3 100644
--- a/hdist.py
+++ b/hdist.py
@@ -12,10 +12,10 @@ def hdist(a, b):
rearth = const(6371)
deg2rad = const(3.141592653589793 / 180)
- lat1 = a[:, 1] * deg2rad
- lon1 = a[:, 0] * deg2rad
- lat2 = b[:, 1] * deg2rad
- lon2 = b[:, 0] * deg2rad
+ lat1 = a[:, 0] * deg2rad
+ lon1 = a[:, 1] * deg2rad
+ lat2 = b[:, 0] * deg2rad
+ lon2 = b[:, 1] * deg2rad
dlat = abs(lat1-lat2)
dlon = abs(lon1-lon2)