Module: WeatherHacker::AreaData

Defined in:
lib/weather_hacker/area_data.rb

Constant Summary collapse

ID_BY_CITY =
{
  "稚内"     => '011000',
  "旭川"     => '012010',
  "留萌"     => '012020',
  "網走"     => '013010',
  "北見"     => '013020',
  "紋別"     => '013030',
  "根室"     => '014010',
  "釧路"     => '014020',
  "帯広"     => '014030',
  "室蘭"     => '015010',
  "浦河"     => '015020',
  "札幌"     => '016010',
  "岩見沢"   => '016020',
  "倶知安"   => '016030',
  "函館"     => '017010',
  "江差"     => '017020',
  "青森"     => '020010',
  "むつ"     => '020020',
  "八戸"     => '020030',
  "盛岡"     => '030010',
  "宮古"     => '030020',
  "大船渡"   => '030030',
  "仙台"     => '040010',
  "白石"     => '040020',
  "秋田"     => '050010',
  "横手"     => '050020',
  "山形"     => '060010',
  "米沢"     => '060020',
  "酒田"     => '060030',
  "新庄"     => '060040',
  "福島"     => '070010',
  "小名浜"   => '070020',
  "若松"     => '070030',
  "水戸"     => '080010',
  "土浦"     => '080020',
  "宇都宮"   => '090010',
  "大田原"   => '090020',
  "前橋"     => '100010',
  "みなかみ" => '100020',
  "さいたま" => '110010',
  "熊谷"     => '110020',
  "秩父"     => '110030',
  "千葉"     => '120010',
  "銚子"     => '120020',
  "館山"     => '120030',
  "東京"     => '130010',
  "大島"     => '130020',
  "八丈島"   => '130030',
  "父島"     => '130040',
  "横浜"     => '140010',
  "小田原"   => '140020',
  "新潟"     => '150010',
  "長岡"     => '150020',
  "高田"     => '150030',
  "相川"     => '150040',
  "富山"     => '160010',
  "伏木"     => '160020',
  "金沢"     => '170010',
  "輪島"     => '170020',
  "福井"     => '180010',
  "敦賀"     => '180020',
  "甲府"     => '190010',
  "河口湖"   => '190020',
  "長野"     => '200010',
  "松本"     => '200020',
  "飯田"     => '200030',
  "岐阜"     => '210010',
  "高山"     => '210020',
  "静岡"     => '220010',
  "網代"     => '220020',
  "三島"     => '220030',
  "浜松"     => '220040',
  "名古屋"   => '230010',
  "豊橋"     => '230020',
  ""       => '240010',
  "尾鷲"     => '240020',
  "大津"     => '250010',
  "彦根"     => '250020',
  "京都"     => '260010',
  "舞鶴"     => '260020',
  "大阪"     => '270000',
  "神戸"     => '280010',
  "豊岡"     => '280020',
  "奈良"     => '290010',
  "風屋"     => '290020',
  "和歌山"   => '300010',
  "潮岬"     => '300020',
  "鳥取"     => '310010',
  "米子"     => '310020',
  "松江"     => '320010',
  "浜田"     => '320020',
  "西郷"     => '320030',
  "岡山"     => '330010',
  "津山"     => '330020',
  "広島"     => '340010',
  "庄原"     => '340020',
  "下関"     => '350010',
  "山口"     => '350020',
  "柳井"     => '350030',
  ""       => '350040',
  "徳島"     => '360010',
  "日和佐"   => '360020',
  "高松"     => '370000',
  "松山"     => '380010',
  "新居浜"   => '380020',
  "宇和島"   => '380030',
  "高知"     => '390010',
  "室戸岬"   => '390020',
  "清水"     => '390030',
  "福岡"     => '400010',
  "八幡"     => '400020',
  "飯塚"     => '400030',
  "久留米"   => '400040',
  "佐賀"     => '410010',
  "伊万里"   => '410020',
  "長崎"     => '420010',
  "佐世保"   => '420020',
  "厳原"     => '420030',
  "福江"     => '420040',
  "熊本"     => '430010',
  "阿蘇乙姫" => '430020',
  "牛深"     => '430030',
  "人吉"     => '430040',
  "大分"     => '440010',
  "中津"     => '440020',
  "日田"     => '440030',
  "佐伯"     => '440040',
  "宮崎"     => '450010',
  "延岡"     => '450020',
  "都城"     => '450030',
  "高千穂"   => '450040',
  "鹿児島"   => '460010',
  "鹿屋"     => '460020',
  "種子島"   => '460030',
  "名瀬"     => '460040',
  "那覇"     => '471010',
  "名護"     => '471020',
  "久米島"   => '471030',
  "南大東"   => '472000',
  "宮古島"   => '473000',
  "石垣島"   => '474010',
  "与那国島" => '474020'
}
PREF_BY_CITY =
{
  "稚内"     => "北海",
  "旭川"     => "北海",
  "留萌"     => "北海",
  "札幌"     => "北海",
  "岩見沢"   => "北海",
  "倶知安"   => "北海",
  "網走"     => "北海",
  "北見"     => "北海",
  "紋別"     => "北海",
  "根室"     => "北海",
  "釧路"     => "北海",
  "帯広"     => "北海",
  "室蘭"     => "北海",
  "浦河"     => "北海",
  "函館"     => "北海",
  "江差"     => "北海",
  "青森"     => "青森",
  "むつ"     => "青森",
  "八戸"     => "青森",
  "秋田"     => "秋田",
  "横手"     => "秋田",
  "盛岡"     => "岩手",
  "宮古"     => "岩手",
  "大船渡"   => "岩手",
  "仙台"     => "宮城",
  "白石"     => "宮城",
  "山形"     => "山形",
  "米沢"     => "山形",
  "酒田"     => "山形",
  "新庄"     => "山形",
  "福島"     => "福島",
  "小名浜"   => "福島",
  "若松"     => "福島",
  "水戸"     => "茨城",
  "土浦"     => "茨城",
  "宇都宮"   => "栃木",
  "大田原"   => "栃木",
  "前橋"     => "群馬",
  "みなかみ" => "群馬",
  "さいたま" => "埼玉",
  "熊谷"     => "埼玉",
  "秩父"     => "埼玉",
  "東京"     => "東京",
  "大島"     => "東京",
  "八丈島"   => "東京",
  "父島"     => "東京",
  "千葉"     => "千葉",
  "銚子"     => "千葉",
  "館山"     => "千葉",
  "横浜"     => "神奈川",
  "小田原"   => "神奈川",
  "甲府"     => "山梨",
  "河口湖"   => "山梨",
  "富山"     => "富山",
  "伏木"     => "富山",
  "金沢"     => "石川",
  "輪島"     => "石川",
  "福井"     => "福井",
  "敦賀"     => "福井",
  "新潟"     => "新潟",
  "長岡"     => "新潟",
  "高田"     => "新潟",
  "相川"     => "新潟",
  "長野"     => "長野",
  "松本"     => "長野",
  "飯田"     => "長野",
  "静岡"     => "静岡",
  "網代"     => "静岡",
  "三島"     => "静岡",
  "浜松"     => "静岡",
  "名古屋"   => "愛知",
  "豊橋"     => "愛知",
  "岐阜"     => "岐阜",
  "高山"     => "岐阜",
  ""       => "三重",
  "尾鷲"     => "三重",
  "大津"     => "滋賀",
  "彦根"     => "滋賀",
  "京都"     => "京都",
  "舞鶴"     => "京都",
  "大阪"     => "大阪",
  "神戸"     => "兵庫",
  "豊岡"     => "兵庫",
  "奈良"     => "奈良",
  "風屋"     => "奈良",
  "和歌山"   => "和歌山",
  "潮岬"     => "和歌山",
  "岡山"     => "岡山",
  "津山"     => "岡山",
  "広島"     => "広島",
  "庄原"     => "広島",
  "松江"     => "島根",
  "浜田"     => "島根",
  "西郷"     => "島根",
  "鳥取"     => "鳥取",
  "米子"     => "鳥取",
  "下関"     => "山口",
  "山口"     => "山口",
  "柳井"     => "山口",
  ""       => "山口",
  "徳島"     => "徳島",
  "日和佐"   => "徳島",
  "高松"     => "香川",
  "松山"     => "愛媛",
  "新居浜"   => "愛媛",
  "宇和島"   => "愛媛",
  "高知"     => "高知",
  "室戸"     => "高知",
  "清水"     => "高知",
  "福岡"     => "福岡",
  "八幡"     => "福岡",
  "飯塚"     => "福岡",
  "久留米"   => "福岡",
  "大分"     => "大分",
  "中津"     => "大分",
  "日田"     => "大分",
  "佐伯"     => "大分",
  "長崎"     => "長崎",
  "佐世保"   => "長崎",
  "厳原"     => "長崎",
  "福江"     => "長崎",
  "佐賀"     => "佐賀",
  "伊万里"   => "佐賀",
  "熊本"     => "熊本",
  "阿蘇乙姫" => "熊本",
  "牛深"     => "熊本",
  "人吉"     => "熊本",
  "宮崎"     => "宮崎",
  "延岡"     => "宮崎",
  "都城"     => "宮崎",
  "高千穂"   => "宮崎",
  "鹿児島"   => "鹿児島",
  "鹿屋"     => "鹿児島",
  "種子島"   => "鹿児島",
  "名瀬"     => "鹿児島",
  "那覇"     => "沖縄",
  "名護"     => "沖縄",
  "久米島"   => "沖縄",
  "南大東島" => "沖縄",
  "宮古島"   => "沖縄",
  "石垣島"   => "沖縄",
  "与那国島" => "沖縄"
}