---
title: getStoreysByElevation
slug: viewer-2d/methods/getStoreysByElevation
docTags: 
createdAt: 2024-02-21T14:33:53.989Z
---

Returns a list of storeys containing the closest storey that is below the provided elevation from each loaded model.

## Usage

```javascript
const elevation = 1.0;

const storeys = viewer2d.getStoreysByElevation(elevation);
```

## Parameters

### elevation

Elevation in meters.

| **Type** | **Required** |
| -------- | ------------ |
| Number   | Yes          |

## Return Value

List of storeys.

| **Type**                                       |
| ---------------------------------------------- |
| Array\[[Storey](docId\:aHKrYEVRXewGgDDVv9pWM)] |

### Example

```javascript
[
  {
    id: "398046372938",
    buildingId: "0.rp9o1j5sjl",
    guid: "3eM8WbY_53JJ6TDWs3wwJP",
    name: "First Floor",
    modelId: "0.vo5td4irto",
    elevation: 1.0
  }
];
```

