Home > @magiclane/maps-sdk > ExtraInfo

ExtraInfo class

Extra info class for landmark metadata.

ExtraInfo is a flexible key/value store used by the SDK to attach auxiliary information to landmarks. It can contain fields used internally for contour boxes, geographic area metadata, or Wikipedia information.

Signature:

export declare class ExtraInfo 

Constructors

Constructor

Modifiers

Description

(constructor)()

Creates a new ExtraInfo instance.

Methods

Method

Modifiers

Description

add(key, value)

Adds or updates a key-value pair in the extra info.

equals(other)

Checks if this ExtraInfo is equal to another.

fromList(input)

static

Creates an ExtraInfo instance from a list of strings.

getByKey(key)

Retrieves a value by key from the extra info.

Automatically converts string representations of booleans and numbers to their native types.

hashCode()

Computes a hash code for this ExtraInfo instance.

remove(key)

Removes a key-value pair from the extra info.

toInputFormat()

Converts the extra info to input format for API calls.