> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scanova.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Map category schema

> Validate map category

Validate map category

## Schema Structure

* **type** (`string`) - enum: map - default: map **(required)**
* **data** (`object` - ref: [Base Map Component](/guides/category-components/components/_base_map) location object) **(required)** — Contains `provider`, `latitude`, `longitude`, `placeId`, and optionally `placeName`.

## Components Used

This category uses the following components:

* [ Base Map](/guides/category-components/components/_base_map)

## Schema

<CodeGroup>
  ```json Schema theme={null}
  {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "title": "Map category schema",
    "description": "Validate map category",
    "examples": [],
    "required": [
      "type",
      "data"
    ],
    "additionalProperties": false,
    "properties": {
      "type": {
        "type": "string",
        "enum": [
          "map"
        ],
        "default": "map"
      },
      "data": {
        "$ref": "components/_base_map.json#properties/location"
      }
    }
  }
  ```
</CodeGroup>

## Example

<CodeGroup>
  ```json Example theme={null}
  {
    "type": "map",
    "data": {
      "provider": "google",
      "latitude": 40.724974,
      "longitude": -73.9337742,
      "placeId": "ChIJNXse7rRewokRNinJ2bCR8ss",
      "placeName": "2100 Cherry St, Brooklyn, NY 11222, USA"
    }
  }
  ```
</CodeGroup>
