Skip to content

Commit

Permalink
keep additional place if node place has same name than parent country…
Browse files Browse the repository at this point in the history
… name (e.g Gibraltar or Vatican city)
  • Loading branch information
sdrll committed Jan 29, 2024
1 parent f806cc9 commit ecaa549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/additional_zones.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pub fn compute_additional_places(
// duplicates, for example by adding an admin label which is inside its
// boundary.
parent_zone >= place.zone_type.unwrap_or(parent_zone)
&& parent_zone < ZoneType::Country
&& (parent_zone < ZoneType::Country || parent.name == place.name)
})
.unwrap_or(false)
})
Expand Down

0 comments on commit ecaa549

Please sign in to comment.