forked from hans/Nominatim
improve fallback ranking
Boundaries and places now always get a rank < 26 to make sure that they do not parent to a street. Skip boundary=place completely because they will be covered throught the secondary place tag.
This commit is contained in:
@@ -29,7 +29,9 @@
|
|||||||
"square" : 25,
|
"square" : 25,
|
||||||
"houses" : [28, 0],
|
"houses" : [28, 0],
|
||||||
"farm" : [20, 0],
|
"farm" : [20, 0],
|
||||||
"locality" : [20, 0]
|
"locality" : [20, 0],
|
||||||
|
"house" : 30,
|
||||||
|
"" : [22, 0]
|
||||||
},
|
},
|
||||||
"boundary" : {
|
"boundary" : {
|
||||||
"administrative2" : 4,
|
"administrative2" : 4,
|
||||||
@@ -42,7 +44,8 @@
|
|||||||
"administrative9" : 18,
|
"administrative9" : 18,
|
||||||
"administrative10" : 20,
|
"administrative10" : 20,
|
||||||
"administrative11" : 22,
|
"administrative11" : 22,
|
||||||
"administrative12" : 24
|
"administrative12" : 24,
|
||||||
|
"" : [25, 0]
|
||||||
},
|
},
|
||||||
"landuse" : {
|
"landuse" : {
|
||||||
"residential" : 22,
|
"residential" : 22,
|
||||||
@@ -88,7 +91,7 @@
|
|||||||
"" : [20, 0]
|
"" : [20, 0]
|
||||||
},
|
},
|
||||||
"historic" : {
|
"historic" : {
|
||||||
"neighbourhood" : [30, 0]
|
"neighbourhood" : [22, 0]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -124,6 +124,7 @@
|
|||||||
{
|
{
|
||||||
"keys" : ["boundary"],
|
"keys" : ["boundary"],
|
||||||
"values" : {
|
"values" : {
|
||||||
|
"place" : "skip",
|
||||||
"" : "main,with_name"
|
"" : "main,with_name"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -124,6 +124,7 @@
|
|||||||
{
|
{
|
||||||
"keys" : ["boundary"],
|
"keys" : ["boundary"],
|
||||||
"values" : {
|
"values" : {
|
||||||
|
"place" : "skip",
|
||||||
"" : "main,with_name"
|
"" : "main,with_name"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user