mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-09 19:44:07 +00:00
php frontend: fix on-the-fly lookup of postcode areas
This commit is contained in:
@@ -261,7 +261,7 @@ BEGIN
|
|||||||
-- If the place had a postcode assigned, take this one only
|
-- If the place had a postcode assigned, take this one only
|
||||||
-- into consideration when it is an area and the place does not have
|
-- into consideration when it is an area and the place does not have
|
||||||
-- a postcode itself.
|
-- a postcode itself.
|
||||||
IF location.fromarea AND location.isaddress
|
IF location.fromarea AND location_isaddress
|
||||||
AND (place.address is null or not place.address ? 'postcode')
|
AND (place.address is null or not place.address ? 'postcode')
|
||||||
THEN
|
THEN
|
||||||
place.postcode := null; -- remove the less exact postcode
|
place.postcode := null; -- remove the less exact postcode
|
||||||
|
|||||||
Reference in New Issue
Block a user