Skip to content

Commit

Permalink
Update python/cuspatial/cuspatial/core/spatial/distance.py
Browse files Browse the repository at this point in the history
Co-authored-by: jakirkham <jakirkham@gmail.com>
  • Loading branch information
taureandyernv and jakirkham authored Aug 14, 2023
1 parent 22d6ed8 commit fecb174
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/cuspatial/cuspatial/core/spatial/distance.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ def haversine_distance(p1: GeoSeries, p2: GeoSeries):
>>> # Create Comparator cuSpatial GeoSeries from a comparator point
>>> df['compare_lat'] = 2.0
>>> df['compare_lng'] = 2.0
>>> atlGeoSeries = cuspatial.GeoSeries.from_points_xy(df[['compare_lat', 'compare_lng']].interleave_columns())
>>> atlGeoSeries = cuspatial.GeoSeries.from_points_xy(
... df[['compare_lat', 'compare_lng']].interleave_columns()
... )
>>> # Calculate Haversine Distance of cuDF dataframe to comparator point
>>> df['compare_dist'] = cuspatial.haversine_distance(cuGeoSeries,
Expand Down

0 comments on commit fecb174

Please sign in to comment.