{
  "type": "RoadRestriction",
  "domain": "transportation",
  "description": "通行規制（通行止めを含む）1 件のデータです。路線名、規制区間（点、線、面）、状態、区分、期間を持ちます。",
  "contextUrl": "https://datamodels.jp/context/transportation/v1.jsonld",
  "propertyDetails": {
    "roadName": {
      "ngsiType": "Property",
      "valueType": "string",
      "example": "靖国通り",
      "required": false,
      "description": "路線名",
      "@context": "https://smartdatamodels.org/dataModel.Transportation/roadName"
    },
    "roadType": {
      "ngsiType": "Property",
      "valueType": "string",
      "example": null,
      "required": false,
      "description": "道路法第 3 条の道路の種類：expressway（高速自動車国道）、nationalRoad（一般国道）、prefecturalRoad（都道府県道）、municipalRoad（市町村道）、other（農道、林道、私道など、道路法の道路でないもの）。自動車専用道路は道路の種類ではなく指定なので、その道路の種類を入れます。",
      "@context": "https://datamodels.jp/ns/transportation/roadType",
      "validation": {
        "enum": [
          "expressway",
          "nationalRoad",
          "prefecturalRoad",
          "municipalRoad",
          "other"
        ]
      }
    },
    "address": {
      "ngsiType": "Property",
      "valueType": "object",
      "example": {
        "addressRegion": "東京都",
        "addressLocality": "千代田区",
        "machiaza": "九段南",
        "chome": "1",
        "jisMunicipalityCode": "13101",
        "addressText": "東京都千代田区九段南1丁目"
      },
      "required": false,
      "description": "住所（common サブジェクトの値型 JapaneseAddress）",
      "@context": "https://schema.org/address"
    },
    "location": {
      "ngsiType": "GeoProperty",
      "valueType": "geojson",
      "example": {
        "type": "LineString",
        "coordinates": [
          [
            139.7505,
            35.695
          ],
          [
            139.752,
            35.6956
          ]
        ]
      },
      "required": true,
      "description": "規制区間。点（単独の地点）、線（区間）、面（区域）の GeoJSON ジオメトリです。警察庁「交通規制情報（拡張版標準フォーマット）」の点規制、線規制、面規制にあたります。",
      "@context": "https://uri.etsi.org/ngsi-ld/location"
    },
    "restrictionLength": {
      "ngsiType": "Property",
      "valueType": "number",
      "example": 150,
      "required": false,
      "description": "線規制の規制区間の延長（メートル）。警察庁「交通規制情報（拡張版標準フォーマット）」の距離・延長（項目 133）と、EEI の距離・延長にあたります。ジオメトリを簡略化していても、延長がわかります。",
      "@context": "https://datamodels.jp/ns/transportation/restrictionLength",
      "validation": {
        "minimum": 0
      }
    },
    "maximumAllowedWeight": {
      "ngsiType": "Property",
      "valueType": "number",
      "example": null,
      "required": false,
      "description": "重量制限（キログラム）。これより重い車両は通れません（例：制限重量 4 トンなら 4000）。Smart Data Models の RoadSegment と同じ属性で、警察庁のフォーマットでは制限重量（項目 135、単位はトン）にあたります。車両総重量か最大積載量かは元のデータに従い、その呼び方は statusLabel に残します。",
      "@context": "https://smartdatamodels.org/dataModel.Transportation/maximumAllowedWeight",
      "validation": {
        "minimum": 0
      }
    },
    "restrictionStatus": {
      "ngsiType": "Property",
      "valueType": "string",
      "example": "closed",
      "required": false,
      "description": "正規化した状態。値は Smart Data Models の RoadSegment.status と同じです：closed（通行不可）、limited（片側通行など）、open（解除済み、または未実施）。現場での呼び方は statusLabel に、より細かい区分は regulationCategory に書きます。合う値がないときは省き、statusLabel だけを送ります。",
      "@context": "https://datamodels.jp/ns/transportation/restrictionStatus",
      "validation": {
        "enum": [
          "closed",
          "limited",
          "open"
        ]
      }
    },
    "regulationCategory": {
      "ngsiType": "Property",
      "valueType": "string",
      "example": "closedWeather",
      "required": false,
      "description": "規制区分。国土交通省の道路情報提供システムの凡例に合わせています（表記はサイトの凡例のまま）：closedWeather（通行止(異常気象等)）、closedConstruction（通行止(工事)）、closedHeavyVehicle（大型通行止）、closedWinter（冬期通行止）、laneRestriction（車線規制）、alternatingOneWay（片側交互通行）、mobileRestriction（移動規制）、chainRestriction（チェーン規制）、chainGuidance（チェーン指導）、other（その他規制）。closedWeather には、土砂崩落や路肩決壊など災害による通行止めも含みます。任意の属性です。",
      "@context": "https://datamodels.jp/ns/transportation/regulationCategory",
      "validation": {
        "enum": [
          "closedWeather",
          "closedConstruction",
          "closedHeavyVehicle",
          "closedWinter",
          "laneRestriction",
          "alternatingOneWay",
          "mobileRestriction",
          "chainRestriction",
          "chainGuidance",
          "other"
        ]
      }
    },
    "statusLabel": {
      "ngsiType": "Property",
      "valueType": "string",
      "example": "通行止め中",
      "required": false,
      "description": "現場や元のシステムでの状態の呼び方（例：依頼中、通行止め中、解除済み）。restrictionStatus を省いたときは必須です。",
      "@context": "https://datamodels.jp/ns/task/statusLabel",
      "validation": {
        "minLength": 1
      }
    },
    "validFrom": {
      "ngsiType": "Property",
      "valueType": "datetime",
      "example": "2026-07-08T10:45:00+09:00",
      "required": false,
      "description": "規制の開始",
      "@context": "https://smartdatamodels.org/validFrom"
    },
    "validTo": {
      "ngsiType": "Property",
      "valueType": "datetime",
      "example": null,
      "required": false,
      "description": "規制の解除",
      "@context": "https://smartdatamodels.org/dataModel.Alert/validTo"
    },
    "description": {
      "ngsiType": "Property",
      "valueType": "string",
      "example": "アンダーパス冠水のため通行止め",
      "required": false,
      "description": "メモ",
      "@context": "http://purl.org/dc/terms/description"
    }
  },
  "additionalProperties": false
}
