X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/157414a053cde0133a001964264254a62f231be5..800a41721ab446bb70a59eaba83968603b1e5382:/test/bdd/steps/steps_osm_data.py diff --git a/test/bdd/steps/steps_osm_data.py b/test/bdd/steps/steps_osm_data.py index 70cf1515..e9c8ebe4 100644 --- a/test/bdd/steps/steps_osm_data.py +++ b/test/bdd/steps/steps_osm_data.py @@ -41,8 +41,7 @@ def write_opl_file(opl, grid): if line.startswith('n') and line.find(' x') < 0: coord = grid.grid_node(int(line[1:].split(' ')[0])) if coord is None: - coord = (random.random() * 360 - 180, - random.random() * 180 - 90) + coord = (random.uniform(-180, 180), random.uniform(-90, 90)) line += " x%f y%f" % coord fd.write(line.encode('utf-8')) fd.write(b'\n')