mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-12 05:44:06 +00:00
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.
This commit is contained in:
@@ -36,7 +36,6 @@ class ParamWrapper(api_impl.ASGIAdaptor):
|
||||
|
||||
def error(self, msg: str, status: int = 400) -> SanicException:
|
||||
exception = SanicException(msg, status_code=status)
|
||||
exception.headers = {'content-type': self.content_type}
|
||||
|
||||
return exception
|
||||
|
||||
|
||||
Reference in New Issue
Block a user