---
metadata:
  - name: generator
    content: Diplodoc Platform v5.71.0
alternate:
  - https://www.yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IBaseGeometry.md
  - https://www.yandex.com/dev/jsapi-v2-1/doc/ru/v2-1/ref/reference/IBaseGeometry.md
  - href: https://www.yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IBaseGeometry.md
    type: text/markdown
    title: Markdown version
  - href: https://www.yandex.com/dev/jsapi-v2-1/doc/en/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=en).

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

# IBaseGeometry

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

Interface of a basic geometry.

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

## Constructor {#constructor-summary}

```javascript
IBaseGeometry()
```

## Fields {#properties-summary}

#|
|| **Name** | **Type** | **Description** ||
|| [events](https://www.yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IEventEmitter.md#events) | [IEventManager](https://www.yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IEventManager.md) | Event manager.

Inherited from [IEventEmitter](https://www.yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IEventEmitter.md#events). ||
|#

## Methods {#methods-summary}

#|
|| **Name** | **Returns** | **Description** ||
|| [getBounds](https://www.yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IBaseGeometry.md#getBounds)() | Number[][]\|null | Returns coordinates of the two opposite corners of the area that surrounds the geometry. The first item in the array is the corner with the smallest coordinate values relative to the rest of the points in the area; the second item is the corner with the largest coordinate values. ||
|| [getType](https://www.yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IBaseGeometry.md#getType)() | String | Returns ID of the geometry type.||
|#

## Methods details {#method_detail}

### getBounds {#getBounds}

```javascript
{Number[][]|null} getBounds()
```

**Returns** coordinates of the two opposite corners of the area that surrounds the geometry. The first item in the array is the corner with the smallest coordinate values relative to the rest of the points in the area; the second item is the corner with the largest coordinate values.

### getType {#getType}

```javascript
{String} getType()
```

**Returns** ID of the geometry type.