]> git.openstreetmap.org Git - nominatim.git/commit
make sure PHP and Python reverse code does the same
authorSarah Hoffmann <lonvia@denofr.de>
Sun, 26 Mar 2023 10:22:34 +0000 (12:22 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sun, 26 Mar 2023 14:21:43 +0000 (16:21 +0200)
commit86b43dc605cd7e02e08b8c63c90ffe41ab26e3d2
treeb6e68f2845b0eb8461034e8771a0a862f83d91dd
parent300921a93e29d6bdc2a7da8ceaebfcce0c555c84
make sure PHP and Python reverse code does the same

The only allowable difference is precision of coordinates. Python uses
a precision of 7 digits where possible, which corresponds to the
precision of OSM data.

Also fixes some smaller bugs found by the BDD tests.
20 files changed:
nominatim/api/lookup.py
nominatim/api/results.py
nominatim/api/reverse.py
nominatim/api/v1/classtypes.py
nominatim/api/v1/constants.py [deleted file]
nominatim/api/v1/format_json.py
nominatim/api/v1/format_xml.py
nominatim/api/v1/server_glue.py
nominatim/server/falcon/server.py
nominatim/server/sanic/server.py
nominatim/utils/json_writer.py
test/bdd/api/reverse/v1_geocodejson.feature
test/bdd/api/reverse/v1_geojson.feature
test/bdd/api/reverse/v1_json.feature
test/bdd/api/reverse/v1_xml.feature
test/bdd/steps/check_functions.py
test/bdd/steps/http_responses.py
test/bdd/steps/steps_api_queries.py
test/python/api/test_api_lookup.py
test/python/api/test_results.py