Skip to content

Commit 54c5504

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 0bbe184 commit 54c5504

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

haversine_calculation/haversine.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33

44
def haversine(lat1: float, lon1: float, lat2: float, lon2: float) -> float:
55
"""
6-
Calculate the great circle distance in kilometers between two points
6+
Calculate the great circle distance in kilometers between two points
77
on the earth (specified in decimal degrees)
8-
8+
99
Args:
1010
lat1 (float): Latitude of the first point in decimal degrees
1111
lon1 (float): Longitude of the first point in decimal degrees
1212
lat2 (float): Latitude of the second point in decimal degrees
1313
lon2 (float): Longitude of the second point in decimal degrees
14-
14+
1515
Returns:
1616
float: Distance between the two points in kilometers
17-
17+
1818
Examples:
1919
>>> round(haversine(40.7128, -74.0060, 51.5074, -0.1278), 2)
2020
5570.22

0 commit comments

Comments
 (0)