diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2022-12-07 19:28:22 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2022-12-07 19:28:22 +0100 |
commit | 06fbd62796ab6ab49b925a01ccda6549937e9de7 (patch) | |
tree | 0fee47def79a3978ee6c635a9d4ad0696e1ed70e /src | |
parent | 2513cbc7b41e19895810088b2044ff868a068851 (diff) | |
download | osm_where-06fbd62796ab6ab49b925a01ccda6549937e9de7.tar.gz |
Format URL to print only seven decimal numbers for coordinates.
Diffstat (limited to 'src')
-rwxr-xr-x | src/osm_where.py | 2 |
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__": |