Skip to content

Commit ecaa549

Browse files
committed
keep additional place if node place has same name than parent country name (e.g Gibraltar or Vatican city)
1 parent f806cc9 commit ecaa549

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/additional_zones.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub fn compute_additional_places(
6767
// duplicates, for example by adding an admin label which is inside its
6868
// boundary.
6969
parent_zone >= place.zone_type.unwrap_or(parent_zone)
70-
&& parent_zone < ZoneType::Country
70+
&& (parent_zone < ZoneType::Country || parent.name == place.name)
7171
})
7272
.unwrap_or(false)
7373
})

0 commit comments

Comments
 (0)