{
 "generated_at": "2026-10-17T00:37:28+09:00",
 "data_through": {
  "crime": 2025,
  "accident": 2025
 },
 "source": [
  {
   "name": "北海道警察 犯罪オープンデータ",
   "publisher": "北海道警察",
   "url": "https://www.npa.go.jp/toukei/seianki/hanzaiopendatalink.html",
   "license": "CC BY 4.0",
   "note": "窃盗7手口。tokeilab が町丁目単位に集計・加工した"
  },
  {
   "name": "警察庁 交通事故統計情報のオープンデータ",
   "publisher": "警察庁",
   "url": "https://www.npa.go.jp/publications/statistics/koutsuu/opendata/index_opendata.html",
   "license": "公共データ利用規約 第1.0版（PDL1.0）。警察庁ウェブサイト利用規約に従い、編集・加工した旨を記載する",
   "note": "人身事故のみ。tokeilab が町丁目・50m格子に集計・加工した"
  },
  {
   "name": "e-Stat 国勢調査 2020年 小地域（町丁・字等）境界・人口",
   "publisher": "総務省統計局",
   "url": "https://www.e-stat.go.jp/gis/statmap-search?page=1&type=2&aggregateUnitForBoundary=A&toukeiCode=00200521&toukeiYear=2020",
   "license": "政府標準利用規約（第2.0版）。出典を明記し、加工した旨を記載する",
   "note": "町丁目の人口・世帯数・重心"
  },
  {
   "name": "e-Stat 令和2年国勢調査 従業地・通学地による人口・就業状態等集計 第1-1表（昼間人口）",
   "publisher": "総務省統計局",
   "url": "https://www.e-stat.go.jp/stat-search/file-download?statInfId=000032214141&fileKind=0",
   "license": "政府標準利用規約（第2.0版）準拠（CC BY 4.0 互換）。出典を明記し、加工した旨を記載する",
   "note": "市区町村の昼間人口。市区町村の人口あたりの件数の分母（夜間人口と昼間人口の大きい方）に使った"
  }
 ],
 "license": "CC-BY-4.0",
 "license_notice": "CC BY 4.0, tokeilab。都道府県警察の犯罪オープンデータ、警察庁の交通事故統計情報のオープンデータ、警視庁の町丁別集計表、e-Stat 国勢調査を tokeilab が加工して作成。",
 "schema_url": "https://tokeilab.org/schema/safety/",
 "canonical_url": "https://tokeilab.org/safety/01362/",
 "language": "ja",
 "title": "北海道上ノ国町の全国治安指数と犯罪・事故の件数",
 "data": {
  "city_code": "01362",
  "city_name": "上ノ国町",
  "pref_code": "01",
  "pref_name": "北海道",
  "population": 4306,
  "n_units": 28,
  "lat": 41.779702,
  "lon": 140.122448,
  "data_through": {
   "crime": 2025,
   "accident": 2025
  },
  "crime_years": [
   2018,
   2019,
   2020,
   2021,
   2022,
   2023,
   2024,
   2025
  ],
  "crime_totals": {
   "ひったくり": {
    "years": {
     "2018": 0,
     "2019": 0,
     "2020": 0,
     "2021": 0,
     "2022": 0,
     "2023": 0,
     "2024": 0,
     "2025": 0
    },
    "unassigned_share_latest": null
   },
   "車上ねらい": {
    "years": {
     "2018": 1,
     "2019": 5,
     "2020": 1,
     "2021": 0,
     "2022": 0,
     "2023": 1,
     "2024": 0,
     "2025": 0
    },
    "unassigned_share_latest": null
   },
   "部品ねらい": {
    "years": {
     "2018": 0,
     "2019": 0,
     "2020": 0,
     "2021": 0,
     "2022": 0,
     "2023": 0,
     "2024": 0,
     "2025": 0
    },
    "unassigned_share_latest": null
   },
   "自動販売機ねらい": {
    "years": {
     "2018": 0,
     "2019": 0,
     "2020": 0,
     "2021": 0,
     "2022": 0,
     "2023": 0,
     "2024": 0,
     "2025": 0
    },
    "unassigned_share_latest": null
   },
   "自動車盗": {
    "years": {
     "2018": 0,
     "2019": 0,
     "2020": 1,
     "2021": 0,
     "2022": 0,
     "2023": 0,
     "2024": 0,
     "2025": 0
    },
    "unassigned_share_latest": null
   },
   "オートバイ盗": {
    "years": {
     "2018": 0,
     "2019": 0,
     "2020": 0,
     "2021": 0,
     "2022": 0,
     "2023": 0,
     "2024": 0,
     "2025": 0
    },
    "unassigned_share_latest": null
   },
   "自転車盗": {
    "years": {
     "2018": 0,
     "2019": 0,
     "2020": 1,
     "2021": 0,
     "2022": 0,
     "2023": 0,
     "2024": 0,
     "2025": 0
    },
    "unassigned_share_latest": null
   }
  },
  "accident_totals": {
   "years": {
    "2019": {
     "accidents": 1,
     "deaths": 0,
     "injured": 4,
     "person_vs_vehicle": 0,
     "vehicle_vs_vehicle": 1,
     "single_vehicle": 0,
     "pedestrian": 0,
     "bicycle": 0,
     "night": 1
    },
    "2020": {
     "accidents": 1,
     "deaths": 0,
     "injured": 2,
     "person_vs_vehicle": 0,
     "vehicle_vs_vehicle": 1,
     "single_vehicle": 0,
     "pedestrian": 0,
     "bicycle": 0,
     "night": 0
    },
    "2021": {
     "accidents": 1,
     "deaths": 0,
     "injured": 1,
     "person_vs_vehicle": 0,
     "vehicle_vs_vehicle": 1,
     "single_vehicle": 0,
     "pedestrian": 0,
     "bicycle": 0,
     "night": 0
    },
    "2022": {
     "accidents": 1,
     "deaths": 0,
     "injured": 1,
     "person_vs_vehicle": 1,
     "vehicle_vs_vehicle": 0,
     "single_vehicle": 0,
     "pedestrian": 1,
     "bicycle": 0,
     "night": 0
    },
    "2023": {
     "accidents": 0,
     "deaths": 0,
     "injured": 0,
     "person_vs_vehicle": 0,
     "vehicle_vs_vehicle": 0,
     "single_vehicle": 0,
     "pedestrian": 0,
     "bicycle": 0,
     "night": 0
    },
    "2024": {
     "accidents": 1,
     "deaths": 0,
     "injured": 1,
     "person_vs_vehicle": 0,
     "vehicle_vs_vehicle": 1,
     "single_vehicle": 0,
     "pedestrian": 0,
     "bicycle": 0,
     "night": 1
    },
    "2025": {
     "accidents": 1,
     "deaths": 0,
     "injured": 3,
     "person_vs_vehicle": 0,
     "vehicle_vs_vehicle": 1,
     "single_vehicle": 0,
     "pedestrian": 0,
     "bicycle": 0,
     "night": 0
    }
   },
   "latest_provisional": true
  },
  "city_only": false,
  "tokyo": null,
  "n_units_pop": 1,
  "notes": [],
  "crime_types": [
   "ひったくり",
   "車上ねらい",
   "部品ねらい",
   "自動販売機ねらい",
   "自動車盗",
   "オートバイ盗",
   "自転車盗"
  ],
  "crime_columns": [
   "count_latest",
   "per_10k_latest",
   "rank_count",
   "rank_per_10k",
   "rank_shown",
   "change_2018_diff",
   "change_2018_ratio",
   "change_3y_diff",
   "change_3y_ratio",
   "evaluable"
  ],
  "ranks_note": "rank_count の母数は n_units、rank_per_10k の母数は n_units_pop。rank_shown=1 のときだけ順位を出す、evaluable=1 のときだけ増減を出す",
  "town_page_template": "https://tokeilab.org/safety/01362/<unit_code>/",
  "index": {
   "score": 97,
   "reason": null,
   "crime_position": 92,
   "accident_position": 98,
   "crime_rate_10k": 1.6,
   "accident_rate_10k": 3.2,
   "crime_last_year": 2025,
   "accident_last_year": 2025,
   "window_years": 3,
   "n_scored": 1753,
   "size_adjusted": false,
   "denominator_population": 4130,
   "night_population": 4306,
   "day_population": 3954
  },
  "index_caveat": "窃盗の7種類（ひったくり・車上ねらい・部品ねらい・自動販売機ねらい・自動車盗・オートバイ盗・自転車盗）と人身事故の、人口あたりの件数から計算した指数です。暴行・傷害・性犯罪・詐欺などは含まれず、治安のすべてを表すものではありません。人口の多い都市の町は件数が多くなりやすく、点数が低く出る傾向があります。市区町村の点数は、昼間に人が多く集まる所に配慮して、夜間人口と昼間人口の平均で計算しています。",
  "index_reading": "index.score は 0〜100（高いほど人口あたりの件数が少ない側。全国の中での位置で、市区町村は夜間人口と昼間人口の平均で割った値）。null のときは index.reason（population_small | no_crime_data）。towns[].idx は町丁目の同じ指数（null は点数なし）",
  "towns": [
   {
    "unit_code": "013620011",
    "name": "字神明",
    "population": 13,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0,
    "idx": null,
    "name_arabic": "字神明"
   },
   {
    "unit_code": "013620012",
    "name": "字湯ノ岱",
    "population": 183,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0,
    "idx": null,
    "name_arabic": "字湯ノ岱"
   },
   {
    "unit_code": "013620020",
    "name": "字宮越",
    "population": 38,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0,
    "idx": null,
    "name_arabic": "字宮越"
   },
   {
    "unit_code": "013620030",
    "name": "字早瀬",
    "population": 33,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0,
    "idx": null,
    "name_arabic": "字早瀬"
   },
   {
    "unit_code": "013620040",
    "name": "字桂岡",
    "population": 143,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0,
    "idx": null,
    "name_arabic": "字桂岡"
   },
   {
    "unit_code": "013620050",
    "name": "字小森",
    "population": 57,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0,
    "idx": null,
    "name_arabic": "字小森"
   },
   {
    "unit_code": "013620060",
    "name": "字豊田",
    "population": 109,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0,
    "idx": null,
    "name_arabic": "字豊田"
   },
   {
    "unit_code": "013620070",
    "name": "字中須田",
    "population": 364,
    "crime": {},
    "accidents_latest": 1,
    "accidents_total": 1,
    "idx": null,
    "name_arabic": "字中須田"
   },
   {
    "unit_code": "013620080",
    "name": "字新村",
    "population": 177,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 1,
    "idx": null,
    "name_arabic": "字新村"
   },
   {
    "unit_code": "013620091",
    "name": "中央区",
    "population": 239,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0,
    "idx": null,
    "name_arabic": "中央区"
   },
   {
    "unit_code": "013620092",
    "name": "字大留",
    "population": 867,
    "crime": {
     "自転車盗": [
      0,
      0.0,
      null,
      null,
      0,
      null,
      null,
      null,
      null,
      0
     ],
     "車上ねらい": [
      0,
      0.0,
      null,
      null,
      0,
      null,
      null,
      null,
      null,
      0
     ]
    },
    "accidents_latest": 0,
    "accidents_total": 3,
    "idx": null,
    "name_arabic": "字大留"
   },
   {
    "unit_code": "013620100",
    "name": "字北村",
    "population": 415,
    "crime": {
     "車上ねらい": [
      0,
      null,
      null,
      null,
      0,
      null,
      null,
      null,
      null,
      0
     ]
    },
    "accidents_latest": 0,
    "accidents_total": 0,
    "idx": null,
    "name_arabic": "字北村"
   },
   {
    "unit_code": "013620110",
    "name": "字内郷",
    "population": 12,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0,
    "idx": null,
    "name_arabic": "字内郷"
   },
   {
    "unit_code": "013620120",
    "name": "字向浜",
    "population": 127,
    "crime": {
     "車上ねらい": [
      0,
      null,
      null,
      null,
      0,
      null,
      null,
      null,
      null,
      0
     ]
    },
    "accidents_latest": 0,
    "accidents_total": 0,
    "idx": null,
    "name_arabic": "字向浜"
   },
   {
    "unit_code": "013620130",
    "name": "字上ノ国",
    "population": 353,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0,
    "idx": null,
    "name_arabic": "字上ノ国"
   },
   {
    "unit_code": "013620140",
    "name": "字勝山",
    "population": 144,
    "crime": {
     "車上ねらい": [
      0,
      null,
      null,
      null,
      0,
      null,
      null,
      null,
      null,
      0
     ]
    },
    "accidents_latest": 0,
    "accidents_total": 0,
    "idx": null,
    "name_arabic": "字勝山"
   },
   {
    "unit_code": "013620150",
    "name": "字原歌",
    "population": 36,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0,
    "idx": null,
    "name_arabic": "字原歌"
   },
   {
    "unit_code": "013620160",
    "name": "字大崎",
    "population": 97,
    "crime": {
     "車上ねらい": [
      0,
      null,
      null,
      null,
      0,
      null,
      null,
      null,
      null,
      0
     ]
    },
    "accidents_latest": 0,
    "accidents_total": 0,
    "idx": null,
    "name_arabic": "字大崎"
   },
   {
    "unit_code": "013620170",
    "name": "字大安在",
    "population": 3,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0,
    "idx": null,
    "name_arabic": "字大安在"
   },
   {
    "unit_code": "013620180",
    "name": "字小安在",
    "population": 58,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0,
    "idx": null,
    "name_arabic": "字小安在"
   },
   {
    "unit_code": "013620190",
    "name": "字木ノ子",
    "population": 96,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 1,
    "idx": null,
    "name_arabic": "字木ノ子"
   },
   {
    "unit_code": "013620200",
    "name": "字扇石",
    "population": 157,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0,
    "idx": null,
    "name_arabic": "字扇石"
   },
   {
    "unit_code": "013620210",
    "name": "字汐吹",
    "population": 218,
    "crime": {
     "自動車盗": [
      0,
      null,
      null,
      null,
      0,
      null,
      null,
      null,
      null,
      0
     ]
    },
    "accidents_latest": 0,
    "accidents_total": 0,
    "idx": null,
    "name_arabic": "字汐吹"
   },
   {
    "unit_code": "013620220",
    "name": "字羽根差",
    "population": 0,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0,
    "idx": null,
    "name_arabic": "字羽根差"
   },
   {
    "unit_code": "013620230",
    "name": "字石崎",
    "population": 246,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0,
    "idx": null,
    "name_arabic": "字石崎"
   },
   {
    "unit_code": "013620240",
    "name": "字早川",
    "population": 0,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0,
    "idx": null,
    "name_arabic": "字早川"
   },
   {
    "unit_code": "013620250",
    "name": "字館野",
    "population": 21,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0,
    "idx": null,
    "name_arabic": "字館野"
   },
   {
    "unit_code": "013620260",
    "name": "字小砂子",
    "population": 100,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0,
    "idx": null,
    "name_arabic": "字小砂子"
   }
  ],
  "pref_url": "https://tokeilab.org/safety/01/",
  "map_url": "https://tokeilab.org/safety/map/?lat=41.779702&lon=140.122448&z=14"
 }
}