---
title: "MTData | Mobile sdk | Mobile sdk ios | Ios"
description: "Object sent together with MTEvent."
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# MTData

```
public struct MTData : Codable
```

Object sent together with MTEvent.

-   `[id](#/s:11MapTilerSDK6MTDataV2idSSSgvp)`
    
    Unique id.
    
    #### Declaration
    
    Swift
    
    ```
    public var id: String?
    ```
    
-   `[coordinate](#/s:11MapTilerSDK6MTDataV10coordinateSo22CLLocationCoordinate2DVSgvp)`
    
    Coordinate of the event tap.
    
    #### Declaration
    
    Swift
    
    ```
    public var coordinate: CLLocationCoordinate2D?
    ```
    
-   `[point](#/s:11MapTilerSDK6MTDataV5pointAA7MTPointVSgvp)`
    
    Point of the event tap.
    
    #### Declaration
    
    Swift
    
    ```
    public var point: MTPoint?
    ```
    
-   `[dataType](#/s:11MapTilerSDK6MTDataV8dataTypeSSSgvp)`
    
    Type of the event.
    
    #### Declaration
    
    Swift
    
    ```
    public var dataType: String?
    ```
    
-   `[isSourceLoaded](#/s:11MapTilerSDK6MTDataV14isSourceLoadedSbSgvp)`
    
    Boolean indicating if source is fully loaded.
    
    #### Declaration
    
    Swift
    
    ```
    public var isSourceLoaded: Bool?
    ```
    
-   `[source](#/s:11MapTilerSDK6MTDataV6sourceAA12MTSourceDataVSgvp)`
    
    Source data.
    
    #### Declaration
    
    Swift
    
    ```
    public var source: MTSourceData?
    ```
    
-   `[sourceDataType](#/s:11MapTilerSDK6MTDataV14sourceDataTypeSSSgvp)`
    
    Type of the source data.
    
    #### Declaration
    
    Swift
    
    ```
    public var sourceDataType: String?
    ```
    
-   `[init(from:)](#/s:11MapTilerSDK6MTDataV4fromACs7Decoder_p_tKcfc)`
    
    Initialiaes the data from decoder.
    
    #### Declaration
    
    Swift
    
    ```
    public init(from decoder: any Decoder) throws
    ```
