class Prefecture < ActiveHash::Base
    include ActiveHash::Associations
    belongs_to :region, primary_key: :id, foreign_key: :region_id, class_name: 'Region'
    self.data = [
        {id: 1, name: '北海道', region_id: 1, latitude: 43.06417, longitude: 141.34694},
        {id: 2, name: '青森県', region_id: 1, latitude: 40.82444, longitude: 140.74},
        {id: 3, name: '岩手県', region_id: 1, latitude: 39.70361, longitude: 141.1525},
        {id: 4, name: '宮城県', region_id: 1, latitude: 38.26889, longitude: 140.87194},
        {id: 5, name: '秋田県', region_id: 1, latitude: 39.71861, longitude: 140.1025},
        {id: 6, name: '山形県', region_id: 1, latitude: 38.24056, longitude: 140.36333},
        {id: 7, name: '福島県', region_id: 1, latitude: 37.75, longitude: 140.46778},
        {id: 8, name: '茨城県', region_id: 2, latitude: 36.34139, longitude: 140.44667},
        {id: 9, name: '栃木県', region_id: 2, latitude: 36.56583, longitude: 139.88361},
        {id: 10, name: '群馬県', region_id: 2, latitude: 36.39111, longitude: 139.06083},
        {id: 11, name: '埼玉県', region_id: 2, latitude: 35.85694, longitude: 139.64889},
        {id: 12, name: '千葉県', region_id: 2, latitude: 35.60472, longitude: 140.12333},
        {id: 13, name: '東京都', region_id: 2, latitude: 35.68944, longitude: 139.69167},
        {id: 14, name: '神奈川県', region_id: 2, latitude: 35.44778, longitude: 139.6425},
        {id: 15, name: '新潟県', region_id: 3, latitude: 37.90222, longitude: 139.02361},
        {id: 16, name: '富山県', region_id: 3, latitude: 36.69528, longitude: 137.21139},
        {id: 17, name: '石川県', region_id: 3, latitude: 36.59444, longitude: 136.62556},
        {id: 18, name: '福井県', region_id: 3, latitude: 36.06528, longitude: 136.22194},
        {id: 19, name: '山梨県', region_id: 3, latitude: 35.66389, longitude: 138.56833},
        {id: 20, name: '長野県', region_id: 3, latitude: 36.65139, longitude: 138.18111},
        {id: 21, name: '岐阜県', region_id: 4, latitude: 35.39111, longitude: 136.72222},
        {id: 22, name: '静岡県', region_id: 4, latitude: 34.97694, longitude: 138.38306},
        {id: 23, name: '愛知県', region_id: 4, latitude: 35.18028, longitude: 136.90667},
        {id: 24, name: '三重県', region_id: 4, latitude: 34.73028, longitude: 136.50861},
        {id: 25, name: '滋賀県', region_id: 5, latitude: 35.00444, longitude: 135.86833},
        {id: 26, name: '京都府', region_id: 5, latitude: 35.02139, longitude: 135.75556},
        {id: 27, name: '大阪府', region_id: 5, latitude: 34.68639, longitude: 135.52},
        {id: 28, name: '兵庫県', region_id: 5, latitude: 34.69139, longitude: 135.18306},
        {id: 29, name: '奈良県', region_id: 5, latitude: 34.68528, longitude: 135.83278},
        {id: 30, name: '和歌山県', region_id: 5, latitude: 34.22611, longitude: 135.1675},
        {id: 31, name: '鳥取県', region_id: 6, latitude: 35.50361, longitude: 134.23833},
        {id: 32, name: '島根県', region_id: 6, latitude: 35.47222, longitude: 133.05056},
        {id: 33, name: '岡山県', region_id: 6, latitude: 34.66167, longitude: 133.935},
        {id: 34, name: '広島県', region_id: 6, latitude: 34.39639, longitude: 132.45944},
        {id: 35, name: '山口県', region_id: 6, latitude: 34.18583, longitude: 131.47139},
        {id: 36, name: '徳島県', region_id: 6, latitude: 34.06583, longitude: 134.55944},
        {id: 37, name: '香川県', region_id: 6, latitude: 34.34028, longitude: 134.04333},
        {id: 38, name: '愛媛県', region_id: 6, latitude: 33.84167, longitude: 132.76583},
        {id: 39, name: '高知県', region_id: 6, latitude: 33.55972, longitude: 133.53111},
        {id: 40, name: '福岡県', region_id: 7, latitude: 33.60639, longitude: 130.41806},
        {id: 41, name: '佐賀県', region_id: 7, latitude: 33.24944, longitude: 130.29889},
        {id: 42, name: '長崎県', region_id: 7, latitude: 32.74472, longitude: 129.87361},
        {id: 43, name: '熊本県', region_id: 7, latitude: 32.78972, longitude: 130.74167},
        {id: 44, name: '大分県', region_id: 7, latitude: 33.23806, longitude: 131.6125},
        {id: 45, name: '宮崎県', region_id: 7, latitude: 31.90778, longitude: 131.42028},
        {id: 46, name: '鹿児島県', region_id: 7, latitude: 31.56028, longitude: 130.55806},
        {id: 47, name: '沖縄県', region_id: 7, latitude: 26.2125, longitude: 127.68111}
      ]
    end