> 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/create-a-map.md).

# Create a Map

Learn how to turn your CAD files into beautiful 3D maps that power your app experience.

## Create a Map in 5 Steps

<details>

<summary>Prerequisites</summary>

**Before starting, make sure you have:**

* Log in credentials to your Pointr Cloud environment
* Your floor plans

</details>

<details>

<summary>Supported File Types</summary>

Use one of the formats below to convert your floor plan:

<table><thead><tr><th>File Type</th><th data-type="checkbox">Preferred</th><th data-type="checkbox">Compatible</th><th data-type="checkbox">Not Supported</th></tr></thead><tbody><tr><td>.DWG</td><td>true</td><td>true</td><td>false</td></tr><tr><td>.DXF</td><td>true</td><td>true</td><td>false</td></tr><tr><td>GeoJSON</td><td>true</td><td>true</td><td>false</td></tr><tr><td>.DWF</td><td>false</td><td>true</td><td>false</td></tr><tr><td>.PDF (single-page)</td><td>false</td><td>true</td><td>false</td></tr><tr><td>.SVG</td><td>false</td><td>true</td><td>false</td></tr><tr><td>Raster image (e.g. .PNG, JPG)</td><td>false</td><td>false</td><td>true</td></tr><tr><td>Other (e.g. MBTiles)</td><td>false</td><td>false</td><td>true</td></tr></tbody></table>

{% hint style="warning" %}
Please note that SVGs are not supported in self-serve. Please contact your Pointr PM to use SVG floorplans.
{% endhint %}

</details>

{% stepper %}
{% step %}

### Create a Site

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

{% tab title="REST API" %}
Endpoint: **`POST`** `api/v10/content/draft/clients/{clientIdentifier}/sites`

<details>

<summary>Example - Request Body &#x26; Success Response</summary>

**Request Body:**

```json
{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {
        "eid": "site-ext",
        "extra": {
          "cyan": "1c8abf58-07c7-469b-b23a-c791bedcfb19"
        },
        "fid": "12b4a4f6-c759-43df-a32c-cc63b536f86c",
        "name": "Site Name",
        "name_ar": "اسم الموقع",
        "name_en": "Site Name EN",
        "name_ar_AE": "اسم الموقع",
        "name_tr": "Site Name TR",
        "mainType": "site-outline",
        "subType": null,
      },
      "geometry": {
        "coordinates": [
          [
            [0.03850703, 0.06771042],
            [0.03874183, 0.06771099],
            [0.0387452, 0.06771097],
            [0.03852766, 0.06803799],
            [0.03850798, 0.06801445],
            [0.03850703, 0.06771042]
          ]
        ],
        "type": "Polygon"
      }
    }
  ]
}
```

**Success Response:**

```json
{
  "fid": "ae9c22e8-6ebf-4b0c-b901-41141ac5dce9"
}
```

</details>
{% endtab %}
{% endtabs %}
{% endstep %}

{% step %}

### Create a Building

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

{% tab title="REST API" %}
Endpoint: **`POST`** `api/v10/content/draft/clients/{clientIdentifier}/sites/{siteIdentifier}/buildings`

<details>

<summary>Example - Request Body &#x26; Success Response</summary>

**Request Body:**

```json
{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {
        "buildingType": "office",
        "isTemp": true, // If you want to add a building as Temp
        "mainType": "building-outline",
        "subType": null,
        "name": "Building Name",
        "name_ar": "اسم الموقع",
        "name_en": "Building Name EN",
        "name_ar_AE": "اسم الموقع",
        "name_tr": "Building Name TR",
        "fid": "1c8abf58-07c7-469b-b23a-c791bedcfb19",
        "sid": "1c8abf58-07c7-469b-b23a-c791bedcfb19",
        "eid": "building-ext",
        "extra": {
          "field1": "1c8abf58-07c7-469b-b23a-c791bedcfb19"
        }
      },
      "geometry": {
        "coordinates": [
          [
            [0.03850703, 0.06771042],
            [0.03874183, 0.06771099],
            [0.0387452, 0.06771097],
            [0.03874524, 0.06776459],
            [0.03874296, 0.06803444],
            [0.03874296, 0.06803849],
            [0.03861891, 0.06803849],
            [0.03852766, 0.06803799],
            [0.03850798, 0.06801445],
            [0.03850703, 0.06771042]
          ]
        ],
        "type": "Polygon"
      }
    }
  ]
}
```

**Success Response:**

```json
{
  "fid": "ae9c22e8-6ebf-4b0c-b901-41141ac5dce0"
}
```

</details>
{% endtab %}
{% endtabs %}
{% endstep %}

{% step %}

### Create a Level

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

{% tab title="REST API" %}

#### Create a Level

Endpoint: **`POST`** `api/v10/content/draft/clients/{clientIdentifier}/sites/{siteIdentifier}/buildings/{buildingIdentifier}/levels`

<details>

<summary>Example - Request Body &#x26; Success Response</summary>

**Request:**

```json
{
  "type": "FeatureCollection",
  "features": [{
    "type": "Feature",
    "properties": {
      "mainType": "level-outline",
      "subType": null,
      "shortName": "L0",
      "name": "LVL0",
      "name_ar": "ل.ف.ل0",
      "name_en": "LVL0",
      "name_ar_AE": "ل.ف.ل0",
      "name_tr": "LVL0",
      "lvl": 0,
      "eid": "ext-mah-d",
      "fid": "1c8abf58-07c7-469b-b23a-c791bedcfb19",
      "sid": "1c8abf58-07c7-469b-b23a-c791bedcfb19",
      "bid": "1c8abf58-07c7-469b-b23a-c791bedcfb19",
    },
    "geometry": {
      "coordinates": [
        [
          [
            -87.65376826,
            41.88388598
          ],
          [
            -87.65376875,
            41.8838876
          ],
          [
            -87.65376913,
            41.88390733
          ],
          [
            -87.65374207,
            41.88390762
          ],
          [
            -87.65374171,
            41.88388879
          ],
          [
            -87.65374169,
            41.88388789
          ],
          [
            -87.65375626,
            41.88388774
          ],
          [
            -87.65376826,
            41.88388598
          ]
        ]
      ],
      "type": "Polygon"
    }
  }]
}
```

**Success Response:**

```json
{
  "fid": "ae9c22e8-6ebf-4b0c-b901-41141ac5dce0"
}
```

</details>
{% endtab %}
{% endtabs %}
{% endstep %}

{% step %}

### Submit Floor Plan & Run MapScale<sup>**®**</sup>

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

{% tab title="REST API" %}

#### Upload Floor Plan to MapScale® <a href="#upload-floor-plan-to-mapscale" id="upload-floor-plan-to-mapscale"></a>

Endpoint: **`POST`** `api/v10/mapscale/clients/{clientIdentifier}/sites/{siteIdentifier}/buildings/{buildingIdentifier}/levels/{levelIndex}/floor-plan-jobs`

<details>

<summary>Example - Request Body &#x26; Success Response</summary>

**Request Body:**

```json
{
  "fileUrl": "https://pointrsastest.blob.core.windows.net/roomtest.dxf",
  "fileType": "dxf",
  "fileHash": "",
  "extra": {
    "key": "value"
  },
  "location": {
    "address": "address",
    "latitude": 39.925533,
    "longitude": 32.866287
  },
  "isPreciseGeoreferencingRequested": false,
  "reviewRequest": "MappingTeamReview",
  "taxonomyVersion": "10.0.0",
  "buildingName": "Building 1",
  "levelType": "office",
  "georeferencing": {
    "anchors": [
      {
        "originalCoordinates": [
          100,
          200
        ],
        "coordinates": [
          -72.74199264368674,
          41.81341672831643
        ]
      },
      {
        "originalCoordinates": [
          2500,
          900
        ],
        "coordinates": [
          -72.74432602905546,
          41.81245557927655
        ]
      }
    ]
  }
}
```

**Success Response:**

```json5
{
  "floorPlanJobId": "dcf3ca2b-ef17-4b80-b4ed-e22c11bb722b"
}
```

</details>

#### Checking Map Status

Endpoint: **`GET`** `api/v10/mapscale/clients/{clientIdentifier}/sites/{siteIdentifier}/buildings/{buildingIdentifier}/levels/{levelIndex}/floor-plan-jobs/{floorPlanId}`

<table><thead><tr><th width="76.00390625">Code</th><th width="162.04296875">Status</th><th>Description</th></tr></thead><tbody><tr><td>0</td><td>Rejected</td><td>Conversion failed - check rejection reasons</td></tr><tr><td>1</td><td>Pending</td><td>Waiting to process</td></tr><tr><td>2</td><td>InProgress</td><td>Currently digitizing</td></tr><tr><td>3</td><td>AwaitingReview</td><td>Awaiting human QA review</td></tr><tr><td>4</td><td>Approved</td><td>Approved by Pointr</td></tr><tr><td>5</td><td>Done</td><td>Ready for publish</td></tr></tbody></table>

<details>

<summary>Example - Success Response</summary>

```json
{
  "floorPlanJobId": "01942726-b7b4-752f-b1a2-3659730a20a0",
  "clientIdentifier": "2c54c6cf-6ae1-4892-861f-3347a3fe75f9",
  "siteIdentifier": "644f1f9b-a7e0-45e8-b4de-06e288e82915",
  "buildingIdentifier": "ea2394c2-4826-4d70-bf93-ab43f7d66cbe",
  "levelIdentifier": "1a2394c2-4826-4d70-bf93-ab43f7d66cbe",
  "levelIndex": 0,
  "createdDate": "2025-01-02T13:13:56.404295Z",
  "updatedDate": "2025-01-02T13:19:34.393611Z",
  "finishedDate": "2025-01-02T13:19:34.327643Z",
  "fileUrl": "floor plan file url will be here",
  "resultUrl": "result url will be here",
  "errorMessage": "",
  "status": "Success",
  "isPreciseGeorefencingRequested": false,
  "reviewRequest": "MappingTeamReview",
  "extra": {
    "notes": "notessasd",
    "testid": "1234"
  },
  "resultExtra": {
    "areaSqFeet": 11055,
    "areaSqM": 1027,
    "cadCoordinatesGeojson": "cad coordinates geojson url will be here",
    "circulationCoveragePercentage": 31,
    "internalStatus": [
      {
        "message": "Initialization",
        "name": "Initialization",
        "progress": 1
      },
      {
        "message": "Downloading CAD File",
        "name": "Downloading CAD File",
        "progress": 1
      },
      {
        "message": "Preparing CAD Entities",
        "name": "Preparing CAD Entities",
        "progress": 1
      },
      {
        "message": "Drawing",
        "name": "Drawing",
        "progress": 1
      },
      {
        "message": "Finding Structural Elements",
        "name": "Finding Structural Elements",
        "progress": 1
      },
      {
        "message": "Finding Walls",
        "name": "Finding Walls",
        "progress": 1
      },
      {
        "message": "Finding Units",
        "name": "Finding Units",
        "progress": 1
      },
      {
        "message": "Finding Furniture",
        "name": "Finding Furniture",
        "progress": 1
      },
      {
        "message": "Finalizing",
        "name": "Finalizing",
        "progress": 1
      },
      {
        "message": "Uploading",
        "name": "Uploading",
        "progress": 1
      }
    ],
    "mappingPackage": "mappingPackage url will be here",
    "rasterCad": "rasterCad url will be here",
    "unitCoveragePercentage": 68,
    "worker": "celery@mapscale-worker-gpu-6d7b59ccf7-rjb7h"
  },
  "aiProcessingStartedAt": "2025-01-02T13:14:03.473662Z",
  "aiRequestReceivedAt": "2025-01-02T13:14:03.46452Z",
  "aiProcessingFinishedAt": "2025-01-02T13:16:52.047486Z",
  "declineMessage": "",
  "warningMessage": "Test Message",
  "cancelMessage": ""
}
```

</details>

{% hint style="info" %}
**Typical turnaround:**

* Up to 30 mins for AwaitingReview
* Up to 48 hrs for Approved (final GeoJSON)
  {% endhint %}
  {% endtab %}
  {% endtabs %}
  {% endstep %}

{% step %}

### Review & Publish

Use the "**Blueprint"** toggle to compare your digital map with the original floorplan and review any changes before publishing.

Changes made in Pointr Cloud remain in **`Draft`** mode until they are published. Only published changes are available through the APIs and SDKs.

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

{% tab title="REST API" %}

#### Publish Client-based Content

Endpoint: **`POST`** `/api/v10/content/publisher/clients/{cid}/publish-contents`

#### Publish Site-based Content

Endpoint: **`POST`** `/api/v10/content/publisher/clients/{cid}/sites/{sid}/publish-contents`
{% endtab %}
{% endtabs %}

Once published, your map and data are available to all channels, production API endpoints, and SDKs.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
For map setup and georeferencing support, please check our guide on [CAD File Preparation for MapScale®](broken://pages/ZQH1UPRXOqfi0wHzRTvn) or contact your Pointr Project Manager.
{% endhint %}

***

#### Remove a Site

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

{% tab title="REST API" %}
Endpoint: **`DELETE`** `api/v10/content/draft/clients/{clientIdentifier}/sites/{siteIdentifier}`
{% endtab %}
{% endtabs %}

#### Remove a Building

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

{% tab title="REST API" %}
Endpoint: **`DELETE`** `api/v10/content/draft/clients/{clientIdentifier}/sites/{siteIdentifier}/buildings/{buildingIdentifier}`
{% endtab %}
{% endtabs %}

#### Remove a Level

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

{% tab title="REST API" %}
Endpoint: **`DELETE`** `api/v10/content/draft/clients/{clientIdentifier}/sites/{siteIdentifier}/buildings/{buildingIdentifier}/levels/{levelIndex}`
{% endtab %}
{% endtabs %}

#### Assign a Default Level

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


---

# 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/create-a-map.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.
