php ./utils/update.php --init-updates
php ./utils/update.php --import-osmosis
working-directory: build
+
+ - name: Run reverse-only import
+ run : |
+ dropdb nominatim
+ php ./utils/setup.php --osm-file ../monaco-latest.osm.pbf --reverse-only --all
+ working-directory: build
IF search_unlisted_place is not null THEN
RETURN NEXT ROW(null, null, null, hstore('name', search_unlisted_place),
- 'place', 'locality', null, null, true, true, 26, 0)::addressline;
+ 'place', 'locality', null, null, true, true, 25, 0)::addressline;
END IF;
IF searchpostcode IS NOT NULL THEN
END IF;
- IF array_length(name_vector, 1) is not NULL
- OR inherited_address is not NULL OR NEW.address is not NULL
+ IF not %REVERSE-ONLY% AND (array_length(name_vector, 1) is not NULL
+ OR inherited_address is not NULL OR NEW.address is not NULL)
THEN
SELECT * INTO name_vector, nameaddress_vector
FROM create_poi_search_terms(NEW.place_id,
NEW.country_code, NEW.housenumber,
name_vector, NEW.centroid);
- IF not %REVERSE-ONLY% AND array_length(name_vector, 1) is not NULL THEN
+ IF array_length(name_vector, 1) is not NULL THEN
INSERT INTO search_name (place_id, search_rank, address_rank,
importance, country_code, name_vector,
nameaddress_vector, centroid)