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

# geometry.json.lineString

Extends [IGeometryJson](https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IGeometryJson.md).

An object describing the JSON representation of the "Polyline" geometry.

[Constructor](#constructor-summary) | [Fields](#properties-summary)

## Constructor {#constructor-summary}

```javascript
geometry.json.lineString()
```

**Example:**

```javascript
var geometryJson = {
    type: "LineString",
    coordinates: [[1, 2], [3, 5], [7, 11]]
};
```

## Fields {#properties-summary}

#|
|| **Name** | **Type** | **Description** ||
|| [coordinates](https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/geometry.json.lineString.md#coordinates) | Number[][]| Coordinates of a polyline. ||
|| [type](https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/geometry.json.lineString.md#type) | String| Identifier of the "Polyline" geometry type. Must always take the value "LineString". ||
|#

## Fields details {#field_detail}

### coordinates {#coordinates}

```javascript
{Number[][]} coordinates
```

Coordinates of a polyline.

### type {#type}

```javascript
{String} type
```

Identifier of the "Polyline" geometry type. Must always take the value "LineString".
