From 06fbd62796ab6ab49b925a01ccda6549937e9de7 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Wed, 7 Dec 2022 19:28:22 +0100 Subject: Format URL to print only seven decimal numbers for coordinates. --- src/osm_where.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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__": -- cgit