Skip to main content
Validate map category

Schema Structure

  • type (string) - enum: map - default: map (required)
  • data (object - ref: Base Map Component location object) (required) — Contains provider, latitude, longitude, placeId, and optionally placeName.

Components Used

This category uses the following components:

Schema

{
  "$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"
    }
  }
}

Example

{
  "type": "map",
  "data": {
    "provider": "google",
    "latitude": 40.724974,
    "longitude": -73.9337742,
    "placeId": "ChIJNXse7rRewokRNinJ2bCR8ss",
    "placeName": "2100 Cherry St, Brooklyn, NY 11222, USA"
  }
}