Pridani sitemap, fix flake
This commit is contained in:
+2
-3
@@ -2,14 +2,12 @@ import csv
|
||||
|
||||
|
||||
def deg_to_dec(val: str):
|
||||
|
||||
val = float(val[:-1]) / 100
|
||||
deg = int(val)
|
||||
frac = val % 1
|
||||
|
||||
# https://www.pgc.umn.edu/apps/convert/ N47 17.6 E012 47.3
|
||||
|
||||
|
||||
print(frac, frac * 60, frac * 3600)
|
||||
|
||||
return deg + (frac * 60)
|
||||
@@ -30,6 +28,7 @@ def deg_to_dec(val: str):
|
||||
|
||||
# return len(val or "")
|
||||
|
||||
|
||||
# ZDAKOV: @49.504378,14.1808905
|
||||
|
||||
# 4930.250N / 100 -> cele cislo stupne, desetinne prevest do sedesatkove soustavy
|
||||
@@ -41,4 +40,4 @@ with open("./poi.csv") as f:
|
||||
if row['name'] != 'ZDAKOV':
|
||||
continue
|
||||
|
||||
print(row['name'], row['lat'], row['lon'], deg_to_dec(row['lat']), deg_to_dec(row['lon']))
|
||||
print(row['name'], row['lat'], row['lon'], deg_to_dec(row['lat']), deg_to_dec(row['lon']))
|
||||
|
||||
Reference in New Issue
Block a user