Skip to content

Commit c5e603a

Browse files
Fix sphinx/build_docs warnings for geodesy (TheAlgorithms#12462)
* updating DIRECTORY.md * Fix sphinx/build_docs warnings for geodesy/haversine_distance.py * Improve --------- Co-authored-by: MaximSmolskiy <MaximSmolskiy@users.noreply.github.com>
1 parent 47cd21a commit c5e603a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

geodesy/haversine_distance.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ def haversine_distance(lat1: float, lon1: float, lat2: float, lon2: float) -> fl
2121
computation like Haversine can be handy for shorter range distances.
2222
2323
Args:
24-
lat1, lon1: latitude and longitude of coordinate 1
25-
lat2, lon2: latitude and longitude of coordinate 2
24+
* `lat1`, `lon1`: latitude and longitude of coordinate 1
25+
* `lat2`, `lon2`: latitude and longitude of coordinate 2
2626
Returns:
2727
geographical distance between two points in metres
28+
2829
>>> from collections import namedtuple
2930
>>> point_2d = namedtuple("point_2d", "lat lon")
3031
>>> SAN_FRANCISCO = point_2d(37.774856, -122.424227)

0 commit comments

Comments
 (0)