]> git.openstreetmap.org Git - nominatim.git/commit
Make rank assignments configurable
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 23 Nov 2018 22:02:32 +0000 (23:02 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 24 Nov 2018 15:21:16 +0000 (16:21 +0100)
commite10d11c6c7a5a96f645b9155a55e56f874ed6042
tree5b7033035054ecda7bfdd735759970c500704c17
parentf0088ca2be3bafc77993558d794715c652eb7b25
Make rank assignments configurable

The initial search and address rank is saved in a table
that is set up from a json configuration file. Ranks may
be assigned on a country level according to class and
type of the object. Special handling that depends on the
geometry or OSM type is still hard-coded in placex insert.

The new default config file mimicks the current assignment
as close as possible. A couple of exceptions have been
removed, most notably the exception for Irish townlands.
data/address-levels.json [new file with mode: 0644]
lib/setup/AddressLevelParser.php [new file with mode: 0644]
lib/setup/SetupClass.php
settings/defaults.php
sql/functions.sql
test/bdd/db/import/placex.feature
test/bdd/db/update/simple.feature