mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
remove special handling of rail
Skip railway=rail in the style, so that installations can remove it if they wish.
This commit is contained in:
@@ -98,6 +98,7 @@
|
|||||||
"values" : {
|
"values" : {
|
||||||
"level_crossing" : "skip",
|
"level_crossing" : "skip",
|
||||||
"no" : "skip",
|
"no" : "skip",
|
||||||
|
"rail" : "extra",
|
||||||
"" : "main,with_name"
|
"" : "main,with_name"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -98,6 +98,7 @@
|
|||||||
"values" : {
|
"values" : {
|
||||||
"level_crossing" : "skip",
|
"level_crossing" : "skip",
|
||||||
"no" : "skip",
|
"no" : "skip",
|
||||||
|
"rail" : "skip",
|
||||||
"" : "main,with_name"
|
"" : "main,with_name"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -62,8 +62,6 @@ BEGIN
|
|||||||
ELSEIF NEW.class = 'boundary' AND NEW.type = 'administrative'
|
ELSEIF NEW.class = 'boundary' AND NEW.type = 'administrative'
|
||||||
AND NEW.admin_level <= 4 AND NEW.osm_type = 'W' THEN
|
AND NEW.admin_level <= 4 AND NEW.osm_type = 'W' THEN
|
||||||
return NULL;
|
return NULL;
|
||||||
ELSEIF NEW.class = 'railway' AND NEW.type in ('rail') THEN
|
|
||||||
return NULL;
|
|
||||||
ELSEIF NEW.osm_type = 'N' AND NEW.class = 'highway' THEN
|
ELSEIF NEW.osm_type = 'N' AND NEW.class = 'highway' THEN
|
||||||
NEW.rank_search = 30;
|
NEW.rank_search = 30;
|
||||||
NEW.rank_address = 0;
|
NEW.rank_address = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user