> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wherobots.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GeoDataFrame.offset_curve

> Returns a line at a given offset distance from each linear geometry.

Returns a line at a given offset distance from each linear geometry.

Positive distance offsets to the left, negative to the right.

## Signature

```python theme={"system"}
offset_curve(distance, quad_segs=8, join_style='round', mitre_limit=5.0)
```

## Parameters

<ParamField path="distance" type="float" required>
  The offset distance. Positive offsets to the left, negative to the
  right.
</ParamField>

<ParamField path="quad_segs" type="int" default="8">
  Number of segments to approximate a quarter circle.
</ParamField>

<ParamField path="join_style" type="str" default="'round'">
  Accepted values are "round", "mitre", and "bevel".

  <Note>
    `join_style` and `mitre_limit` are accepted for API compatibility but are currently ignored by Sedona's `ST_OffsetCurve`.
  </Note>
</ParamField>

<ParamField path="mitre_limit" type="float" default="5.0">
  Limit on the mitre ratio.
</ParamField>

## Returns

<ResponseField name="return" type="GeoSeries" />

## Examples

```python theme={"system"}
>>> from sedona.spark.geopandas import GeoSeries
>>> from shapely.geometry import LineString
>>> s = GeoSeries(
...     [
...         LineString([(0, 0), (10, 0)]),
...     ]
... )
>>> s.offset_curve(1.0)
0    LINESTRING (0 1, 10 1)
dtype: geometry
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.