forked from mysociety/local-intelligence-hub
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow geocoding by mapit type (e.g. for more niche geocoding)
- Loading branch information
1 parent
405d339
commit 5db4d3b
Showing
4 changed files
with
126 additions
and
45 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
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,36 @@ | ||
MAPIT_STC_TYPES = ["LBO", "UTA", "COI", "LGD", "CTY", "MTD"] | ||
MAPIT_DIS_TYPES = ["DIS", "NMD"] | ||
MAPIT_COUNCIL_TYPES = MAPIT_STC_TYPES + MAPIT_DIS_TYPES | ||
LIH_COUNCIL_TYPES = ["DIS", "STC"] | ||
MAPIT_WARD_TYPES = ["COI", "CPW", "DIW", "LBW", "LGW", "MTW", "UTE", "UTW"] | ||
|
||
boundary_types = [ | ||
{ | ||
"mapit_type": ["WMC"], | ||
"name": "2023 Parliamentary Constituency", | ||
"code": "WMC23", | ||
"area_type": "Westminster Constituency", | ||
"description": "Westminster Parliamentary Constituency boundaries, as created in 2023", | ||
}, | ||
{ | ||
"mapit_type": MAPIT_STC_TYPES, | ||
"name": "Single Tier Councils", | ||
"code": "STC", | ||
"area_type": "Single Tier Council", | ||
"description": "Single Tier Council", | ||
}, | ||
{ | ||
"mapit_type": MAPIT_DIS_TYPES, | ||
"name": "District Councils", | ||
"code": "DIS", | ||
"area_type": "District Council", | ||
"description": "District Council", | ||
}, | ||
{ | ||
"mapit_type": MAPIT_WARD_TYPES, | ||
"name": "Wards", | ||
"code": "WD23", | ||
"area_type": "Electoral Ward", | ||
"description": "Electoral wards", | ||
}, | ||
] |