Skip to content

Get a floor

GET
/{resource}/data/floors/{id}
curl --request GET \
--url https://example.com/v1/example/data/floors/example \
--header 'Authorization: Bearer <token>'

With Accept: application/geo+json, returns IMDF features: floors as levels, outlined by their walkable area. IMDF positions are worked out from the space’s georeference, so these need one.

resource
required
string
/^\d+$/

The project ID of the space

id
required
string
>= 1 characters <= 256 characters

The floor’s id

The floor

A floor of the space. Floors are worked out from the scan each time the navigation mesh is generated. A floor found at about the same height as before keeps its id, title and ordinal; any others are removed or added.

object
id
required

Identifies the floor. Equal to its key in the space’s floors.

string
name
required

The floor’s number, counting up from 0 for the lowest. Visitors see “Floor ” unless the floor has a title.

string
title

The floor’s name as visitors see it, e.g. “Ground floor”, in place of its number.

object
value
required

The text in the language given by locale. Also shown when there’s no variant for the viewer’s language.

string
locale
required

The language value is written in, as a BCP 47 tag - a base language such as en, or a regional one such as en-GB.

string
variants

Translations of value, keyed by BCP 47 language tag. A viewer sees the variant for their exact language (e.g. en-GB), then the one for its base language (e.g. en), then value.

object
key
additional properties
string
y
required

The height of the floor’s walkable surface, in metres. A point belongs to the highest floor whose y is no more than 0.5m above it.

number
ordinal

The floor’s level relative to the floor with ground-level access, which is 0: 1 is the floor above it, -1 the one below. Defaults to the floor’s position counting up from the lowest, which is right unless the space has floors below ground level.

integer
>= -9007199254740991 <= 9007199254740991
height
required

How far the floor extends above y, in metres - up to just below the next floor. Used to decide what’s shown when viewing one floor at a time.

number

Example

{
"name": "0",
"title": "Reception",
"ordinal": 0
}

The token is missing or invalid.

Media typeapplication/json
object
error
required

A description of the error

string
code
required

A stable identifier for the kind of error

string
issues

For invalidBody: what failed validation, and where

Array<object>
object

Example generated

{
"error": "example",
"code": "example",
"issues": [
{}
]
}

The token has no access to this space.

Media typeapplication/json
object
error
required

A description of the error

string
code
required

A stable identifier for the kind of error

string
issues

For invalidBody: what failed validation, and where

Array<object>
object

Example generated

{
"error": "example",
"code": "example",
"issues": [
{}
]
}

No item has this id.

Media typeapplication/json
object
error
required

A description of the error

string
code
required

A stable identifier for the kind of error

string
issues

For invalidBody: what failed validation, and where

Array<object>
object

Example generated

{
"error": "example",
"code": "example",
"issues": [
{}
]
}

The item has no IMDF equivalent.

Media typeapplication/json
object
error
required

A description of the error

string
code
required

A stable identifier for the kind of error

string
issues

For invalidBody: what failed validation, and where

Array<object>
object

Example generated

{
"error": "example",
"code": "example",
"issues": [
{}
]
}

An item with this id already exists or the space is being duplicated - or, for IMDF, the space has no georeference or floors (noGeoreference, noFloors) or is missing information IMDF requires (imdfIncomplete).

Media typeapplication/json
object
error
required

A description of the error

string
code
required

A stable identifier for the kind of error

string
issues

For invalidBody: what failed validation, and where

Array<object>
object

Example generated

{
"error": "example",
"code": "example",
"issues": [
{}
]
}

Too many requests. Retry after Retry-After seconds.

Media typeapplication/json
object
error
required

A description of the error

string
code
required

A stable identifier for the kind of error

string
issues

For invalidBody: what failed validation, and where

Array<object>
object

Example generated

{
"error": "example",
"code": "example",
"issues": [
{}
]
}
Retry-After
integer

Seconds to wait before retrying

Something upstream failed.

Media typeapplication/json
object
error
required

A description of the error

string
code
required

A stable identifier for the kind of error

string
issues

For invalidBody: what failed validation, and where

Array<object>
object

Example generated

{
"error": "example",
"code": "example",
"issues": [
{}
]
}

The space is moving between servers. Retry after Retry-After seconds.

Media typeapplication/json
object
error
required

A description of the error

string
code
required

A stable identifier for the kind of error

string
issues

For invalidBody: what failed validation, and where

Array<object>
object

Example generated

{
"error": "example",
"code": "example",
"issues": [
{}
]
}
Retry-After
integer

Seconds to wait before retrying

Something upstream timed out.

Media typeapplication/json
object
error
required

A description of the error

string
code
required

A stable identifier for the kind of error

string
issues

For invalidBody: what failed validation, and where

Array<object>
object

Example generated

{
"error": "example",
"code": "example",
"issues": [
{}
]
}