jiayuasu commented on code in PR #2732:
URL: https://github.com/apache/sedona/pull/2732#discussion_r2929309188


##########
python/sedona/spark/geopandas/base.py:
##########
@@ -2363,6 +2363,263 @@ def distance(self, other, align=None):
         """
         return _delegate_to_geometry_column("distance", self, other, align)
 
+    def frechet_distance(self, other, align=None, densify=None):
+        """Returns a ``Series`` containing the discrete Fréchet distance to 
aligned `other`.
+
+        The Fréchet distance is a measure of similarity: it is the greatest 
distance
+        between any point in A and the closest point in B. The discrete 
distance is an
+        approximation of this metric: only vertices are considered. The 
parameter
+        ``densify`` makes this approximation less coarse by splitting the line 
segments
+        between vertices before computing the distance.
+

Review Comment:
   This text is copied verbatim from geopandas' own docstring for 
`frechet_distance`. Keeping it consistent with upstream.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to