{
  "name": "EvacuationSite",
  "description": "One designated emergency evacuation site (指定緊急避難場所, Basic Act on Disaster Management Art. 49-4): the master record a municipality publishes in its 指定緊急避難場所一覧, designated per hazard. At least one of externalSiteId, nationalShelterId is not null. Type https://datamodels.jp/ns/disaster/EvacuationSite; @context https://datamodels.jp/context/disaster/v1.jsonld.",
  "strict": true,
  "schema": {
    "type": "object",
    "properties": {
      "name": {
        "type": "string",
        "description": "Name of the site or the building (名称)"
      },
      "nameKana": {
        "type": [
          "string",
          "null"
        ],
        "description": "Name in full-width katakana (名称_カナ)"
      },
      "nameEn": {
        "type": [
          "string",
          "null"
        ],
        "description": "Name in English (名称_英字)"
      },
      "externalSiteId": {
        "type": [
          "string",
          "null"
        ],
        "description": "The site's ID in the municipality's 指定緊急避難場所一覧 (自治体標準オープンデータセット; unique within the municipality). Together with localGovernmentCode it identifies the site nationwide. Required unless nationalShelterId is given (GSI's data has no municipal ID)"
      },
      "nationalShelterId": {
        "type": [
          "string",
          "null"
        ],
        "pattern": "^E[0-9]{10}20[1-9A-Za-z]$",
        "description": "The nationwide common shelter/evacuation-site ID (14 characters, the '共通ID' of GSI's designated emergency evacuation site data). Only type code 20 (designated emergency evacuation site) is valid on this model. Leave it out when none is assigned. Its structure and source are described once, in EvacuationShelter's mapping 'nationwide common shelter/evacuation-site ID' (gsi-national-shelter-id). Required when externalSiteId is not given"
      },
      "localGovernmentCode": {
        "type": "string",
        "pattern": "^\\d{6}$",
        "description": "Local government code of the municipality that designates the site and publishes the list (全国地方公共団体コード, 6 digits)"
      },
      "address": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "addressCountry": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "JP",
              null
            ],
            "description": "Country. Always JP"
          },
          "postalCode": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^\\d{3}-?\\d{4}$",
            "description": "Postal code, 7 digits with or without hyphen"
          },
          "addressRegion": {
            "type": [
              "string",
              "null"
            ],
            "description": "Prefecture name"
          },
          "addressLocality": {
            "type": [
              "string",
              "null"
            ],
            "description": "Municipality name. For designated cities includes the ward (e.g. 横浜市中区)"
          },
          "machiaza": {
            "type": [
              "string",
              "null"
            ],
            "description": "Town or district name (町字: 町名, 大字, 字), without chome"
          },
          "chome": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^\\d+$",
            "description": "Chome (丁目), digits only (\"一丁目\" → \"1\")"
          },
          "banchi": {
            "type": [
              "string",
              "null"
            ],
            "description": "Banchi (番地): in a residential-indication area the block number (街区符号); elsewhere the whole lot number (地番), branch number included, for example 4638-1"
          },
          "go": {
            "type": [
              "string",
              "null"
            ],
            "description": "Go (号): in a residential-indication area the residence number (住居番号). Empty for a lot number (地番): its branch number stays in banchi"
          },
          "buildingName": {
            "type": [
              "string",
              "null"
            ],
            "description": "Building name, room number and anything below go"
          },
          "residentialIndication": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "true in a residential-indication area (banchi/go are block and residence numbers), false for lot numbers (地番)"
          },
          "jisPrefectureCode": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^\\d{2}$",
            "description": "Prefecture code (JIS X 0401, 2 digits)"
          },
          "jisMunicipalityCode": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^\\d{5}$",
            "description": "Municipality code (JIS X 0402, 5 digits including the prefecture code)"
          },
          "localGovernmentCode": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^\\d{6}$",
            "description": "Local government code (全国地方公共団体コード: JIS X 0402 plus a check digit, 6 digits)"
          },
          "abrMachiazaId": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^\\d{7}$",
            "description": "Address Base Registry town id (町字ID, 7 digits). Unique together with localGovernmentCode"
          },
          "addressText": {
            "type": [
              "string",
              "null"
            ],
            "description": "Full address as one normalised line. Also the fallback when structured fields are unavailable"
          }
        },
        "required": [
          "addressCountry",
          "postalCode",
          "addressRegion",
          "addressLocality",
          "machiaza",
          "chome",
          "banchi",
          "go",
          "buildingName",
          "residentialIndication",
          "jisPrefectureCode",
          "jisMunicipalityCode",
          "localGovernmentCode",
          "abrMachiazaId",
          "addressText"
        ],
        "additionalProperties": false,
        "description": "Address of the site, as a JapaneseAddress value (common subject). Its localGovernmentCode is the code of the municipality the site lies in, which can differ from the publisher's"
      },
      "location": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "Point"
            ]
          },
          "coordinates": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "description": "[longitude, latitude] in WGS 84, optionally with the altitude as a third number"
          }
        },
        "required": [
          "type",
          "coordinates"
        ],
        "additionalProperties": false,
        "description": "Where the site is, as a point A GeoJSON geometry (Point)."
      },
      "elevation": {
        "type": [
          "number",
          "null"
        ],
        "description": "Elevation of the site in metres above mean sea level (標高)"
      },
      "hazardTypes": {
        "type": [
          "array",
          "null"
        ],
        "items": {
          "type": "string",
          "enum": [
            "flood",
            "landslide",
            "stormSurge",
            "earthquake",
            "tsunami",
            "greatFire",
            "inlandFlood",
            "eruption"
          ]
        },
        "minItems": 1,
        "description": "The hazards the site is designated for (災害種別; designation is per hazard): flood (洪水), landslide (崖崩れ、土石流及び地滑り), stormSurge (高潮), earthquake (地震), tsunami (津波), greatFire (大規模な火事), inlandFlood (内水氾濫), eruption (火山現象) (no duplicates)"
      },
      "alsoDesignatedShelter": {
        "type": [
          "boolean",
          "null"
        ],
        "description": "true when the site is also a designated shelter (指定避難所との重複)"
      },
      "alsoWelfareShelter": {
        "type": [
          "boolean",
          "null"
        ],
        "description": "true when the site is also a designated welfare shelter (指定福祉避難所との重複)"
      },
      "maxCapacity": {
        "type": [
          "integer",
          "null"
        ],
        "description": "Number of people the site is planned to hold (想定収容人数) (minimum 0)"
      },
      "targetAreas": {
        "type": [
          "array",
          "null"
        ],
        "items": {
          "type": "string"
        },
        "description": "Neighbourhood associations or areas that evacuate to this site (対象となる町会・自治会)"
      },
      "telephone": {
        "type": [
          "string",
          "null"
        ],
        "description": "Contact telephone number"
      },
      "url": {
        "type": [
          "string",
          "null"
        ],
        "description": "Web page of the site (a URI)"
      },
      "description": {
        "type": [
          "string",
          "null"
        ],
        "description": "Remarks (備考)"
      }
    },
    "required": [
      "name",
      "nameKana",
      "nameEn",
      "externalSiteId",
      "nationalShelterId",
      "localGovernmentCode",
      "address",
      "location",
      "elevation",
      "hazardTypes",
      "alsoDesignatedShelter",
      "alsoWelfareShelter",
      "maxCapacity",
      "targetAreas",
      "telephone",
      "url",
      "description"
    ],
    "additionalProperties": false
  }
}
