---
metadata:
  - name: generator
    content: Diplodoc Platform v5.71.0
alternate:
  - https://www.yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/geometry.LineString.fromEncodedCoordinates.md
  - https://www.yandex.com/dev/jsapi-v2-1/doc/ru/v2-1/ref/reference/geometry.LineString.fromEncodedCoordinates.md
  - href: https://www.yandex.com/dev/jsapi-v2-1/doc/ru/v2-1/ref/reference/geometry.LineString.fromEncodedCoordinates.md
    type: text/markdown
    title: Markdown version
  - href: https://www.yandex.com/dev/jsapi-v2-1/doc/ru/llms.txt?revision=r22429633
    rel: describedby
---
> **Documentation capabilities:** Search, read sources, and browse this documentation: [agent guide](https://www.yandex.com/dev/jsapi-v2-1/doc/docs-api/agent/overview?project=common%2Fdev-jsapi-v2-1&lang=ru).

> **Documentation Index:** Fetch the complete configuration index at https://www.yandex.com/dev/jsapi-v2-1/doc/ru/llms.txt?revision=r22429633

# geometry.LineString.fromEncodedCoordinates

Статическая функция.

Создает геометрию [geometry.LineString](https://www.yandex.com/dev/jsapi-v2-1/doc/ru/v2-1/ref/reference/geometry.LineString.md) на основе строки закодированных в Base64 координат.

**Возвращает** геометрию.

```javascript
{ geometry.LineString } geometry.LineString.fromEncodedCoordinates(encodedCoordinates)
```

**Параметры:**

#|
|| **Параметр** | **Значение по умолчанию** | **Описание**  ||
|| [`encodedCoordinates`](#param-encodedCoordinates)[*](*star) | — | Тип: String

Закодированные в Base64 координаты вершин ломаной линии. ||
|#

\* Обязательный параметр/опция.

**Пример:**

```javascript
var base64Coords = "gMPJAYDw-gJAQg8AQEIPAEBCDwBAQg8A";
var geometry = ymaps.geometry.LineString.fromEncodedCoordinates(base64Coords);
var polyline = new ymaps.Polyline(geometry);
```

<!-- XLIFF_FARM_OTA5NmM5_CACHING -->

[*star]: Обязательный параметр.