Pridani sitemap, fix flake

This commit is contained in:
Michal Kváček
2024-02-26 09:44:40 +01:00
parent ff32c36a94
commit 1f8b338297
34 changed files with 590 additions and 205 deletions
+2 -3
View File
@@ -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']))