@magiclane/maps-sdk
    Preparing search index...

    Class AddressInfo

    Address info class

    Hierarchy

    • GemAutoreleaseObject
      • AddressInfo
    Index

    Constructors

    • Internal

      Internal constructor.

      Parameters

      • id: number

        Native pointer id

      • mapId: number

        Map id

      Returns AddressInfo

    Accessors

    • get mapId(): number

      Returns number

    • get pointerId(): number

      Returns number

    Methods

    • Checks equality with another AddressInfo instance.

      Parameters

      Returns boolean

      True if equal, false otherwise

    • Formats the address as a string.

      Parameters

      • options: { excludeFields?: AddressField[]; includeFields?: AddressField[] }

        Object containing the following fields:

        • OptionalexcludeFields?: AddressField[]

          Fields to exclude from result

        • OptionalincludeFields?: AddressField[]

          Fields to include in result

      Returns string

      Formatted address string

    • Gets address field value.

      Parameters

      Returns string | null

      Field value or null if not exists

    • Computes a hash code for the address info.

      Returns number

      Hash code

    • Registers an object for auto release. When the object is not used anymore, it will be released automatically from C++.

      Parameters

      • pointerId: any

        The pointer ID to register

      Returns void

    • Sets address field value.

      Parameters

      • str: string

        The new value

      • field: AddressField

        The address field to set

      Returns void

    • Converts this AddressInfo to a JSON object.

      Returns Record<string, string>

      JSON object with string keys and values

    • Creates a new AddressInfo instance.

      Returns AddressInfo

      New AddressInfo instance

    • Creates AddressInfo from JSON

      Parameters

      • json: Record<string, string>

        The JSON object

      Returns AddressInfo

      New AddressInfo instance