> 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/v9/features/indoor-maps/map-content-and-poi/poi-details.md).

# POI Details

Learn about standard POI details, how to edit them and how they are displayed via the SDKs.

We support several standard properties to add more details to POIs. These include:

* [Description](#add-description-external-identifier-keywords-and-tags)
* [External identifier](#add-description-external-identifier-keywords-and-tags)
* [Keywords](#add-description-external-identifier-keywords-and-tags)
* [Tags](#add-description-external-identifier-keywords-and-tags)
* [Opening hours](#add-opening-hours-price-and-rating)
* [Price](#add-opening-hours-price-and-rating)
* [Rating](#add-opening-hours-price-and-rating)
* [Images](#add-images-and-logo)
* [Logo image](#add-images-and-logo)
* [Book / Reserve / Order link](#add-book-reserve-and-order-button)
* [Email](#add-email-menu-phone-number-and-website)
* [Menu](#add-email-menu-phone-number-and-website)
* [Phone number](#add-email-menu-phone-number-and-website)
* [Website](#add-email-menu-phone-number-and-website)

{% hint style="info" %}
**Custom fields**

In addition to the standard properties (above), Pointr Cloud also allows adding any `key:value` pair as custom fields as well.
{% endhint %}

Our SDKs also offer a [**POI Snapshot**](#map-snapshot) feature to show a snapshot of the POI on the map (from v9.6).

### Add Description, External Identifier, Keywords, and Tags

{% tabs fullWidth="false" %}
{% tab title="Dashboard" %}
{% embed url="<https://app.storylane.io/share/etustqeqkdlk>" %}
{% endtab %}

{% tab title="User App" %}

<table><thead><tr><th width="205.2265625">POI Details</th><th width="536.3671875">Description</th><th data-type="checkbox">Visible to Users?</th></tr></thead><tbody><tr><td>Description</td><td>Brief overview of the POI’s purpose, location, or function</td><td>true</td></tr><tr><td>External Identifier</td><td>Reference ID or code used for external systems</td><td>false</td></tr><tr><td>Keywords</td><td>Relevant searchable terms, separated by commas</td><td>false</td></tr><tr><td>Tag</td><td>Categorical labels for filtering or grouping</td><td>true</td></tr></tbody></table>

<figure><img src="https://2585032735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjgeYeKrK9Emf57ofXXap%2Fuploads%2FXf3xs6vijETpM3EPp2NJ%2Fdescription-tag-device.png?alt=media&amp;token=62ad87f8-0d00-4cf9-924d-d1fd4ffaa8ed" alt="" width="563"><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

### Add Opening Hours, Price & Rating

{% tabs fullWidth="false" %}
{% tab title="Dashboard" %}
{% embed url="<https://app.storylane.io/share/vrtinnz7t50g>" %}
{% endtab %}

{% tab title="User App" %}

<table><thead><tr><th width="205.2265625">POI Details</th><th width="536.3671875">Description</th><th data-type="checkbox">Visible to Users?</th></tr></thead><tbody><tr><td>Opening Hours</td><td>Business hours for each day or range, e.g., Mon–Sun, 11:00–21:30</td><td>true</td></tr><tr><td>Price</td><td>General price level, e.g., $, $$, $$$, $$$$</td><td>true</td></tr><tr><td>Rating</td><td>User rating and count, e.g., 4.7 / 5 (3,200 reviews)</td><td>true</td></tr></tbody></table>

<figure><img src="https://2585032735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjgeYeKrK9Emf57ofXXap%2Fuploads%2Fir0AZ04ZiVqjFQeHmBLG%2Fopen-rate-price.png?alt=media&amp;token=42bfa82c-70e9-4d10-9a3d-1e909aba61d1" alt="" width="563"><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

### Add Images & Logo

{% tabs fullWidth="false" %}
{% tab title="Dashboard" %}
{% embed url="<https://app.storylane.io/share/hqnudevl7000>" %}
{% endtab %}

{% tab title="User App" %}

<table><thead><tr><th width="205.2265625">POI Details</th><th width="536.3671875">Description</th><th data-type="checkbox">Visible to Users?</th></tr></thead><tbody><tr><td>Image</td><td>Direct image link to show visual details of the POI (JPG/PNG, 16:9 ratio, max 2MB)</td><td>true</td></tr><tr><td>Logo</td><td>Direct link to a logo image. (JPG &#x26; PNG, 1:1 ratio, max 1MB)</td><td>true</td></tr></tbody></table>

<figure><img src="https://2585032735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjgeYeKrK9Emf57ofXXap%2Fuploads%2FWSy9Mi5zwLHhkkzRce9K%2Fimg-logo.png?alt=media&amp;token=34d0f188-85b7-4f62-9440-2ade7ea26d6b" alt="" width="563"><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

### Add Book/Reserve & Order Button

{% tabs fullWidth="false" %}
{% tab title="Dashboard" %}
{% embed url="<https://app.storylane.io/share/etkon7htv2zc>" %}
{% endtab %}

{% tab title="User App" %}

<table><thead><tr><th width="205.2265625">POI Details</th><th width="536.3671875">Description</th><th data-type="checkbox">Visible to Users?</th></tr></thead><tbody><tr><td>Book</td><td>Book a table or reserve a spot at this location.</td><td>true</td></tr><tr><td>Order</td><td>Place an online order for pickup or delivery.</td><td>true</td></tr></tbody></table>

<figure><img src="https://2585032735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjgeYeKrK9Emf57ofXXap%2Fuploads%2FbzSNBqdrxqkNTfvWe3Tx%2Fbook-order.png?alt=media&amp;token=a56a23e5-d573-4917-bcfb-31c0b5b393fe" alt="" width="563"><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

### Add Email, Menu, Phone Number & Website

{% tabs fullWidth="false" %}
{% tab title="Dashboard" %}
{% embed url="<https://app.storylane.io/share/abmv4zp2pecs>" %}
{% endtab %}

{% tab title="User App" %}

<table><thead><tr><th width="205.2265625">POI Details</th><th width="536.3671875">Description</th><th data-type="checkbox">Visible to Users?</th></tr></thead><tbody><tr><td>Email</td><td>Contact email address</td><td>true</td></tr><tr><td>Menu</td><td>Link to menu PDF or online menu</td><td>true</td></tr><tr><td>Phone Number</td><td>Contact phone number</td><td>true</td></tr><tr><td>Website</td><td>Official website link</td><td>true</td></tr></tbody></table>

<figure><img src="https://2585032735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjgeYeKrK9Emf57ofXXap%2Fuploads%2FL59G6rebBlFEgicHCHis%2Frest-button.png?alt=media&amp;token=8c671dd7-8c90-48ad-be0a-cfb9d2174ef0" alt="" width="563"><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

## Override Mode

Override Mode enables third-party integration for POI action buttons (such as **Order** or **Book/Reserve**). Instead of the SDK opening a link itself, a button set to override mode forwards the tap to your app, so you can run your own logic — for example connecting POI reservations to hotel, travel, or event platforms for booking and real-time availability.

### How action buttons behave

Every POI action button has an `action` and an `intent`. The SDK behaves differently depending on `action`:

| `href`   | SDK opens the URL directly                                                                                        | the URL to open     |
| -------- | ----------------------------------------------------------------------------------------------------------------- | ------------------- |
| `tel`    | SDK starts a phone call                                                                                           | the phone number    |
| `mailto` | SDK opens an email composer                                                                                       | the email address   |
| `custom` | **Override mode.** The SDK does **not** open the `intent`. The tap is forwarded to your app so you can handle it. | not used by the SDK |

#### Enable Override Mode on Pointr Cloud CMS

Add one of the supported properties (e.g. `bookingUrl`, `orderUrl`, `menuUrl`) and tick **Override Mode (No URL)**. The entered URL is then ignored — instead of opening it, the SDK forwards the tap to your app, where your handler runs the custom action.

{% embed url="<https://app.storylane.io/share/fpathummkata>" %}

#### Enable Override Mode via API

{% stepper %}
{% step %}

#### Retrieve POI Data via API

* Find the featureInternalIdentifier (`fid`) for your POI.
* Send a **`GET`** `../features/ request` to retrieve the POI data.
* Locate the “buttons” section under “properties” in the JSON response.

{% hint style="info" %}
The buttons array will contain objects with **name**, **action**, **intent,** and **iconURL** fields.
{% endhint %}

{% hint style="info" %}
To find the `fid` for a POI, look in the URL when editing the POI.  The structure of the URL should be: `https://<system>.pointr.cloud/cms/content/clients/<client id>/sites/<site id>/buildings/<building id>/levels/0/map-content/<fid>/edit>`&#x20;
{% endhint %}
{% endstep %}

{% step %}

#### Modify the JSON Data

Set `action` to `custom` for any button you want your app to handle. The `intent` field is optional for `custom` actions — leave it empty, or use it as a hint that your own code interprets (it is not opened by the SDK).

Example — `Order` and `Book` use override mode, while `Website` opens a URL directly:

**Example JSON for Overriding Order and Book/Reserve Buttons**

{% code fullWidth="false" %}

```json
"buttons": [
          {
            "name": "Order",
            "action": "custom",
            "intent": "",
            "iconUrl": "https://pointrmapstorage.blob.core.windows.net/pointr-assets/products/pointrmaps/poiCard/order.png"
          },
          {
            "name": "Book",
            "action": "custom",
            "intent": "",
            "iconUrl": "https://pointrmapstorage.blob.core.windows.net/pointr-assets/products/pointrmaps/poiCard/book-reserve.png"
          },
          {
            "name": "Website",
            "action": "href",
            "intent": "https://eu.louisvuitton.com/eng-e1/homepage",
            "iconUrl": "https://pointrmapstorage.blob.core.windows.net/pointr-assets/products/pointrmaps/poiCard/website.png"
          }
        ]
```

{% endcode %}

{% hint style="warning" %}
Keep “**name**” and “**iconUrl**” as shown. Set **action** per the table above. For **href/tel/mailto**, put the target in **intent**; for **custom**, **intent** is not required.
{% endhint %}
{% endstep %}

{% step %}

#### Update the POI via API

* Send a **`PUT`** `../features/ request` with the modified JSON data.
* Ensure all necessary fields are correctly formatted.
  {% endstep %}

{% step %}

#### Publish Your Changes

* Go back to the Pointr Cloud CMS.
* Click Publish to apply the changes.
* Updates may take **10-15 minutes** to reflect in your app.
  {% endstep %}
  {% endstepper %}

### Handle the custom action in your app

A **custom** button is only functional once your app handles it. On each platform, provide your own "POI details handler" and override the button-action callback, then register it on the map widget. The SDK triggers this callback for **every** button tap; for **href/tel/mailto** the default behavior opens the link/dials/emails, while **custom** does nothing until you handle it.

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

```swift
extension ViewController {
    func registerPoiDetailsEventsHandler() {
        let poiDetailsEventsHandler = PoiDetailsEventsHandler(mapWidget: mapWidget)
        mapWidget.poiDetailsEventsHandler = poiDetailsEventsHandler
    }
}

class PoiDetailsEventsHandler: PTRPoiDetailsEventsHandler {
    override func poiDetailsOnPoiButtonTap(_ poiButton: PTRPoiButton, poi: PTRPoi) {
        switch poiButton.action {
        case .custom:
            // Your integration, e.g. launch a booking flow.
            // poiButton.name identifies which button was tapped ("Order", "Book", ...)
            // Example code:
            switch poiButton.name {
            case "Order":
                openOrderFlow(poi)
            case "Book":
                openBookFlow(poi)
            default:
                break
            }
        default:
            // For all the other actions, let the SDK handle it.
            super.poiDetailsOnPoiButtonTap(poiButton, poi: poi)
        }
    }
}
```

{% endtab %}

{% tab title="Android" %}

```kotlin
widget?.let { mapWidget ->
    mapWidget.poiDetailsEventsHandler = object : PoiDetailsEventsHandler(mapWidget) {
        override fun onPoiDetailsButtonAction(poiButton: PoiButton, poi: Poi) {
            when (poiButton.action) {
                PoiButtonAction.custom -> {
                    // Your integration, e.g. launch a booking flow.
                    // poiButton.name identifies which button was tapped ("Order", "Book", ...)
                    when (poiButton.name) {
                        "Order" -> openOrderFlow(poi)
                        "Book"  -> openBookFlow(poi)
                    }
                }
                else -> {
                    // For all the other actions, let the SDK handle it.
                    super.onPoiDetailsButtonAction(poiButton, poi)
                }
            }
        }
    }
}
```

{% endtab %}

{% tab title="Web" %}

<pre class="language-js"><code class="lang-js">const poiDetailsView = pointrWeb.getUiController().getPoiDetailsViewController().getView()
poiDetailsView.on(poiDetailsView.events.poiButtonClicked, (button) => {
  // button -> { name: "your_name", action: "your_action", intent: "your_intent", iconUrl: "icon"  }   
<strong>  // Your integration, e.g. launch a booking flow.
</strong>  // button.name identifies which button was tapped ("Order", "Book", ...)
  //example code: 
  if (button.name === "Book") {
    // Launch Booking flow
  }
})
</code></pre>

{% endtab %}
{% endtabs %}

## POI Snapshot

POI Snapshot feature provides a snapshot of the map that shows the POI location.

Snapshot example:

<figure><img src="https://2585032735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjgeYeKrK9Emf57ofXXap%2Fuploads%2Fj5PDeizX3cjbFppR2wOP%2F50820a74-2099-4962-9cf6-e23de72e0aba.png?alt=media&amp;token=6b651049-636e-406a-89b0-f9a0af333d67" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
POI Snapshots are available from v9.6 onwards.
{% endhint %}

{% tabs %}
{% tab title="iOS" %}
The map snapshot is accessible through the `PTRPoi` class:

```swift
guard let site = Pointr.shared.siteManager?.site(withExternalIdentifier: "site_id") else { return }
guard let poi = Pointr.shared.poiManager?.pois(for: site, withIdentifier: "poi_id") else { return }
        
let url = poi.mapSnapshotUrl
```

The SDK also provides a view named `PTRPoiMapSnapshotView` that takes POI as argument, handles downloading the image and displays it:

```swift
guard let site = Pointr.shared.siteManager?.site(withExternalIdentifier: "site_id") else { return }
guard let poi = Pointr.shared.poiManager?.pois(for: site, withIdentifier: "poi_id") else { return }
        
let snapshotView = PTRPoiMapSnapshotView(poi: poi)
// In case you want to present the map widget when the snapshot is tapped
snapshotView?.onTap = { [weak self] action in
        let mapWidget = PTRMapWidgetViewController(action: action)
        self.present(mapWidget, animated: true)
}
view?.addSubview(snapshotView)
```

{% endtab %}

{% tab title="Android" %}
The map snapshot is accessible through the `Poi` class:

```kotlin
val pointr = Pointr.getPointr() ?: return

val site = pointr.siteManager?.getSite("site_id") ?: return
val poi  = pointr.poiManager?.getPois(site)?.poiList
              ?.firstOrNull { it.identifier == "poi_id" } ?: return

val url: String? = poi.mapSnapshotUrl
```

The SDK also provides a view named `PTRPoiMapSnapshotView` that takes a POI as argument, downloads the image and displays it:

**XML usage**

```xml
<com.pointrlabs.ui.map.views.map_snapshot.PTRPoiMapSnapshotView
    android:id="@+id/snapshotContainer"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" />
```

```kotlin
// Assign the POI — triggers image loading immediately if the view
// is already attached to the window, otherwise deferred to onAttachedToWindow.
binding.snapshotContainer.poi = poi

// Optional: react to a tap on the snapshot.
// The lambda receives a PTRMapWidgetAction pre-built for this POI.
binding.snapshotContainer.onTap = { action ->
    // e.g. open the full-screen map widget
}
```

**Programmatic usage**

```kotlin
val snapshotView = PTRPoiMapSnapshotView(context)
snapshotView.poi   = poi
snapshotView.onTap = { action -> /* ... */ }
parentLayout.addView(snapshotView)
```

**Opening Map Widget On Tap**

```kotlin
binding.snapshotContainer.onTap = { action ->
    PTRMapWidgetFragment.newInstance(
        parentFragmentManager,
        R.id.main_fragment_container,
        PTRMapWidgetConfiguration(),
        action                    // focuses the map on the POI
    )
}
```

{% endtab %}

{% tab title="Web" %}
The map snapshot is accessible through the `Poi` object. Note that you must call `initData()` to ensure the SDK has loaded the necessary resources before accessing managers:

```javascript
const pointrWeb = new PointrWebSDK.MapWidget(options);

// Initialize data loading
pointrWeb.initData();

pointrWeb.on(pointrWeb.events.dataLoaded, async () => {
  const poiManager = pointrWeb.getPoiManager();
  const loadedPois = await poiManager.getPoisBySite(siteInternalIdentifier);

  const poi = loadedPois?.[poiId];
  if (poi) {
    // Access the snapshot URL directly
    const url = poi.snapshotUrl();
    console.log("Snapshot URL:", url);
  }
});
```

The SDK also provides a component named `PointrWebSDK.SnapshotImage` that takes a POI as an argument, handles rendering the image, and provides a callback for user interaction:

```javascript
// Define the callback for when the snapshot is clicked
const clickCallback = (poiForCallback) => {
  options.highlightPoiIdentifier = poiForCallback.properties.fid;
  pointrWeb.initUi();
};

// Create the snapshot instance
const snapshot = new PointrWebSDK.SnapshotImage(poi, clickCallback);

// Append the snapshot element to the DOM
document.body.appendChild(snapshot.toElement());
```

#### Opening Map Widget On Tap

By using the `clickCallback`, you can seamlessly transition from a static snapshot to the interactive Map Widget:

```javascript
const snapshot = new PointrWebSDK.SnapshotImage(poi, (poi) => {
    // Highlight the specific POI in the widget configuration
    options.highlightPoiIdentifier = poi.properties.fid;
    
    // Initialize the UI to open the map
    pointrWeb.initUi();
});
```

{% 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/v9/features/indoor-maps/map-content-and-poi/poi-details.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.
