Skip to main content
Returns the shortest line between each geometry in the GeoSeries and other. The resulting line starts on this geometry and ends on other. The operation works on a 1-to-1 row-wise manner:

Signature

Parameters

GeoSeries or geometric object
required
The GeoSeries (elementwise) or geometric object to find the shortest line to.
bool | None (default None)
default:"None"
If True, automatically aligns GeoSeries based on their indices. None defaults to True. If False, the order of elements is preserved.

Returns

GeoSeries

Examples