]> git.openstreetmap.org Git - nominatim.git/commit
initial postcode cleaner for simple patterns
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 19 May 2022 13:49:36 +0000 (15:49 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 23 Jun 2022 21:42:31 +0000 (23:42 +0200)
commit90d4d339dbed83cc90823401634f01a20e129548
treefdb46e051ffcefeed99a4510293e7d7664e073fa
parent6e0014e1383f2cefa235a00a82c50f4169af278f
initial postcode cleaner for simple patterns

Moves postcodes that are either in countries without a postcode
system or don't correspond to the local pattern for postcodes into
a field for a normal address part. Makes them searchable but not as
a special address. This has two consequences: they are no longer a
skippable part of the address and the postcodes cannot be searched
on their own.
nominatim/tokenizer/sanitizers/clean_postcodes.py [new file with mode: 0644]
test/python/tokenizer/sanitizers/test_clean_postcodes.py [new file with mode: 0644]