0
0

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 1 year has passed since last update.

地図座標単位変換

Posted at

地図座標単位変換

dd.mm.ssの変換はChatGPTでもいけたのですが、dd.mm.ss.sssはプロンプトが悪いのかうまくできなかったので。

python
# 60進法を度に変換する関数
def convert_to_degrees(coord):
    degrees, minutes, seconds, sss = map(float, coord.split('.'))
    seconds = seconds + (sss/1000)
    return degrees + minutes / 60 + seconds / 3600

print(convert_to_degrees('34.68.44.100'))

※座標はダミーです

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?