# ServiceAreaTrait.LandmarkInfoStruct

# ServiceAreaTrait.LandmarkInfoStruct


```
class ServiceAreaTrait.LandmarkInfoStruct : ClusterStruct
```

<br />

*** ** * ** ***

The data from this structure indicates a landmark and device position relative to the landmark.

## Summary

| ### Nested types |
|---|
| `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaTrait.LandmarkInfoStruct.StructFields : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html, https://developers.home.google.com/reference/kotlin/com/google/home/Field` Descriptor enum for this struct's fields. |

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaTrait.LandmarkInfoStruct#LandmarkInfoStruct(kotlin.UByte,kotlin.UByte)(landmarkTag: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html, relativePositionTag: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?)` Creates the LandmarkInfoStruct class. |

| ### Public functions |
|---|---|
| `open https://developers.home.google.com/reference/kotlin/com/google/home/StructDescriptor` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaTrait.LandmarkInfoStruct#getDescriptor()()` Returns the descriptor for the struct. |
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaTrait.LandmarkInfoStruct#getFieldValueById(kotlin.UInt)(tagId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html)` Returns the value of the field for the given tag ID. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaTrait.LandmarkInfoStruct#landmarkTag()` Indicates that the area is associated with a landmark. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaTrait.LandmarkInfoStruct#relativePositionTag()` The position of the area relative to a landmark. |

## Public constructors

### LandmarkInfoStruct

```
LandmarkInfoStruct(landmarkTag: UByte, relativePositionTag: UByte? = null)
```

Creates the LandmarkInfoStruct class.

## Public functions

### getDescriptor

```
@HomeExperimentalGenericApi
open fun getDescriptor(): StructDescriptor
```

Returns the descriptor for the struct.

### getFieldValueById

```
@HomeExperimentalGenericApi
open fun getFieldValueById(tagId: UInt): Any?
```

Returns the value of the field for the given tag ID.

## Public properties

### landmarkTag

```
val landmarkTag: UByte
```

Indicates that the area is associated with a landmark. This field is the ID of a landmark semantic tag, located within the Common Landmark Namespace defined in the Matter specification.

### relativePositionTag

```
val relativePositionTag: UByte?
```

The position of the area relative to a landmark. This is a static description of a zone known to the server, and this field never reflects the device's own proximity or position relative to the landmark, but that of the zone. This field is the ID of a relative position semantic tag, located within the Common Relative Position Namespace defined in the Matter specification.