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

# geometry.Polygon.fromEncodedCoordinates

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

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

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

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

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

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

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

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

**Пример:**

```javascript
var base64Coords = "AAAAAAAAAAAAAAAAQEtMAEBLTAAAAAAAAAAAAMC0s__AtLP_AAAAAA==;QEIPAEBCDwAAAAAAQEIPAEBCDwAAAAAAAAAAAMC98P_AvfD_AAAAAA==",
    geometry = ymaps.geometry.Polygon.fromEncodedCoordinates(base64Coords);
    polygon = new ymaps.Polygon(geometry);
```

<!-- XLIFF_FARM_NjA4OTMy_CACHING -->

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