3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Python 日本の都道府県の緯度経度データフレーム

Last updated at Posted at 2019-10-03

日本の都道府県の緯度経度詰め合わせセットです。
GA(遺伝的アルゴリズム)の巡回セールスマン問題のネタにでもしてください。
3人くらいのお役に立てば満足します。

nogood.py
# 都道府県のラベル
Prefectures_name = np.array(["北海道","青森県","岩手県","宮城県","秋田県",
                             "山形県","福島県","茨城県","栃木県","群馬県",
                             "埼玉県","千葉県","東京都","神奈川県","新潟県",
                             "富山県","石川県","福井県","山梨県","長野県",
                             "岐阜県","静岡県","愛知県","三重県","滋賀県",
                             "京都府","大阪府","兵庫県","奈良県","和歌山県",
                             "鳥取県","島根県","岡山県","広島県","山口県",
                             "徳島県","香川県","愛媛県","高知県","福岡県",
                             "佐賀県","長崎県","熊本県","大分県","宮崎県","鹿児島県","沖縄県"])
# 経度x(沖縄県を0地点に変換)
Prefectures_x = np.array([13.666967,13.059661,13.471735,13.191171,12.421402,
                          12.682702,12.786589,12.765861,12.202633,11.379224,
                          11.968001,12.442376,12.010772,11.961582,11.342289,
                          9.530406,8.944641,8.54071,10.887517,10.500292,
                          9.041359,10.702122,9.225633,8.827659,8.187658,
                          8.074676,7.838779,7.502093,8.151812,7.486574,
                          6.55674,5.369567,6.253743,4.77869,3.789568,
                          6.878371,6.362512,5.08443,5.850148,2.737382,
                          2.61789,2.192824,3.060735,3.931659,3.742923,2.877049,0])
# 緯度y(沖縄県を0地点に変換)
Prefectures_y = np.array([16.851567,14.612222,13.49113,12.056438,13.506199,
                          12.028036,11.537898,10.129412,10.353324,10.178807,
                          9.645027,9.392657,9.47712,9.235352,11.690017,
                          10.482889,10.382281,9.852818,9.451757,10.438888,
                          9.178826,8.764577,8.967787,8.517882,8.79213,
                          8.808603,8.473915,8.478878,8.472932,8.013633,
                          9.291468,9.259896,8.449371,8.184159,7.97372,
                          7.853369,8.127748,7.629259,7.347304,7.394384,
                          7.036966,6.532438,6.577427,7.025793,5.698689,5.347747,0])

# 経度x
Prefectures_x = np.array([141.347899,140.740593,141.152667,140.872103,140.102334,
                          140.363634,140.467521,140.446793,139.883565,139.060156,
                          139.648933,140.123308,139.691704,139.642514,139.023221,
                          137.211338,136.625573,136.221642,138.568449,138.181224,
                          136.722291,138.383054,136.906565,136.508591,135.86859,
                          135.755608,135.519711,135.183025,135.832744,135.167506,
                          134.237672,133.050499,133.934675,132.459622,131.4705,
                          134.559303,134.043444,132.765362,133.53108,130.418314,
                          130.298822,129.873756,130.741667,131.612591,131.423855,130.557981,127.680932])
# 緯度y
Prefectures_y = np.array([43.063968,40.824623,39.703531,38.268839,39.7186,
                          38.240437,37.750299,36.341813,36.565725,36.391208,
                          35.857428,35.605058,35.689521,35.447753,37.902418,
                          36.69529,36.594682,36.065219,35.664158,36.651289,
                          35.391227,34.976978,35.180188,34.730283,35.004531,
                          35.021004,34.686316,34.691279,34.685333,34.226034,
                          35.503869,35.472297,34.661772,34.39656,34.186121,
                          34.06577,34.340149,33.84166,33.559705,33.606785,
                          33.249367,32.744839,32.789828,33.238194,31.91109,31.560148,26.212401])

Question.png

Viconout.gif

こちらのデータを参考にさせていただきました。
都道府県名と県庁所在地の緯度経度配列

3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?