Skip to content

Commit

Permalink
Add example expected result
Browse files Browse the repository at this point in the history
Co-authored-by: Leonardo Uieda <[email protected]>
  • Loading branch information
santisoler and leouieda authored Jul 10, 2020
1 parent b58b258 commit 804d203
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion harmonica/forward/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,9 @@ def distance_geodetic(point_p, point_q, ellipsoid):
>>> ellipsoid = bl.WGS84
>>> point_p = (-72.3, -33.3, 644)
>>> point_q = (-70.1, -31.6, 1024)
>>> distance_geodetic(point_p, point_q, ellipsoid)
>>> distance = distance_geodetic(point_p, point_q, ellipsoid)
>>> print("{:.2f} m".format(distance))
279878.84 m
"""
# Get coordinates of the two points
Expand Down

0 comments on commit 804d203

Please sign in to comment.