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

# geometry.LineString.fromEncodedCoordinates

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

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

**Returns** геометрию.

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

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

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

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

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

**Пример:**

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

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