aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2022-12-07 19:28:22 +0100
committerMatěj Cepl <mcepl@cepl.eu>2022-12-07 19:28:22 +0100
commit06fbd62796ab6ab49b925a01ccda6549937e9de7 (patch)
tree0fee47def79a3978ee6c635a9d4ad0696e1ed70e /src
parent2513cbc7b41e19895810088b2044ff868a068851 (diff)
downloadosm_where-06fbd62796ab6ab49b925a01ccda6549937e9de7.tar.gz
Format URL to print only seven decimal numbers for coordinates.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/osm_where.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osm_where.py b/src/osm_where.py
index 3d466a3..196f462 100755
--- a/src/osm_where.py
+++ b/src/osm_where.py
@@ -54,7 +54,7 @@ def main():
geo = parse_URL(args.url)
if geo:
- print(f"geo:{geo[0]},{geo[1]}")
+ print(f"geo:{geo[0]:.7f},{geo[1]:.7f}")
if __name__ == "__main__":