Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
musurca committed Sep 21, 2020
1 parent e63e8de commit 59f5d9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distance.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def distance(a,b):
for dest in possibleDests:
dest['dist'] = distance(refSource,dest)
# sort by smallest -> largest distance and select smallest
possibleDests.sort(key=lambda e:e['dist'])
possibleDests.sort(key=db.sortKeyMinDist)
refDest = possibleDests[0]

srcLat = float(refSource['latitude_deg'])
Expand Down

0 comments on commit 59f5d9a

Please sign in to comment.