]> git.openstreetmap.org Git - nominatim.git/commit
restrict number of results for reverse queries
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 25 Oct 2017 20:34:29 +0000 (22:34 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 25 Oct 2017 20:34:29 +0000 (22:34 +0200)
commitadbbb1ce02649e7acfefa2156f836bf04dd68a55
tree2446e6b2e41e32fa270692d2500c856b382e6951
parentf78d094483da1c54ff51177cafa378406636b433
restrict number of results for reverse queries

When given a coordinate off the coast of a large town, the entire
town may end up in the potential results during the reverse query.
Postgres then needs to sort tens of thousands of results before it
can determine the clostest one. Given that the results at such a
large search radius are bound to be imprecise anyway, restrict
the number of results postgres should consider to 1000.
lib/ReverseGeocode.php
test/bdd/api/reverse/queries.feature