defmodule Helper.GeoPool do
  @moduledoc """
  current supported city geo data
  """

  alias GroupherServer.Statistics

  alias Statistics.Model.UserGeoInfo
  alias Helper.ORM

  def all do
    [
      %{
        city: "海门",
        long: 121.15,
        lant: 31.89,
        value: 0
      },
      %{
        city: "鄂尔多斯",
        long: 109.781327,
        lant: 39.608266,
        value: 0
      },
      %{
        city: "招远",
        long: 120.38,
        lant: 37.35,
        value: 0
      },
      %{
        city: "舟山",
        long: 122.207216,
        lant: 29.985295,
        value: 0
      },
      %{
        city: "齐齐哈尔",
        long: 123.97,
        lant: 47.33,
        value: 0
      },
      %{
        city: "盐城",
        long: 120.13,
        lant: 33.38,
        value: 0
      },
      %{
        city: "赤峰",
        long: 118.87,
        lant: 42.28,
        value: 0
      },
      %{
        city: "青岛",
        long: 120.33,
        lant: 36.07,
        value: 0
      },
      %{
        city: "乳山",
        long: 121.52,
        lant: 36.89,
        value: 0
      },
      %{
        city: "金昌",
        long: 102.188043,
        lant: 38.520089,
        value: 0
      },
      %{
        city: "泉州",
        long: 118.58,
        lant: 24.93,
        value: 0
      },
      %{
        city: "莱西",
        long: 120.53,
        lant: 36.86,
        value: 0
      },
      %{
        city: "日照",
        long: 119.46,
        lant: 35.42,
        value: 0
      },
      %{
        city: "胶南",
        long: 119.97,
        lant: 35.88,
        value: 0
      },
      %{
        city: "南通",
        long: 121.05,
        lant: 32.08,
        value: 0
      },
      %{
        city: "拉萨",
        long: 91.11,
        lant: 29.97,
        value: 0
      },
      %{
        city: "云浮",
        long: 112.02,
        lant: 22.93,
        value: 0
      },
      %{
        city: "梅州",
        long: 116.1,
        lant: 24.55,
        value: 0
      },
      %{
        city: "文登",
        long: 122.05,
        lant: 37.2,
        value: 0
      },
      %{
        city: "上海",
        long: 121.48,
        lant: 31.22,
        value: 0
      },
      %{
        city: "攀枝花",
        long: 101.718637,
        lant: 26.582347,
        value: 0
      },
      %{
        city: "威海",
        long: 122.1,
        lant: 37.5,
        value: 0
      },
      %{
        city: "承德",
        long: 117.93,
        lant: 40.97,
        value: 0
      },
      %{
        city: "厦门",
        long: 118.1,
        lant: 24.46,
        value: 0
      },
      %{
        city: "汕尾",
        long: 115.375279,
        lant: 22.786211,
        value: 0
      },
      %{
        city: "潮州",
        long: 116.63,
        lant: 23.68,
        value: 0
      },
      %{
        city: "丹东",
        long: 124.37,
        lant: 40.13,
        value: 0
      },
      %{
        city: "太仓",
        long: 121.1,
        lant: 31.45,
        value: 0
      },
      %{
        city: "曲靖",
        long: 103.79,
        lant: 25.51,
        value: 0
      },
      %{
        city: "烟台",
        long: 121.39,
        lant: 37.52,
        value: 0
      },
      %{
        city: "福州",
        long: 119.3,
        lant: 26.08,
        value: 0
      },
      %{
        city: "瓦房店",
        long: 121.979603,
        lant: 39.627114,
        value: 0
      },
      %{
        city: "即墨",
        long: 120.45,
        lant: 36.38,
        value: 0
      },
      %{
        city: "抚顺",
        long: 123.97,
        lant: 41.97,
        value: 0
      },
      %{
        city: "玉溪",
        long: 102.52,
        lant: 24.35,
        value: 0
      },
      %{
        city: "张家口",
        long: 114.87,
        lant: 40.82,
        value: 0
      },
      %{
        city: "阳泉",
        long: 113.57,
        lant: 37.85,
        value: 0
      },
      %{
        city: "莱州",
        long: 119.942327,
        lant: 37.177017,
        value: 0
      },
      %{
        city: "湖州",
        long: 120.1,
        lant: 30.86,
        value: 0
      },
      %{
        city: "汕头",
        long: 116.69,
        lant: 23.39,
        value: 0
      },
      %{
        city: "昆山",
        long: 120.95,
        lant: 31.39,
        value: 0
      },
      %{
        city: "宁波",
        long: 121.56,
        lant: 29.86,
        value: 0
      },
      %{
        city: "湛江",
        long: 110.359377,
        lant: 21.270708,
        value: 0
      },
      %{
        city: "揭阳",
        long: 116.35,
        lant: 23.55,
        value: 0
      },
      %{
        city: "荣成",
        long: 122.41,
        lant: 37.16,
        value: 0
      },
      %{
        city: "连云港",
        long: 119.16,
        lant: 34.59,
        value: 0
      },
      %{
        city: "葫芦岛",
        long: 120.836932,
        lant: 40.711052,
        value: 0
      },
      %{
        city: "常熟",
        long: 120.74,
        lant: 31.64,
        value: 0
      },
      %{
        city: "东莞",
        long: 113.75,
        lant: 23.04,
        value: 0
      },
      %{
        city: "河源",
        long: 114.68,
        lant: 23.73,
        value: 0
      },
      %{
        city: "淮安",
        long: 119.15,
        lant: 33.5,
        value: 0
      },
      %{
        city: "泰州",
        long: 119.9,
        lant: 32.49,
        value: 0
      },
      %{
        city: "南宁",
        long: 108.33,
        lant: 22.84,
        value: 0
      },
      %{
        city: "营口",
        long: 122.18,
        lant: 40.65,
        value: 0
      },
      %{
        city: "惠州",
        long: 114.4,
        lant: 23.09,
        value: 0
      },
      %{
        city: "江阴",
        long: 120.26,
        lant: 31.91,
        value: 0
      },
      %{
        city: "蓬莱",
        long: 120.75,
        lant: 37.8,
        value: 0
      },
      %{
        city: "韶关",
        long: 113.62,
        lant: 24.84,
        value: 0
      },
      %{
        city: "嘉峪关",
        long: 98.289152,
        lant: 39.77313,
        value: 0
      },
      %{
        city: "广州",
        long: 113.23,
        lant: 23.16,
        value: 0
      },
      %{
        city: "延安",
        long: 109.47,
        lant: 36.6,
        value: 0
      },
      %{
        city: "太原",
        long: 112.53,
        lant: 37.87,
        value: 0
      },
      %{
        city: "清远",
        long: 113.01,
        lant: 23.7,
        value: 0
      },
      %{
        city: "中山",
        long: 113.38,
        lant: 22.52,
        value: 0
      },
      %{
        city: "昆明",
        long: 102.73,
        lant: 25.04,
        value: 0
      },
      %{
        city: "寿光",
        long: 118.73,
        lant: 36.86,
        value: 0
      },
      %{
        city: "盘锦",
        long: 122.070714,
        lant: 41.119997,
        value: 0
      },
      %{
        city: "长治",
        long: 113.08,
        lant: 36.18,
        value: 0
      },
      %{
        city: "深圳",
        long: 114.07,
        lant: 22.62,
        value: 0
      },
      %{
        city: "珠海",
        long: 113.52,
        lant: 22.3,
        value: 0
      },
      %{
        city: "宿迁",
        long: 118.3,
        lant: 33.96,
        value: 0
      },
      %{
        city: "咸阳",
        long: 108.72,
        lant: 34.36,
        value: 0
      },
      %{
        city: "铜川",
        long: 109.11,
        lant: 35.09,
        value: 0
      },
      %{
        city: "平度",
        long: 119.97,
        lant: 36.77,
        value: 0
      },
      %{
        city: "佛山",
        long: 113.11,
        lant: 23.05,
        value: 0
      },
      %{
        city: "海口",
        long: 110.35,
        lant: 20.02,
        value: 0
      },
      %{
        city: "江门",
        long: 113.06,
        lant: 22.61,
        value: 0
      },
      %{
        city: "章丘",
        long: 117.53,
        lant: 36.72,
        value: 0
      },
      %{
        city: "肇庆",
        long: 112.44,
        lant: 23.05,
        value: 0
      },
      %{
        city: "大连",
        long: 121.62,
        lant: 38.92,
        value: 0
      },
      %{
        city: "临汾",
        long: 111.5,
        lant: 36.08,
        value: 0
      },
      %{
        city: "吴江",
        long: 120.63,
        lant: 31.16,
        value: 0
      },
      %{
        city: "石嘴山",
        long: 106.39,
        lant: 39.04,
        value: 0
      },
      %{
        city: "沈阳",
        long: 123.38,
        lant: 41.8,
        value: 0
      },
      %{
        city: "苏州",
        long: 120.62,
        lant: 31.32,
        value: 0
      },
      %{
        city: "茂名",
        long: 110.88,
        lant: 21.68,
        value: 0
      },
      %{
        city: "嘉兴",
        long: 120.76,
        lant: 30.77,
        value: 0
      },
      %{
        city: "长春",
        long: 125.35,
        lant: 43.88,
        value: 0
      },
      %{
        city: "胶州",
        long: 120.03336,
        lant: 36.264622,
        value: 0
      },
      %{
        city: "银川",
        long: 106.27,
        lant: 38.47,
        value: 0
      },
      %{
        city: "张家港",
        long: 120.555821,
        lant: 31.875428,
        value: 0
      },
      %{
        city: "三门峡",
        long: 111.19,
        lant: 34.76,
        value: 0
      },
      %{
        city: "锦州",
        long: 121.15,
        lant: 41.13,
        value: 0
      },
      %{
        city: "南昌",
        long: 115.89,
        lant: 28.68,
        value: 0
      },
      %{
        city: "柳州",
        long: 109.4,
        lant: 24.33,
        value: 0
      },
      %{
        city: "三亚",
        long: 109.511909,
        lant: 18.252847,
        value: 0
      },
      %{
        city: "自贡",
        long: 104.778442,
        lant: 29.33903,
        value: 0
      },
      %{
        city: "吉林",
        long: 126.57,
        lant: 43.87,
        value: 0
      },
      %{
        city: "阳江",
        long: 111.95,
        lant: 21.85,
        value: 0
      },
      %{
        city: "泸州",
        long: 105.39,
        lant: 28.91,
        value: 0
      },
      %{
        city: "西宁",
        long: 101.74,
        lant: 36.56,
        value: 0
      },
      %{
        city: "宜宾",
        long: 104.56,
        lant: 29.77,
        value: 0
      },
      %{
        city: "呼和浩特",
        long: 111.65,
        lant: 40.82,
        value: 0
      },
      %{
        city: "成都",
        long: 104.06,
        lant: 30.67,
        value: 0
      },
      %{
        city: "大同",
        long: 113.3,
        lant: 40.12,
        value: 0
      },
      %{
        city: "镇江",
        long: 119.44,
        lant: 32.2,
        value: 0
      },
      %{
        city: "桂林",
        long: 110.28,
        lant: 25.29,
        value: 0
      },
      %{
        city: "张家界",
        long: 110.479191,
        lant: 29.117096,
        value: 0
      },
      %{
        city: "宜兴",
        long: 119.82,
        lant: 31.36,
        value: 0
      },
      %{
        city: "北海",
        long: 109.12,
        lant: 21.49,
        value: 0
      },
      %{
        city: "西安",
        long: 108.95,
        lant: 34.27,
        value: 0
      },
      %{
        city: "金坛",
        long: 119.56,
        lant: 31.74,
        value: 0
      },
      %{
        city: "东营",
        long: 118.49,
        lant: 37.46,
        value: 0
      },
      %{
        city: "牡丹江",
        long: 129.58,
        lant: 44.6,
        value: 0
      },
      %{
        city: "遵义",
        long: 106.9,
        lant: 27.7,
        value: 0
      },
      %{
        city: "绍兴",
        long: 120.58,
        lant: 30.01,
        value: 0
      },
      %{
        city: "扬州",
        long: 119.42,
        lant: 32.39,
        value: 0
      },
      %{
        city: "常州",
        long: 119.95,
        lant: 31.79,
        value: 0
      },
      %{
        city: "潍坊",
        long: 119.1,
        lant: 36.62,
        value: 0
      },
      %{
        city: "重庆",
        long: 106.54,
        lant: 29.59,
        value: 0
      },
      %{
        city: "台州",
        long: 121.420757,
        lant: 28.656386,
        value: 0
      },
      %{
        city: "南京",
        long: 118.78,
        lant: 32.04,
        value: 0
      },
      %{
        city: "滨州",
        long: 118.03,
        lant: 37.36,
        value: 0
      },
      %{
        city: "贵阳",
        long: 106.71,
        lant: 26.57,
        value: 0
      },
      %{
        city: "无锡",
        long: 120.29,
        lant: 31.59,
        value: 0
      },
      %{
        city: "本溪",
        long: 123.73,
        lant: 41.3,
        value: 0
      },
      %{
        city: "克拉玛依",
        long: 84.77,
        lant: 45.59,
        value: 0
      },
      %{
        city: "渭南",
        long: 109.5,
        lant: 34.52,
        value: 0
      },
      %{
        city: "马鞍山",
        long: 118.48,
        lant: 31.56,
        value: 0
      },
      %{
        city: "宝鸡",
        long: 107.15,
        lant: 34.38,
        value: 0
      },
      %{
        city: "焦作",
        long: 113.21,
        lant: 35.24,
        value: 0
      },
      %{
        city: "句容",
        long: 119.16,
        lant: 31.95,
        value: 0
      },
      %{
        city: "北京",
        long: 116.46,
        lant: 39.92,
        value: 0
      },
      %{
        city: "徐州",
        long: 117.2,
        lant: 34.26,
        value: 0
      },
      %{
        city: "衡水",
        long: 115.72,
        lant: 37.72,
        value: 0
      },
      %{
        city: "包头",
        long: 110,
        lant: 40.58,
        value: 0
      },
      %{
        city: "绵阳",
        long: 104.73,
        lant: 31.48,
        value: 0
      },
      %{
        city: "乌鲁木齐",
        long: 87.68,
        lant: 43.77,
        value: 0
      },
      %{
        city: "枣庄",
        long: 117.57,
        lant: 34.86,
        value: 0
      },
      %{
        city: "杭州",
        long: 120.19,
        lant: 30.26,
        value: 0
      },
      %{
        city: "淄博",
        long: 118.05,
        lant: 36.78,
        value: 0
      },
      %{
        city: "鞍山",
        long: 122.85,
        lant: 41.12,
        value: 0
      },
      %{
        city: "溧阳",
        long: 119.48,
        lant: 31.43,
        value: 0
      },
      %{
        city: "库尔勒",
        long: 86.06,
        lant: 41.68,
        value: 0
      },
      %{
        city: "安阳",
        long: 114.35,
        lant: 36.1,
        value: 0
      },
      %{
        city: "开封",
        long: 114.35,
        lant: 34.79,
        value: 0
      },
      %{
        city: "济南",
        long: 117,
        lant: 36.65,
        value: 0
      },
      %{
        city: "德阳",
        long: 104.37,
        lant: 31.13,
        value: 0
      },
      %{
        city: "温州",
        long: 120.65,
        lant: 28.01,
        value: 0
      },
      %{
        city: "九江",
        long: 115.97,
        lant: 29.71,
        value: 0
      },
      %{
        city: "邯郸",
        long: 114.47,
        lant: 36.6,
        value: 0
      },
      %{
        city: "临安",
        long: 119.72,
        lant: 30.23,
        value: 0
      },
      %{
        city: "兰州",
        long: 103.73,
        lant: 36.03,
        value: 0
      },
      %{
        city: "沧州",
        long: 116.83,
        lant: 38.33,
        value: 0
      },
      %{
        city: "临沂",
        long: 118.35,
        lant: 35.05,
        value: 0
      },
      %{
        city: "南充",
        long: 106.110698,
        lant: 30.837793,
        value: 0
      },
      %{
        city: "天津",
        long: 117.2,
        lant: 39.13,
        value: 0
      },
      %{
        city: "富阳",
        long: 119.95,
        lant: 30.07,
        value: 0
      },
      %{
        city: "泰安",
        long: 117.13,
        lant: 36.18,
        value: 0
      },
      %{
        city: "诸暨",
        long: 120.23,
        lant: 29.71,
        value: 0
      },
      %{
        city: "郑州",
        long: 113.65,
        lant: 34.76,
        value: 0
      },
      %{
        city: "哈尔滨",
        long: 126.63,
        lant: 45.75,
        value: 0
      },
      %{
        city: "聊城",
        long: 115.97,
        lant: 36.45,
        value: 0
      },
      %{
        city: "芜湖",
        long: 118.38,
        lant: 31.33,
        value: 0
      },
      %{
        city: "唐山",
        long: 118.02,
        lant: 39.63,
        value: 0
      },
      %{
        city: "平顶山",
        long: 113.29,
        lant: 33.75,
        value: 0
      },
      %{
        city: "邢台",
        long: 114.48,
        lant: 37.05,
        value: 0
      },
      %{
        city: "德州",
        long: 116.29,
        lant: 37.45,
        value: 0
      },
      %{
        city: "济宁",
        long: 116.59,
        lant: 35.38,
        value: 0
      },
      %{
        city: "荆州",
        long: 112.239741,
        lant: 30.335165,
        value: 0
      },
      %{
        city: "宜昌",
        long: 111.3,
        lant: 30.7,
        value: 0
      },
      %{
        city: "义乌",
        long: 120.06,
        lant: 29.32,
        value: 0
      },
      %{
        city: "丽水",
        long: 119.92,
        lant: 28.45,
        value: 0
      },
      %{
        city: "洛阳",
        long: 112.44,
        lant: 34.7,
        value: 0
      },
      %{
        city: "秦皇岛",
        long: 119.57,
        lant: 39.95,
        value: 0
      },
      %{
        city: "株洲",
        long: 113.16,
        lant: 27.83,
        value: 0
      },
      %{
        city: "石家庄",
        long: 114.48,
        lant: 38.03,
        value: 0
      },
      %{
        city: "莱芜",
        long: 117.67,
        lant: 36.19,
        value: 0
      },
      %{
        city: "常德",
        long: 111.69,
        lant: 29.05,
        value: 0
      },
      %{
        city: "保定",
        long: 115.48,
        lant: 38.85,
        value: 0
      },
      %{
        city: "湘潭",
        long: 112.91,
        lant: 27.87,
        value: 0
      },
      %{
        city: "金华",
        long: 119.64,
        lant: 29.12,
        value: 0
      },
      %{
        city: "岳阳",
        long: 113.09,
        lant: 29.37,
        value: 0
      },
      %{
        city: "长沙",
        long: 113,
        lant: 28.21,
        value: 0
      },
      %{
        city: "衢州",
        long: 118.88,
        lant: 28.97,
        value: 0
      },
      %{
        city: "廊坊",
        long: 116.7,
        lant: 39.53,
        value: 0
      },
      %{
        city: "菏泽",
        long: 115.480656,
        lant: 35.23375,
        value: 0
      },
      %{
        city: "合肥",
        long: 117.27,
        lant: 31.86,
        value: 0
      },
      %{
        city: "武汉",
        long: 114.31,
        lant: 30.52,
        value: 0
      },
      %{
        city: "大庆",
        long: 125.03,
        lant: 46.58,
        value: 0
      }
    ]
  end

  def insert_geo_data do
    all()
    |> Enum.each(fn info ->
      UserGeoInfo |> ORM.create(info)
    end)
  end
end
