respect-validation/data/iso_3166-2/GB.json
Henrique Moody 718bacad04
Remove subdivision code rules per country
There is no much benefit from having individual rules for each country's
subdivision, quite the opposite. It increases the amount of code and
makes it hard to change the implementation of these rules. Right now,
the only sane way to change those rules is with a customized script.

This commit will remove the Subdivision Code rules per country and
instead will put that information into JSON files.

We both wouldn't like to keep this in this library anymore, and we are
considering having another library to deal with this data [1], but since
it seems like it may take some time, looks better to do it temporarily
here.

[1]: https://github.com/sokil/php-isocodes/issues/12

Co-authored-by: Mazen Touati <mazen_touati@hotmail.com>
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-04-06 23:05:24 +02:00

228 lines
5.9 KiB
JSON

{
"source": "http://www.geonames.org/GB/administrative-division-united-kingdom.html",
"country": "United Kingdom",
"subdivisions": {
"ABC": "Armagh City Banbridge and Craigavon",
"ABD": "Aberdeenshire",
"ABE": "Aberdeen",
"AGB": "Argyll and Bute",
"AGY": "Isle of Anglesey",
"AND": "Ards and North Down",
"ANN": "Antrim and Newtownabbey",
"ANS": "Angus",
"BAS": "Bath and North East Somerset",
"BBD": "Blackburn with Darwen",
"BDF": "Bedford",
"BDG": "Barking and Dagenham",
"BEN": "Brent",
"BEX": "Bexley",
"BFS": "Belfast",
"BGE": "Bridgend",
"BGW": "Blaenau Gwent",
"BIR": "Birmingham",
"BKM": "Buckinghamshire",
"BMH": "Bournemouth",
"BNE": "Barnet",
"BNH": "Brighton and Hove",
"BNS": "Barnsley",
"BOL": "Bolton",
"BPL": "Blackpool",
"BRC": "Bracknell Forest",
"BRD": "Bradford",
"BRY": "Bromley",
"BST": "Bristol City of",
"BUR": "Bury",
"CAM": "Cambridgeshire",
"CAY": "Caerphilly",
"CBF": "Central Bedfordshire",
"CCG": "Causeway Coast and Glens",
"CGN": "Ceredigion",
"CHE": "Cheshire East",
"CHW": "Cheshire West and Chester",
"CLD": "Calderdale",
"CLK": "Clackmannanshire",
"CMA": "Cumbria",
"CMD": "Camden",
"CMN": "Carmarthenshire",
"CON": "Cornwall",
"COV": "Coventry (West Midlands district)",
"CRF": "Cardiff",
"CRY": "Croydon",
"CWY": "Conwy",
"DAL": "Darlington",
"DBY": "Derbyshire",
"DEN": "Denbighshire",
"DER": "Derby",
"DEV": "Devon",
"DGY": "Dumfries and Galloway",
"DNC": "Doncaster",
"DND": "Dundee",
"DOR": "Dorset",
"DRS": "Derry City and Strabane",
"DUD": "Dudley (West Midlands district)",
"DUR": "Durham",
"EAL": "Ealing",
"EAY": "East Ayrshire",
"EDH": "Edinburgh",
"EDU": "East Dunbartonshire",
"ELN": "East Lothian",
"ELS": "Eilean Siar",
"ENF": "Enfield",
"ENG": "England",
"ERW": "East Renfrewshire",
"ERY": "East Riding of Yorkshire",
"ESS": "Essex",
"ESX": "East Sussex",
"FAL": "Falkirk",
"FIF": "Fife",
"FLN": "Flintshire",
"FMO": "Fermanagh and Omagh",
"GAT": "Gateshead (Tyne",
"GLG": "Glasgow",
"GLS": "Gloucestershire",
"GRE": "Greenwich",
"GWN": "Gwynedd",
"HAL": "Halton",
"HAM": "Hampshire",
"HAV": "Havering",
"HCK": "Hackney",
"HEF": "Herefordshire County of",
"HIL": "Hillingdon",
"HLD": "Highland",
"HMF": "Hammersmith and Fulham",
"HNS": "Hounslow",
"HPL": "Hartlepool",
"HRT": "Hertfordshire",
"HRW": "Harrow",
"HRY": "Haringey",
"IOS": "Isles of Scilly",
"IOW": "Isle of Wight",
"ISL": "Islington",
"IVC": "Inverclyde",
"KEC": "Kensington and Chelsea",
"KEN": "Kent",
"KHL": "Kingston upon Hull City of",
"KIR": "Kirklees",
"KTT": "Kingston upon Thames",
"KWL": "Knowsley",
"LAN": "Lancashire",
"LBC": "Lisburn and Castlereagh",
"LBH": "Lambeth",
"LCE": "Leicester",
"LDS": "Leeds",
"LEC": "Leicestershire",
"LEW": "Lewisham",
"LIN": "Lincolnshire",
"LIV": "Liverpool",
"LND": "London City of",
"LUT": "Luton",
"MAN": "Manchester",
"MDB": "Middlesbrough",
"MDW": "Medway",
"MEA": "Mid and East Antrim",
"MIK": "Milton Keynes",
"MLN": "Midlothian",
"MON": "Monmouthshire",
"MRT": "Merton",
"MRY": "Moray",
"MTY": "Merthyr Tydfil",
"MUL": "Mid Ulster",
"NAY": "North Ayrshire",
"NBL": "Northumberland",
"NEL": "North East Lincolnshire",
"NET": "Newcastle upon Tyne",
"NFK": "Norfolk",
"NGM": "Nottingham",
"NIR": "Northern Ireland",
"NLK": "North Lanarkshire",
"NLN": "North Lincolnshire",
"NMD": "Newry Mourne and Down",
"NSM": "North Somerset",
"NTH": "Northamptonshire",
"NTL": "Neath Port Talbot",
"NTT": "Nottinghamshire",
"NTY": "North Tyneside",
"NWM": "Newham",
"NWP": "Newport",
"NYK": "North Yorkshire",
"OLD": "Oldham",
"ORK": "Orkney Islands",
"OXF": "Oxfordshire",
"PEM": "Pembrokeshire",
"PKN": "Perth and Kinross",
"PLY": "Plymouth",
"POL": "Poole",
"POR": "Portsmouth",
"POW": "Powys",
"PTE": "Peterborough",
"RCC": "Redcar and Cleveland",
"RCH": "Rochdale",
"RCT": "Rhondda Cynon Taf",
"RDB": "Redbridge",
"RDG": "Reading",
"RFW": "Renfrewshire",
"RIC": "Richmond upon Thames",
"ROT": "Rotherham",
"RUT": "Rutland",
"SAW": "Sandwell",
"SAY": "South Ayrshire",
"SCB": "Scottish Borders The",
"SCT": "Scotland",
"SFK": "Suffolk",
"SFT": "Sefton",
"SGC": "South Gloucestershire",
"SHF": "Sheffield",
"SHN": "St Helens",
"SHR": "Shropshire",
"SKP": "Stockport",
"SLF": "Salford",
"SLG": "Slough",
"SLK": "South Lanarkshire",
"SND": "Sunderland",
"SOL": "Solihull",
"SOM": "Somerset",
"SOS": "Southend-on-Sea",
"SRY": "Surrey",
"STE": "Stoke-on-Trent",
"STG": "Stirling",
"STH": "Southampton",
"STN": "Sutton",
"STS": "Staffordshire",
"STT": "Stockton-on-Tees",
"STY": "South Tyneside",
"SWA": "Swansea",
"SWD": "Swindon",
"SWK": "Southwark",
"TAM": "Tameside",
"TFW": "Telford and Wrekin",
"THR": "Thurrock",
"TOB": "Torbay",
"TOF": "Torfaen",
"TRF": "Trafford",
"TWH": "Tower Hamlets",
"VGL": "Vale of Glamorgan",
"WAR": "Warwickshire",
"WBK": "West Berkshire",
"WDU": "West Dunbartonshire",
"WFT": "Waltham Forest",
"WGN": "Wigan",
"WIL": "Wiltshire",
"WKF": "Wakefield",
"WLL": "Walsall",
"WLN": "West Lothian",
"WLS": "Wales",
"WLV": "Wolverhampton",
"WND": "Wandsworth",
"WNM": "Windsor and Maidenhead",
"WOK": "Wokingham",
"WOR": "Worcestershire",
"WRL": "Wirral",
"WRT": "Warrington",
"WRX": "Wrexham",
"WSM": "Westminster",
"WSX": "West Sussex",
"YOR": "York",
"ZET": "Shetland Islands"
}
}