mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-09-17 14:07:08 +03:00
places that cannot be part of an address still should get an address themselves
This commit is contained in:
parent
5c3cb8f2f8
commit
8ebc673ebf
@ -2235,14 +2235,14 @@ BEGIN
|
||||
END IF;
|
||||
|
||||
IF for_place_id IS NULL THEN
|
||||
select parent_place_id, calculated_country_code, housenumber, rank_address, postcode, name, class, type from placex
|
||||
select parent_place_id, calculated_country_code, housenumber, rank_search, postcode, name, class, type from placex
|
||||
WHERE place_id = in_place_id and rank_address = 30
|
||||
INTO for_place_id, searchcountrycode, searchhousenumber, searchrankaddress, searchpostcode, searchhousename, searchclass, searchtype;
|
||||
END IF;
|
||||
|
||||
IF for_place_id IS NULL THEN
|
||||
for_place_id := in_place_id;
|
||||
select calculated_country_code, housenumber, rank_address, postcode, null from placex where place_id = for_place_id
|
||||
select calculated_country_code, housenumber, rank_search, postcode, null from placex where place_id = for_place_id
|
||||
INTO searchcountrycode, searchhousenumber, searchrankaddress, searchpostcode, searchhousename;
|
||||
END IF;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user