mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
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.
This commit is contained in:
@@ -34,7 +34,7 @@ Feature: Update of simple objects
|
||||
When importing
|
||||
Then placex contains
|
||||
| object | rank_address |
|
||||
| R1 | 0 |
|
||||
| R1 | 30 |
|
||||
| W1 | 30 |
|
||||
When marking for delete R1,W1
|
||||
Then placex has no entry for W1
|
||||
@@ -103,4 +103,4 @@ Feature: Update of simple objects
|
||||
| W1 | boundary | historic | Haha | 5 | (1, 2, 4, 3, 1) |
|
||||
Then placex contains
|
||||
| object | rank_address |
|
||||
| W1 | 0 |
|
||||
| W1 | 30 |
|
||||
|
||||
Reference in New Issue
Block a user