Skip to content

GeoJSON Taxonomy Schema

This document provides a comprehensive overview of the JSON schema titled "Generated schema for Root." This schema is designed to validate an array of objects, where each object contains various properties related to a specific feature. The schema adheres to the JSON Schema Draft 07 standard.

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Generated schema for Root",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "tid": {
        "type": "number"
      },
      "typeCode": {
        "type": "string"
      },
      "typeName": {
        "type": "string"
      },
      "description": {
        "type": "string"
      },
      "categories": {
        "type": "string"
      },
      "isMapObject": {
        "type": "boolean"
      },
      "shape": {
        "type": "string"
      },
      "class": {
        "type": "string"
      },
      "isWalkable": {
        "type": "boolean"
      },
      "transitionDirection": {
        "type": [ "string", "null" ]
      },
      "transitionTravelTime": {
        "type": [ "string", "null" ]
      },
      "isTransitionAccessible": {
        "type": [ "string", "null" ]
      },
      "isTransitionComfortable": {
        "type": [ "string", "null" ]
      },
      "featureName": {
        "type": "string"
      },
      "featureDescription": {
        "type": "string"
      }
    },
    "required": [
      "tid",
      "typeCode",
      "typeName",
      "description",
      "categories",
      "isMapObject",
      "shape",
      "class",
      "isWalkable",
      "featureName",
      "featureDescription"
    ]
  }
}

Schema Overview

  • Title: Generated schema for Root
  • Type: Array
  • Description: This schema defines an array where each item must be an object with specific properties.

Array Items

Each item in the array must be an object structured as follows:

Object Properties

  1. tid

    • Type: Number
    • Description: A unique identifier for the feature.
  2. typeCode

    • Type: String
    • Description: A code representing the type of feature.
  3. typeName

    • Type: String
    • Description: The name associated with the type of feature.
  4. description

    • Type: String
    • Description: A text description of the feature.
  5. categories

    • Type: String
    • Description: Categories applicable to the feature.
  6. isMapObject

    • Type: Boolean
    • Description: Indicates whether the feature is a map object.
  7. shape

    • Type: String
    • Description: The geometric shape associated with the feature.
  8. class

    • Type: String
    • Description: The classification of the feature.
  9. isWalkable

    • Type: Boolean
    • Description: Indicates if the feature is walkable.
  10. transitionDirection (Optional)

    • Type: String or Null
    • Description: The direction of transition, if applicable.
  11. transitionTravelTime (Optional)

    • Type: String or Null
    • Description: The estimated travel time for a transition, if applicable.
  12. isTransitionAccessible (Optional)

    • Type: String or Null
    • Description: Indicates if the transition is accessible.
  13. isTransitionComfortable (Optional)

    • Type: String or Null
    • Description: Indicates if the transition is comfortable.
  14. featureName

    • Type: String
    • Description: A name that identifies the feature.
  15. featureDescription

    • Type: String
    • Description: A description providing more details about the feature.

Required Properties

Each object in the array must include the following required properties:

  • tid
  • typeCode
  • typeName
  • description
  • categories
  • isMapObject
  • shape
  • class
  • isWalkable
  • featureName
  • featureDescription

This schema aims to ensure a consistent and comprehensive structure for each feature object, facilitating uniformity and data integrity across multiple entries. Optional fields provide flexibility for additional attributes related to transitions.