{
 "generated_at": "2026-10-16T11:05:14+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": "町丁目の人口・世帯数・重心"
  }
 ],
 "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/01331/",
 "language": "ja",
 "title": "北海道松前町の町丁目ごとの犯罪・事故の件数",
 "data": {
  "city_code": "01331",
  "city_name": "松前町",
  "pref_code": "01",
  "pref_name": "北海道",
  "population": 6260,
  "n_units": 34,
  "lat": 41.467058,
  "lon": 140.083573,
  "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": 2,
     "2019": 0,
     "2020": 0,
     "2021": 2,
     "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": 1
    },
    "unassigned_share_latest": 0.0
   },
   "自動販売機ねらい": {
    "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": 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
   }
  },
  "accident_totals": {
   "years": {
    "2019": {
     "accidents": 4,
     "deaths": 1,
     "injured": 5,
     "person_vs_vehicle": 1,
     "vehicle_vs_vehicle": 3,
     "single_vehicle": 0,
     "pedestrian": 1,
     "bicycle": 0,
     "night": 2
    },
    "2020": {
     "accidents": 4,
     "deaths": 0,
     "injured": 5,
     "person_vs_vehicle": 0,
     "vehicle_vs_vehicle": 3,
     "single_vehicle": 1,
     "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": 5,
     "deaths": 1,
     "injured": 6,
     "person_vs_vehicle": 0,
     "vehicle_vs_vehicle": 5,
     "single_vehicle": 0,
     "pedestrian": 0,
     "bicycle": 0,
     "night": 3
    },
    "2023": {
     "accidents": 3,
     "deaths": 0,
     "injured": 3,
     "person_vs_vehicle": 0,
     "vehicle_vs_vehicle": 2,
     "single_vehicle": 1,
     "pedestrian": 0,
     "bicycle": 1,
     "night": 0
    },
    "2024": {
     "accidents": 3,
     "deaths": 0,
     "injured": 3,
     "person_vs_vehicle": 0,
     "vehicle_vs_vehicle": 3,
     "single_vehicle": 0,
     "pedestrian": 0,
     "bicycle": 1,
     "night": 0
    },
    "2025": {
     "accidents": 2,
     "deaths": 0,
     "injured": 2,
     "person_vs_vehicle": 1,
     "vehicle_vs_vehicle": 1,
     "single_vehicle": 0,
     "pedestrian": 1,
     "bicycle": 0,
     "night": 1
    }
   },
   "latest_provisional": true
  },
  "city_only": false,
  "tokyo": null,
  "n_units_pop": 2,
  "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/01331/<unit_code>/",
  "towns": [
   {
    "unit_code": "013310010",
    "name": "字神山",
    "population": 16,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 1
   },
   {
    "unit_code": "013310020",
    "name": "字原口",
    "population": 184,
    "crime": {
     "車上ねらい": [
      0,
      null,
      null,
      null,
      0,
      null,
      null,
      null,
      null,
      0
     ]
    },
    "accidents_latest": 0,
    "accidents_total": 0
   },
   {
    "unit_code": "013310030",
    "name": "字白坂",
    "population": 0,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0
   },
   {
    "unit_code": "013310040",
    "name": "字二越",
    "population": 83,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0
   },
   {
    "unit_code": "013310050",
    "name": "字江良",
    "population": 694,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 1
   },
   {
    "unit_code": "013310060",
    "name": "字大津",
    "population": 28,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0
   },
   {
    "unit_code": "013310070",
    "name": "字高野",
    "population": 0,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0
   },
   {
    "unit_code": "013310080",
    "name": "字清部",
    "population": 251,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0
   },
   {
    "unit_code": "013310090",
    "name": "字小浜",
    "population": 14,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0
   },
   {
    "unit_code": "013310100",
    "name": "字茂草",
    "population": 200,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0
   },
   {
    "unit_code": "013310110",
    "name": "字静浦",
    "population": 299,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0
   },
   {
    "unit_code": "013310120",
    "name": "字赤神",
    "population": 213,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 1
   },
   {
    "unit_code": "013310130",
    "name": "字札前",
    "population": 190,
    "crime": {
     "車上ねらい": [
      0,
      null,
      null,
      null,
      0,
      null,
      null,
      null,
      null,
      0
     ],
     "部品ねらい": [
      1,
      null,
      1,
      null,
      0,
      null,
      null,
      null,
      null,
      0
     ]
    },
    "accidents_latest": 0,
    "accidents_total": 2
   },
   {
    "unit_code": "013310140",
    "name": "字館浜",
    "population": 282,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 1
   },
   {
    "unit_code": "013310150",
    "name": "字建石",
    "population": 387,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 3
   },
   {
    "unit_code": "013310160",
    "name": "字弁天",
    "population": 263,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 2
   },
   {
    "unit_code": "013310170",
    "name": "字愛宕",
    "population": 100,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0
   },
   {
    "unit_code": "013310180",
    "name": "字大磯",
    "population": 364,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 1
   },
   {
    "unit_code": "013310190",
    "name": "字博多",
    "population": 354,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0
   },
   {
    "unit_code": "013310200",
    "name": "字西館",
    "population": 0,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0
   },
   {
    "unit_code": "013310210",
    "name": "字唐津",
    "population": 209,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 1
   },
   {
    "unit_code": "013310220",
    "name": "字松城",
    "population": 128,
    "crime": {
     "車上ねらい": [
      0,
      null,
      null,
      null,
      0,
      null,
      null,
      null,
      null,
      0
     ]
    },
    "accidents_latest": 0,
    "accidents_total": 1
   },
   {
    "unit_code": "013310230",
    "name": "字神明",
    "population": 4,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0
   },
   {
    "unit_code": "013310240",
    "name": "字福山",
    "population": 289,
    "crime": {},
    "accidents_latest": 1,
    "accidents_total": 1
   },
   {
    "unit_code": "013310250",
    "name": "字豊岡",
    "population": 707,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0
   },
   {
    "unit_code": "013310260",
    "name": "字月島",
    "population": 115,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 3
   },
   {
    "unit_code": "013310270",
    "name": "字東山",
    "population": 0,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0
   },
   {
    "unit_code": "013310280",
    "name": "字朝日",
    "population": 261,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0
   },
   {
    "unit_code": "013310290",
    "name": "字上川",
    "population": 116,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0
   },
   {
    "unit_code": "013310300",
    "name": "字大沢",
    "population": 194,
    "crime": {},
    "accidents_latest": 1,
    "accidents_total": 2
   },
   {
    "unit_code": "013310310",
    "name": "字荒谷",
    "population": 77,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0
   },
   {
    "unit_code": "013310320",
    "name": "字白神",
    "population": 238,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 1
   },
   {
    "unit_code": "013310330",
    "name": "字大島",
    "population": 0,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0
   },
   {
    "unit_code": "013310340",
    "name": "字小島",
    "population": 0,
    "crime": {},
    "accidents_latest": 0,
    "accidents_total": 0
   }
  ],
  "pref_url": "https://tokeilab.org/safety/01/",
  "map_url": "https://tokeilab.org/safety/map/?lat=41.467058&lon=140.083573&z=14"
 }
}