Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Fix distance function doc string
Browse files Browse the repository at this point in the history
  • Loading branch information
arcrose committed Oct 15, 2019
1 parent 6cfb4d3 commit ddba691
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alerts/geomodel/locality.py
Expand Up @@ -235,8 +235,8 @@ def remove_outdated(state: State, days_valid: int) -> Update:


def distance(loc1: Coordinates, loc2: Coordinates) -> float:
'''Compute the distance between two localities, returning the geographical
distance in kilometres (KM).
'''Compute the distance between two points on the Earth, returning the
geographical distance in kilometres (KM).
'''

lat1 = math.radians(loc1.latitude)
Expand Down

0 comments on commit ddba691

Please sign in to comment.