---
metadata:
  - name: generator
    content: Diplodoc Platform v5.39.1
alternate:
  - https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/geometry.LineString.toEncodedCoordinates.md
  - https://yandex.ru/dev/jsapi-v2-1/doc/ru/v2-1/ref/reference/geometry.LineString.toEncodedCoordinates.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.ru/dev/jsapi-v2-1/doc/en/llms.txt

# geometry.LineString.toEncodedCoordinates

Static function.

**Returns** a string of Base64-encoded coordinates for the object defined for the geometry.

```javascript
{ String } geometry.LineString.toEncodedCoordinates(geometry)
```

**Parameters:**

#|
|| **Parameter** | **Default value** | **Description**  ||
|| [`geometry`](#param-geometry)[*](*star) | — | Type: [geometry.LineString](https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/geometry.LineString.md)

Geometry. ||
|#

\* Mandatory parameter/option.

[*star]: Mandatory parameter/option.