---
title: "MTAnnotation | Mobile sdk | Mobile sdk ios | Ios"
description: "Protocol requirements for all annotation objects."
---

> 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.

# MTAnnotation

```
public protocol MTAnnotation : Sendable
```

Protocol requirements for all annotation objects.

-   `[identifier](#/s:11MapTilerSDK12MTAnnotationP10identifierSSvp)`
    
    Unique id.
    
    #### Declaration
    
    Swift
    
    ```
    var identifier: String { get }
    ```
    
-   `[coordinates](#/s:11MapTilerSDK12MTAnnotationP11coordinatesSo22CLLocationCoordinate2DVvp)`
    
    Geographical coordinates.
    
    #### Declaration
    
    Swift
    
    ```
    var coordinates: CLLocationCoordinate2D { get }
    ```
    
-   `[setCoordinates(_:in:)](#/s:11MapTilerSDK12MTAnnotationP14setCoordinates_2inySo22CLLocationCoordinate2DV_AA9MTMapViewCtYaF)` Asynchronous
    
    Sets the coordinates.
    
    #### Declaration
    
    Swift
    
    ```
    func setCoordinates(_ coordinates: CLLocationCoordinate2D, in mapView: MTMapView) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>coordinates</em></code></td><td><div><p>Coordinates to set.</p></div></td></tr><tr><td><code><em>mapView</em></code></td><td><div><p>Map view to apply to.</p></div></td></tr></tbody></table>
