-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HDXDSYS-765 Parent name mapping (#42)
* Allow admin name mappings to be restricted by parent admin or country. * Make separate method for readability * Do same for admin_name_replacements
- Loading branch information
Showing
4 changed files
with
279 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
admin_info_with_parent: | ||
- {pcode: AF0101, name: Kabul, iso3: AFG, parent: AF01} | ||
- {pcode: AF0102, name: Paghman, iso3: AFG, parent: AF01} | ||
- {pcode: AF0201, name: Kabul, iso3: AFG, parent: AF02} # testing purposes | ||
- {pcode: AF0301, name: Charikar, iso3: AFG, parent: AF03} | ||
- {pcode: AF0401, name: Maydan Shahr, iso3: AFG, parent: AF04} | ||
- {pcode: AF0501, name: Pul-e-Alam, iso3: AFG, parent: AF05} | ||
- {pcode: AF0501, name: Pul-e-Alam, iso3: AFG, parent: AF05} | ||
- {pcode: CD2013, name: Mbanza-Ngungu, iso3: COD, parent: CD20} | ||
- {pcode: CD3102, name: Kenge, iso3: COD, parent: CD31} | ||
- {pcode: MW305, name: Blantyre, iso3: MWI, parent: MW3} | ||
|
||
admin_name_mappings: | ||
"MyMapping": "AF0301" | ||
"AFG|MyMapping2": "AF0401" | ||
"AF05|MyMapping3": "AF0501" | ||
|
||
admin_name_replacements: | ||
" city": "" | ||
|
||
alt1_admin_name_replacements: | ||
"COD| city": "" | ||
|
||
alt2_admin_name_replacements: | ||
"CD20| city": "" |
Oops, something went wrong.