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

# multiRouter.pedestrian.SegmentModel

{% note info %}

The constructor of the multiRouter.pedestrian.SegmentModel class is hidden, as this class is not intended for autonomous initialization.

{% endnote %}

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

A data model of a pedestrian route segment.

[Fields](#properties-summary) | [Events](#events-summary) | [Methods](#methods-summary)

Creates a data model of a pedestrian route segment.

## Fields {#properties-summary}

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

Inherited from [IEventEmitter](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IEventEmitter.md#events). ||
|| [geometry](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/multiRouter.pedestrian.SegmentModel.md#geometry) | [geometry.base.LineString](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/geometry.base.LineString.md) | Geometry of a segment. ||
|| [path](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/multiRouter.pedestrian.SegmentModel.md#path) | [multiRouter.pedestrian.PathModel](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/multiRouter.pedestrian.PathModel.md) | Reference to the parent model of the path. ||
|| [properties](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/multiRouter.pedestrian.SegmentModel.md#properties) | [data.Manager](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/data.Manager.md) | Segment data. The following fields are available: 
- index: Integer - The ordinal number of the segment in the array of segments 	of the corresponding route path.
- type: String - Segment type identifier, which takes the value "pedestrian" 	for pedestrian segments.
- text: String - Text description of the segment.
- distance: Object - An object with the "text" and "value" fields that specifies the length 	of the segment in meters.
- duration: Object - An object with the "text" and "value" fields that describes the travel time 	of the segment in seconds.
- lodIndex: Integer - The ordinal number of the first throughpoint of the segment 	in the full set of coordinates of the corresponding route path. ||
|#

## Events {#events-summary}

#|
|| **Name** | **Description** ||
|| [update](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/multiRouter.pedestrian.SegmentModel.md#event-update) | Updating the model with new data. Instance of the [Event](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/Event.md) class. ||
|#

## Methods {#methods-summary}

#|
|| **Name** | **Returns** | **Description** ||
|| [destroy](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/multiRouter.pedestrian.SegmentModel.md#destroy)() | | Destroys a model. ||
|| [getType](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/multiRouter.pedestrian.SegmentModel.md#getType)() | String | Returns ID of the segment type. For walking segments of pedestrian routes, returns the string "pedestrian". ||
|#

## Fields details {#field_detail}

### geometry {#geometry}

```javascript
{geometry.base.LineString} geometry
```

Geometry of a segment.

### path {#path}

```javascript
{multiRouter.pedestrian.PathModel} path
```

Reference to the parent model of the path.

### properties {#properties}

```javascript
{data.Manager} properties
```

Segment data. The following fields are available: 
- index: Integer - The ordinal number of the segment in the array of segments 	of the corresponding route path.
- type: String - Segment type identifier, which takes the value "pedestrian" 	for pedestrian segments.
- text: String - Text description of the segment.
- distance: Object - An object with the "text" and "value" fields that specifies the length 	of the segment in meters.
- duration: Object - An object with the "text" and "value" fields that describes the travel time 	of the segment in seconds.
- lodIndex: Integer - The ordinal number of the first throughpoint of the segment 	in the full set of coordinates of the corresponding route path.

## Events details {#event_detail}

### update {#update}

Updating the model with new data. Instance of the [Event](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/Event.md) class.

## Methods details {#method_detail}

### destroy {#destroy}

```javascript
{} destroy()
```

Destroys a model.

### getType {#getType}

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

**Returns** ID of the segment type. For walking segments of pedestrian routes, returns the string "pedestrian".
