> For the complete documentation index, see [llms.txt](https://dev.pointr.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.pointr.tech/features/indoor-maps/customizations-and-branding/dynamic-poi-properties.md).

# Dynamic POI Properties

The Dynamic POI Properties feature allows applications to update selected Point of Interest (POI) properties at runtime. These updates are applied in memory only and do not modify the underlying data source or persist across SDK restarts.

This feature is useful for temporarily customizing POIs based on application-specific requirements, user preferences, or dynamic business logic.

### Supported Properties

Only a subset of POI properties can be updated dynamically. Examples include:

* Name
* Logo URL
* Tags
* Keywords

Each supported property has its own dedicated update method, allowing applications to modify only the desired attribute without affecting the rest of the POI. For more information on which properties can be updated check the reference documentation.

### Unsupported Properties

Properties that define the identity or physical characteristics of a POI cannot be modified. These include, but are not limited to:

* Feature ID
* Location (site, building, level, coordinates)
* Main and sub types

Attempting to update an unsupported property is not supported by the SDK.

### Applying Updates (Mobile only)

Changes made to POIs are not applied automatically. After updating one or more supported properties, call the appropriate method on `PoiManager` and provide the collection of updated POIs.

Only after this method is called are the changes propagated throughout the SDK.

This design allows multiple POI updates to be staged and applied together, reducing the overhead of updating each POI individually.

### Update Notifications (Mobile only)

After the updates have been successfully applied, `PoiManager` notifies its delegates through the corresponding `PoiManagerDelegate` callback.

The callback provides the collection of POIs whose properties were updated, allowing applications to react to the changes, refresh their UI, or perform any additional processing.

### SDK-wide Propagation

Once a supported property is updated, the change is immediately reflected throughout the SDK for the lifetime of the application. This includes all components that consume POI data, such as:

* Search results
* Map rendering (Web requires `updateStyleOfPois` call)
* POI details
* Any other SDK feature that accesses the updated POI

Because the updates are maintained only in memory, they are automatically discarded when the SDK or application is restarted.

### Example:

{% tabs %}
{% tab title="iOS" %}

```swift
class PoisUpdatesExample: NSObject {    
    func setup() {
        Pointr.shared.poiManager?.addListener(self)
    }
    
    func updatePois(name: String, site: PTRSite) {
        guard let pois = Pointr.shared.poiManager?.pois(for: site, withName: name)?.getPoiList() else { return }
        // Update the POIs' properties
        for poi in pois {
            poi.updateName("Office Desk")
            poi.updateTags(["desk", "office"])
        }
        // Apply the updates
        Pointr.shared.poiManager?.update(pois)
    }
}

extension PoisUpdatesExample: PTRPoiManagerDelegate {
    func onPoiManagerUpdatedPois(_ pois: [PTRPoi]) {
        // triggered after updating the POIs on Poi Manager.
    }
}
```

{% endtab %}

{% tab title="Android" %}

```kotlin
import com.pointrlabs.core.management.Pointr
import com.pointrlabs.core.management.PoiManager
import com.pointrlabs.core.management.models.Site
import com.pointrlabs.core.poi.models.Poi
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch

class PoisUpdatesExample : PoiManager.Listener {

    fun setup() {
        Pointr.getPointr()?.poiManager?.addListener(this)
    }

    fun updatePois(name: String, site: Site) {
        // `updatePois` is synchronous and reloads the affected site's poi data,
        // so run it on a background thread — never on the main thread.
        CoroutineScope(Dispatchers.IO).launch {
            val poiManager = Pointr.getPointr()?.poiManager ?: return@launch
            val pois = poiManager.getPoisWithName(site, name)?.poiList ?: return@launch
            // Update the POIs' properties
            pois.forEach { poi ->
                poi.updateName("Office Desk")
                poi.updateTags(listOf("desk", "office"))
            }
            // Apply the updates
            poiManager.updatePois(pois)
        }
    }

    override fun onPoiManagerUpdatedPois(pois: List<Poi>) {
        // Triggered after updating the POIs on Poi Manager.
    }
}
```

{% endtab %}

{% tab title="Web" %}

<pre class="language-js"><code class="lang-js">// Example: update name of a specific POI type.
// You can adjust individual properties as needed.

// Search all POIs of type "restrooms"
const restrooms = await pointrWeb
  .getPoiManager()
  .search("restrooms", undefined, "YOUR_SITE_ID")

// Convert the result object to an array
<strong>const restroomsArray = Object.values(restrooms)
</strong>  
// Update the style of each POI
restroomsArray.forEach((poi) => {
  // update name of each poi
  poi.properties.name = "My Special Name"
  // another example for tags
  poi.properties.tags = ["accessible", "restroom"]
})

// Apply updated styles to the map
pointrWeb.updateStyleOfPois(restroomsArray);
</code></pre>

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://dev.pointr.tech/features/indoor-maps/customizations-and-branding/dynamic-poi-properties.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
