If you have imported multiple country extracts and want to keep them
up-to-date, have a look at the script in
-(issue #60)[https://github.com/twain47/Nominatim/issues/60].
+[issue #60](https://github.com/twain47/Nominatim/issues/60).
$aCountries[] = strtolower($sCountryCode);
}
}
- if (isset($aCountryCodes))
+ if (isset($aCountries))
$this->aCountryCodes = $aCountries;
}
IF for_place_id IS NULL THEN
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
+ WHERE place_id = in_place_id and rank_search > 27
INTO for_place_id, searchcountrycode, searchhousenumber, searchrankaddress, searchpostcode, searchhousename, searchclass, searchtype;
END IF;
| osm_type | osm_id | latlon
| node | 257363453 | 35.8404121,128.5586643 +-100m
+ Scenario: trac #5427
+ Given the request parameters
+ | countrycodes |
+ | DE |
+ When sending json search query "12345" with address
+ Then result addresses contain
+ | country_code |
+ | de |