diff --git a/Docs/Geography/GeographicalPositioning.md b/Docs/Geography/GeographicalPositioning.md new file mode 100644 index 00000000..bad8fd0c --- /dev/null +++ b/Docs/Geography/GeographicalPositioning.md @@ -0,0 +1,92 @@ +# Geographical resolution and map positioning + +Implementation and qualification record, 13 November 2026. This feature extends existing Locations and Maps. Word Companion, manuscript persistence, Context and Intent are untouched. + +## Author workflow and triggers + +Creating a location **never submits a geographical request**, including creation with a parent. Existing-name and type edits invalidate affected coordinates but do not request new lookup. Moving an existing location beneath a recognised geographical root requests resolution for that branch. Editing an existing location's parent follows the same path. For an already arranged hierarchy, Location Details offers **Resolve this arranged hierarchy (up to 20 places)** as a deliberate request. There is no database-wide enrichment or periodic refresh. The 30-second worker only drains these finite persisted requests. + +Admission is deliberately conservative: up to 20 locations per branch, one batch per author per hour and six batches per application per hour. Retry and explicit replacement use the same admission limit. Larger branches must be arranged/requested in smaller portions; multiple quick hierarchy edits may hit the hourly limit. Hierarchy edits still save when lookup admission is declined; the Locations tree explains the outcome. Confirmation does not spend a provider request or batch allowance. + +Location Details shows status, candidate name/administrative context/country/coordinates and source attribution. Selecting a candidate sends its index and the observed generation, never client-supplied coordinates. Confirmed matches persist until identifying context changes or the author explicitly chooses replacement/exclusion. Authors can exclude lookup and later re-enable it; re-enabling waits for a deliberate hierarchy request. + +## Eligibility and root reference + +Existing database types are Country, Region, Town, Village, Street, Building, Floor, Room, Outdoor Area, Vehicle Interior, Landmark and Other. Only Country, Region, Town and Village currently qualify. The generic rule also supports State, County and City if those types already exist in another installation; it does not insert or rename types. Premises, streets and arbitrary non-geographical intermediate parents are excluded. + +Country and administrative-root recognition uses the bundled Debian `iso-codes` ISO 3166-1/3166-2 datasets, not a UK-only coordinate gazetteer. Attribution/licensing accompany the files in `PlotLine/Data/Reference/Geography/COPYRIGHT.txt`. Update these reference snapshots from the upstream iso-codes project, review their differences and run the focused geography tests. Country names, official/common names and alpha-3 identifiers are accepted. Explicit subdivision codes and country-qualified subdivision names (for example `US-CA` or `California, US`) avoid unsafe bare-region assumptions. UK/United Kingdom and US/USA/United States aliases are supported, as are England, Scotland, Wales and Northern Ireland. Bare Georgia is deliberately excluded; use GEO for the country or US-GA for the state. Fictional roots fail closed. Incomplete/archived ancestor chains also fail closed. + +Depth is flexible: there is no requirement to insert missing administrative levels. All available geographical ancestors are sent, with a country restriction and explicit subdivision checking when available. Production rules contain no manuscript-specific place names. + +## Provider decision and policy + +The initial configurable provider is **public Nominatim**, following the developer's explicit decision for a small user base and finite author-triggered hierarchy requests. No local UK gazetteer, OS Names API, map tiles or additional coordinate infrastructure is shipped. + +The [OSMF usage policy](https://operations.osmfoundation.org/policies/nominatim/) was checked on 13 November 2026. It permits modest user-triggered searches, limits the application as a whole to at most one request per second, requires an identifying User-Agent and attribution, discourages recurring/bulk work, and restricts permissible small bulk jobs to one thread on one machine. Regular or day-long scripts have a stricter four-request-per-minute ceiling. Repeated queries must be cached. Service availability and permission can change. These limits are not a blanket approval for scaling the workload; review the provider before increasing caps or user numbers. + +This implementation always uses the stricter 15-second interval, one designated host, one database-fenced external request at a time and a 200-request daily application cap. Retries also consume this budget. Public usage requires no API key or subscription; service capacity is donated and carries no application SLA. Data attribution is `© OpenStreetMap contributors`, with the [ODbL/copyright link](https://www.openstreetmap.org/copyright), retained with candidates and displayed in Location Details and geographical preview. The ODbL terms apply to reuse of the geographical cache; do not publish a substantial extracted database without reviewing its obligations. + +The [Search API](https://nominatim.org/release-docs/latest/api/Search/) returns ranked matches, not a proof of uniqueness. The Nominatim adapter automatically resolves only one non-truncated candidate with an exact place-name match, matching country/subdivision, all available additional administrative ancestors represented in the response, and identifying context beyond a country-only root (an explicit subdivision root or additional matching ancestor). Multiple candidates, missing context, aliases without exact provider-name evidence and country-only queries require confirmation. A single ranking alone is insufficient. This deliberately means that the broad `United Kingdom → town` case may require confirmation; `England → town` or matching county context can resolve automatically. Other adapters must establish equivalent reliable matching rules before setting `UniqueWithinContext`. The deterministic tests cover automatic resolution and conservative ambiguity. OSM identities use `osm_type:osm_id`; Nominatim's transient numeric `place_id` is not treated as a stable identity ([output documentation](https://nominatim.org/release-docs/latest/api/Output/)). + +Earlier OS Open Names investigation found Great Britain coverage only, OGL commercial reuse, quarterly full replacements and an API alternative with the same underlying geographical coverage. Northern Ireland must not be inferred from Great Britain coverage. This direction was superseded by the explicit Nominatim decision; no OS data/importer/provider is part of this feature. + +## Configuration and safe disable/switch + +Defaults keep external processing disabled. Put the following section in the deployment's watched `appsettings.Production.json` (or the applicable watched environment JSON), preserving its other settings: + +```json +"Geography": { + "Enabled": false, + "Provider": "Nominatim", + "Endpoint": "https://nominatim.openstreetmap.org/search", + "UserAgent": "PlotDirector/1.0 (+https://dev.plotdirector.com/)", + "WorkerHost": "atlas", + "MinimumIntervalSeconds": 15 +} +``` + +Use the actual designated machine name and an identifying application/contact URL. `Enabled=true` requires a valid PlotDirector User-Agent and matching host. `Enabled=false` or a provider value other than Nominatim disables external lookup. An alternative Nominatim-compatible endpoint can be selected through the same configuration. `IOptionsMonitor` reloads watched JSON without redeployment. Environment-variable changes require a process restart, so use watched JSON when immediate disable/switch is required. HTTP redirects are disabled, and the server never exposes this configuration to browser clients. HttpClient request logging is removed for this client to prevent query URLs leaking into routine logs. + +No external requests run during the automated tests. Public service testing must be an explicitly approved, small manual author-triggered acceptance check, not a dependency of the regression gate. + +## Queue, cache, concurrency and privacy + +The Locations trigger invalidates changed locations and descendants on name/type/parent/archive changes. Ordinary descriptions do not invalidate confirmed geography. Invalidation increments a generation and revokes leases; it does not submit new work. The application admits author hierarchy events after its existing project-access checks. SQL rechecks project access and generation and admits the finite subtree under a transaction and central quota lock. + +Jobs persist across restarts. A single per-location row deduplicates work. A two-minute processing lease supports crash recovery; a 25-second HTTP timeout keeps normal calls within that lease. Provider reservations serialize all external requests across application processes, with a persistent next-request timestamp, daily budget and cross-author request-key lease. The designated-host check prevents external processing on a second machine. Persistent request-key caching prevents repeats, including empty results; no TTL refresh is scheduled. Provider/endpoint plus country/subdivision and the complete available ancestor context form the request hash. Different Newtown contexts cannot reuse coordinates based on name alone. + +Shared cache entries contain provider-returned public geographical candidates: provider/OSM identity, canonical display name, coordinates, country, administrative context, attribution and resolution time. They contain no project, account, private description, manuscript text or original hierarchy. Per-author confirmation remains on that author's Location record; an ambiguous choice by one author is not silently promoted into another author's confirmed match. Identical candidate sets may be reused, with confirmation still required. + +Provider failures have four bounded attempts and 60/120/240/480-second backoff. Rate reservation failures defer work without consuming a provider failure. HTTP 403/429 also apply an application-wide cooldown, respecting Retry-After subject to safe bounds. No provider error body/query/credential is logged. Only bounded error-type operational events are logged. Stale completion checks both generation and lease; a confirmed coordinate cannot be overwritten by a worker. + +## Maps + +**Position geographically** projects resolved, unlocked location markers onto the currently visible canvas area. It uses a spherical azimuthal equidistant local projection, north up at its centre; circular longitude centring handles the antimeridian. One scale preserves aspect ratio with padding. Single/coincident points remain finite and centred; coincident places deliberately overlap. Shapes, paths, unlinked markers and locked pieces retain their serialized contents. Connected routes retain their existing behaviour of following their linked markers. + +This is a local projection, not a claim that every pairwise spherical distance is exactly preserved. Extents beyond 15 degrees from the centre (roughly 1,650 km) are refused to avoid a misleading global arrangement. Labels and markers may overlap in dense clusters; authors can adjust them afterwards. + +The existing canvas renders a preview while the working document remains unchanged. The dialog identifies moves, skipped statuses/locks and attribution. Cancel/Escape preserve the complete document. Apply adds one existing Undo/Redo checkpoint; Save uses the established map revision/permission/persistence path. No objects are deleted/recreated. Manual canvas dragging cannot alter geographical coordinates. Repositioning is always explicit. + +## Database rollout + +New tables/procedures are in 253, 254, 255 and 256. Apply **253, 255, 254, 256**, not a blind numeric replay. During Development qualification, 254 exposed that a new job-state label exceeded the original 24-character column; 255 is the forward-only width repair, preserving the applied scripts. 254 then completed successfully. 256 indexes the durable queue and batch-time lookup. + +Development was verified as `PlotDirector_Development` before applying changes. A copy-only compressed CHECKSUM backup was successfully created and its nonempty container file verified at `/var/opt/mssql/backup/PlotDirector_Development_geography_20261113_142234.bak`. An additional RESTORE VERIFYONLY attempt was unavailable to the application principal (CREATE DATABASE permission); no restore was attempted. The backup is not a tested restore. Existing unrelated manuscript/Word work is preserved. + +New per-location geography rows cascade on physical Location deletion. Shared public cache and provider-budget rows contain no private project hierarchy. The feature does not modify the existing map X/Y schema. Project backups currently do not export/import geocoding decisions; restored locations will need an explicit hierarchy request and confirmation again. Existing map canvas coordinates continue through the established map backup path. + +## Verification commands + +Run build and regression serially: + +```sh +dotnet build PlotLine.slnx +dotnet run --project PlotLine.Tests/PlotLine.Tests.csproj +dotnet run --project PlotLine.Tests/PlotLine.Tests.csproj -- --geography +``` + +The normal harness includes the deterministic geography group. Development-only SQL regressions `253_LocationGeographyRegression.sql` and `254_GeographyHierarchyBatchesRegression.sql` use rollback fixtures. `--geography-database` separately verifies 16 concurrent database provider reservations, persistent cooldown and fresh-connection recovery using random synthetic provider/request identifiers, then removes only its own rows. It makes no external requests. + +Browser tests: `maps-geography-engine.cjs`, `maps-geography.cjs`, `location-geography.cjs`, existing `maps-engine.cjs`, `maps-workspace.cjs`, `location-reparent.cjs`, and `application-pwa.cjs`. The workspace tests use the isolated Razor host (`--toolbar-browser-host`) and deterministic mocked resolutions/saves, including browser/PWA and light/dark themes. The existing Maps test screenshots were redirected to the task evidence directory because the shared `/tmp` write quota rejected screenshot output; assertions were unchanged. + +Final execution results, deployed commit and any remaining Development acceptance work are recorded in the delivery report accompanying this document. diff --git a/PlotLine.Tests/Browser/location-geography.cjs b/PlotLine.Tests/Browser/location-geography.cjs new file mode 100644 index 00000000..e3c39f18 --- /dev/null +++ b/PlotLine.Tests/Browser/location-geography.cjs @@ -0,0 +1,20 @@ +const {chromium}=require('playwright'),assert=require('node:assert/strict'),fs=require('node:fs'); +(async()=>{const browser=await chromium.launch();try{ + const page=await browser.newPage();let chosen=null; + const candidate={Provider:'Fake',PlaceID:'node:1',Name:'Newtown ',Latitude:52.5,Longitude:-3.3,CountryCode:'GB',AdministrativeNames:['Powys','Wales'],Attribution:'Synthetic fixture'}; + let state={locationID:11,generation:4,status:'Needs confirmation',candidatesJson:JSON.stringify([candidate]),isExcluded:false}; + await page.route('https://plotdirector.test/**',r=>{ + if(r.request().url().includes('/Geography/State'))return r.fulfill({json:[state]}); + if(r.request().url().endsWith('/Geography/Confirm')){chosen=Object.fromEntries(new URLSearchParams(r.request().postData()));state={...state,status:'Resolved',matchJson:JSON.stringify(candidate),confirmed:true};return r.fulfill({json:{ok:true}});} + return r.fulfill({contentType:'text/html',body:'
'}); + }); + await page.goto('https://plotdirector.test/Locations/Details/11'); + await page.addScriptTag({content:fs.readFileSync(require('node:path').resolve(__dirname,'../../PlotLine/wwwroot/js/location-geography.js'),'utf8')}); + await page.getByRole('button',{name:/Newtown/}).click(); + await page.waitForFunction(()=>document.querySelector('[data-geography-status]').textContent==='Resolved'); + assert.deepEqual(chosen,{projectId:'7',locationId:'11',generation:'4',candidateIndex:'0'}); + assert(await page.getByText('Newtown · Powys, Wales · GB',{exact:true}).isVisible(),'metadata is rendered as text'); + assert.equal(await page.locator('script').count(),1,'no candidate HTML injection'); + assert(await page.getByRole('button',{name:'Change geographical match'}).isVisible()); + console.log('PASS Location candidate context, index-only confirmation, generation protection and safe text rendering; no external calls.'); +}finally{await browser.close();}})().catch(e=>{console.error(e);process.exit(1);}); diff --git a/PlotLine.Tests/Browser/maps-geography-engine.cjs b/PlotLine.Tests/Browser/maps-geography-engine.cjs new file mode 100644 index 00000000..75654ac3 --- /dev/null +++ b/PlotLine.Tests/Browser/maps-geography-engine.cjs @@ -0,0 +1,23 @@ +const assert=require('node:assert/strict'); +const {position}=require('../../PlotLine/wwwroot/js/maps-geography-engine.js'); +const box={x:0,y:0,w:1200,h:800}; +const marker=(id,more={})=>({featureID:String(id),name:'Place '+id,locationID:id,geometryClass:'Marker',x:10,y:10,isLocked:false,...more}); +const state=(id,lat,lon)=>({locationID:id,status:'Resolved',matchJson:JSON.stringify({Latitude:lat,Longitude:lon,Attribution:'Synthetic'})}); +const fs=[marker(1),marker(2),marker(3),marker(4,{isLocked:true}),marker(5,{geometryClass:'Path'}),{featureID:'unrelated',geometryClass:'Area',x:99,y:98}]; +const before=JSON.stringify(fs),r=position(fs,[state(1,52,0),state(2,52.01,0),state(3,52,.01),state(4,52,0),state(5,52,0)],box); +assert.equal(JSON.stringify(fs),before,'projection leaves source untouched (preview cancel)'); +assert(r.features[1].yr.features[0].x,'east is right'); +const north=r.features[0].y-r.features[1].y,east=r.features[2].x-r.features[0].x; +assert(Math.abs(east/north-Math.cos(52*Math.PI/180))<.002,'geographical distance ratio and a single aspect scale'); +for(const p of r.features.slice(0,3)){assert(p.x>=80&&p.x<=1120);assert(p.y>=80&&p.y<=720);} +assert.deepEqual(r.features.slice(3),fs.slice(3),'locks, paths and unrelated drawings remain byte-equivalent'); +assert.equal(r.skipped.length,2); +for(const coords of [[[52,0]],[[52,0],[52,0]],[[52,0],[52,1]],[[0,179.9],[0,-179.9]],[[89,0],[89,1]]]){ + const result=position(coords.map((_,i)=>marker(i+1)),coords.map((p,i)=>state(i+1,...p)),box); + assert(result.features.every(p=>Number.isFinite(p.x)&&Number.isFinite(p.y)),'single/two/coincident/antimeridian/polar points finite'); + if(coords.length===1)assert.deepEqual([result.features[0].x,result.features[0].y],[600,400]); +} +assert.throws(()=>position([marker(1),marker(2)],[state(1,0,0),state(2,0,160)],box),/too large|too much/); +assert.equal(position([marker(1)],[{locationID:1,status:'Needs confirmation'}],box).positioned.length,0); +assert.equal(position([marker(1)],[state(1,NaN,0)],box).positioned.length,0); +console.log('PASS geographical projection direction, proportional distances, aspect ratio, padding, antimeridian, polar/single/coincident cases, extent refusal, locks and preservation.'); diff --git a/PlotLine.Tests/Browser/maps-geography.cjs b/PlotLine.Tests/Browser/maps-geography.cjs new file mode 100644 index 00000000..0b9ccfd6 --- /dev/null +++ b/PlotLine.Tests/Browser/maps-geography.cjs @@ -0,0 +1,59 @@ +const {chromium}=require('playwright'); +const assert=require('node:assert/strict'); +const base=process.env.PD_MAPS_TEST_URL||'http://127.0.0.1:5238'; +(async()=>{ + const browser=await chromium.launch(); + try{ + for(const pwa of [false,true])for(const theme of ['modern-light','modern-dark']){ + const context=await browser.newContext({viewport:{width:1700,height:1100}}); + if(pwa)await context.addInitScript(()=>Object.defineProperty(navigator,'standalone',{value:true})); + const page=await context.newPage(),errors=[];page.on('pageerror',e=>errors.push(e.message)); + let saves=0; + await page.route('**/Maps/Save',r=>{saves++;const d=r.request().postDataJSON();d.map.revision++;return r.fulfill({json:d});}); + const states=[[11,52.486,-1.89],[12,52.391,-2.016]].map(([id,lat,lon])=>({locationID:id,status:'Resolved',matchJson:JSON.stringify({Latitude:lat,Longitude:lon,Attribution:'Synthetic fixture; no provider calls'})})); + states.push({locationID:13,status:'Needs confirmation'}); + await page.route('**/Geography/State?*',r=>r.fulfill({json:states})); + await page.goto(base+'/fixture?page=maps&theme='+theme);await page.waitForFunction(()=>!!window.PlotDirectorMapWorkspace); + await page.evaluate(()=>{ + const W=window.PlotDirectorMapWorkspace; + W.edit(()=>{ + for(const [id,name,lock]of [[11,'Birmingham',false],[12,'Rubery',false],[13,'Newtown',false],[14,'Locked place',true]])W.document.features.push({featureID:crypto.randomUUID(),name,type:'Town',geometryClass:'Marker',layer:'Places',x:id*5,y:id*7,width:48,height:48,rotation:0,zOrder:1,isPlaced:true,isProvisional:false,isLocked:lock,showLabel:true,labelX:0,labelY:0,locationID:id,geometryJson:'{}'}); + W.document.features.push({featureID:crypto.randomUUID(),name:'Drawing',type:'Island',geometryClass:'Area',layer:'Land',x:500,y:500,width:200,height:100,rotation:0,zOrder:0,isPlaced:true,isLocked:false,geometryJson:'{}'}); + }); + }); + const read=()=>page.evaluate(()=>JSON.stringify(window.PlotDirectorMapWorkspace.document.features)); + const before=await read(); + async function command(id){ + if(pwa&&id==='mapsGeographic'){ + const proxy=page.locator('[data-pwa-context-controls] [data-command-identity="handler:mapsGeographic"]'); + assert.equal(await proxy.count(),1,'geographical action is available in the PWA ribbon'); + const menu=proxy.locator('xpath=ancestor::details[1]'); + if(await menu.count()&&await menu.getAttribute('data-compact')==='true'&&await menu.getAttribute('open')===null)await menu.locator(':scope > summary').click(); + await proxy.click(); + }else await page.evaluate(id=>document.getElementById(id).click(),id); + } + await command('mapsGeographic');await page.locator('#mapsGeographicDialog').waitFor({state:'visible'}); + assert.equal(await read(),before,'preview never mutates saved/working document'); + assert.match(await page.locator('#mapsGeographicSummary').innerText(),/Newtown — Needs confirmation/); + assert.match(await page.locator('#mapsGeographicSummary').innerText(),/Locked place — Locked/); + await command('mapsGeographicCancel');assert.equal(await read(),before);assert.equal(saves,0); + await command('mapsGeographic');await page.locator('#mapsGeographicDialog').waitFor({state:'visible'});await page.keyboard.press('Escape'); + assert.equal(await page.locator('#mapsGeographicDialog').isVisible(),false,'Escape cancels');assert.equal(await read(),before); + await command('mapsGeographic');await page.locator('#mapsGeographicDialog').waitFor({state:'visible'});await command('mapsGeographicApply'); + const applied=await read();assert.notEqual(applied,before); + const features=JSON.parse(applied),prior=JSON.parse(before); + assert(features[1].xfeatures[0].y,'Rubery is southwest of Birmingham'); + assert.deepEqual(features.slice(2),prior.slice(2),'ambiguous/locked/drawings preserved'); + await command('mapsUndo');assert.equal(await read(),before,'one undo restores operation'); + await command('mapsRedo');assert.equal(await read(),applied,'redo reproduces operation'); + await command('mapsSave');await page.waitForFunction(()=>!window.PlotDirectorMapWorkspace.busy);assert.equal(saves,1); + const id=features[0].featureID;await page.evaluate(id=>window.PlotDirectorMapWorkspace.select(id),id); + await page.locator(`[data-feature-id="${id}"]`).focus();await page.keyboard.press('ArrowRight'); + assert.equal(JSON.parse(await read())[0].x,features[0].x+5,'manual movement remains available'); + assert.equal(states[0].matchJson,JSON.stringify({Latitude:52.486,Longitude:-1.89,Attribution:'Synthetic fixture; no provider calls'}),'canvas movement cannot change geographic coordinates'); + assert.deepEqual(errors,[]); + console.log('PASS geographic preview/cancel/Escape/apply/undo/redo/save/manual movement/preservation',pwa?'PWA':'browser',theme); + await context.close(); + } + }finally{await browser.close();} +})().catch(e=>{console.error(e);process.exit(1);}); diff --git a/PlotLine.Tests/GeographyDatabaseTests.cs b/PlotLine.Tests/GeographyDatabaseTests.cs new file mode 100644 index 00000000..a5bc3536 --- /dev/null +++ b/PlotLine.Tests/GeographyDatabaseTests.cs @@ -0,0 +1,41 @@ +using System.Diagnostics; +using System.Data; +using System.Security.Cryptography; +using Dapper; +using Microsoft.Data.SqlClient; +using Microsoft.Extensions.Configuration; +using PlotLine.Data; +internal static class GeographyDatabaseTests +{ + public static async Task Run() + { + var start=new ProcessStartInfo("sudo"){RedirectStandardOutput=true,RedirectStandardError=true}; + foreach(var arg in new[]{"-n","cat","/etc/plotdirector/plotdirector.env"})start.ArgumentList.Add(arg); + using var process=Process.Start(start)!;var env=await process.StandardOutput.ReadToEndAsync();await process.WaitForExitAsync(); + if(process.ExitCode!=0)throw new InvalidOperationException("Development configuration unavailable."); + var connectionString=env.Split('\n').Single(s=>s.StartsWith("ConnectionStrings__DefaultConnection=")).Split('=',2)[1].Trim().Trim('"','\''); + if(new SqlConnectionStringBuilder(connectionString).InitialCatalog!="PlotDirector_Development")throw new InvalidOperationException("Development only."); + using var db=new SqlConnection(connectionString);await db.OpenAsync(); + if(await db.ExecuteScalarAsync("SELECT DB_NAME()")!="PlotDirector_Development")throw new InvalidOperationException("Wrong effective database."); + var config=new ConfigurationBuilder().AddInMemoryCollection(new Dictionary{{"ConnectionStrings:DefaultConnection",connectionString}}).Build(); + var factory=new SqlConnectionFactory(config);var provider="FakeConcurrency-"+Guid.NewGuid().ToString("N"); + var keys=Enumerable.Range(0,16).Select(_=>Convert.ToHexString(RandomNumberGenerator.GetBytes(32))).ToArray(); + var leases=Enumerable.Range(0,16).Select(_=>Guid.NewGuid()).ToArray(); + try + { + var results=await Task.WhenAll(Enumerable.Range(0,16).Select(i=>new GeographyRepository(factory).ReserveAsync(provider,TimeSpan.FromSeconds(15),keys[i],leases[i]))); + if(results.Count(x=>x)!=1)throw new InvalidOperationException("Concurrent workers acquired more than one provider slot."); + var winner=Array.IndexOf(results,true); + // A fresh repository (process-equivalent connection) must still see the persisted occupied slot. + if(await new GeographyRepository(factory).ReserveAsync(provider,TimeSpan.FromSeconds(15),keys[0],Guid.NewGuid()))throw new InvalidOperationException("Restart bypassed gate."); + await new GeographyRepository(factory).ReleaseAsync(leases[winner],3600); + if(await new GeographyRepository(factory).ReserveAsync(provider,TimeSpan.FromSeconds(15),keys[0],Guid.NewGuid()))throw new InvalidOperationException("Provider cooldown bypassed."); + Console.WriteLine("PASS 16 concurrent SQL provider reservations: exactly one winner, fresh-connection recovery and persistent provider cooldown; zero external calls."); + } + finally + { + // Only this test's random synthetic provider and exact random request keys are removed. + await db.ExecuteAsync("DELETE dbo.GeographicLookupLease WHERE RequestKey IN @keys; DELETE dbo.GeographicProviderGate WHERE Provider=@provider",new{keys,provider}); + } + } +} diff --git a/PlotLine.Tests/GeographyTests.cs b/PlotLine.Tests/GeographyTests.cs new file mode 100644 index 00000000..e56cea7f --- /dev/null +++ b/PlotLine.Tests/GeographyTests.cs @@ -0,0 +1,113 @@ +using PlotLine.Models; +using PlotLine.Services; +using PlotLine.Data; +using System.Text.Json; +using System.Net; +using Microsoft.Extensions.Options; +using Microsoft.AspNetCore.Mvc; +using PlotLine.Controllers; + +internal static class GeographyTests +{ + private static void Check(bool value,string message){if(!value)throw new InvalidOperationException(message);} + public static async Task Run() + { + var rules=new GeographicRules(Path.GetFullPath("PlotLine/Data/Reference/Geography")); + foreach(var name in new[]{"United Kingdom","UK","England","Scotland","Wales","USA","United States","Japan","Brazil","South Africa","Australia","IND","GB-ENG","California, US"}) + Check(rules.Root(name)!=null,"Recognised root: "+name); + foreach(var name in new[]{"Middle-earth","The Shire","California","Georgia","West Midlands"})Check(rules.Root(name)==null,"Unsafe root: "+name); + Check(rules.Root("Northern Ireland")?.SubdivisionCode=="GB-NIR","Northern Ireland is a distinct root."); + LocationItem Place(string name,string type,int? parent=null)=>new(){LocationName=name,LocationTypeName=type,ParentLocationID=parent}; + var chain=new[]{Place("Rubery","Village",2),Place("England","Country")}; + var query=rules.Query(chain)!;Check(query!=null && query.SubdivisionCode=="GB-ENG","Direct hierarchy."); + Check(rules.Query([Place("Rubery","Village",2),Place("Rednal","Town",3),Place("Birmingham","Town",4),Place("West Midlands","Region",5),Place("England","Country",6),Place("UK","Country")])?.Ancestors.Length==5,"Deep hierarchy."); + Check(rules.Query([Place("Hobbiton","Village",2),Place("Middle-earth","Country")])==null,"Fictional root."); + Check(rules.Query([Place("Pub","Building",2),Place("England","Country")])==null,"Premises excluded."); + Check(rules.Query([Place("England","Country",99)])==null,"Missing ancestor fails closed."); + var other=query! with {Ancestors=["Scotland"]};Check(GeographicRules.CacheKey(query!)!=GeographicRules.CacheKey(other),"Names in different regions cannot share a request."); + Check(GeographicRules.CacheKey(query!,"edition1")!=GeographicRules.CacheKey(query!,"edition2"),"Provider/edition isolate caches."); + var candidate=new GeographicCandidate("Fake","os-1","Rubery",52.4,-2,"GB",["England","GB-ENG"],"Synthetic test fixture"); + Check(GeographicRules.Candidates(query!,[candidate,candidate,candidate with{CountryCode="US"},candidate with{Latitude=double.NaN}]).Count==1,"Filter invalid candidates and deduplicate provider identities."); + var queue=new QueueFake(chain);var provider=new ProviderFake([candidate]); + await new GeographicProcessor(queue,rules,provider).ProcessOneAsync(default); + Check(queue.Status=="Needs confirmation"&&provider.Calls==1,"Single provider ranking alone is ambiguous."); + queue.Requeue();await new GeographicProcessor(queue,rules,provider).ProcessOneAsync(default); + Check(provider.Calls==1,"Cached candidate identity avoids another provider request."); + queue.Requeue();queue.Cached=null;provider.Results=[candidate with{UniqueWithinContext=true}]; + await new GeographicProcessor(queue,rules,provider).ProcessOneAsync(default);Check(queue.Status=="Resolved"&&queue.Match!=null,"Deterministic provider uniqueness resolves."); + queue.Requeue();queue.Cached=null;provider.Fail=true; + for(var attempt=0;attempt<4;attempt++){queue.Job.Attempts=attempt;await new GeographicProcessor(queue,rules,provider).ProcessOneAsync(default);} + Check(queue.Status=="Unresolved"&&queue.State=="Done"&&queue.Delay==480,"Retries bounded with exponential backoff."); + provider.Fail=false;queue.Requeue();queue.AllowReservation=false;var calls=provider.Calls; + Check(!await new GeographicProcessor(queue,rules,provider).ProcessOneAsync(default)&&provider.Calls==calls,"Database rate reservation must precede provider calls."); + queue.AllowReservation=true;queue.Requeue();provider.IsEnabled=false; + await new GeographicProcessor(queue,rules,provider).ProcessOneAsync(default);Check(queue.State=="Waiting configuration"&&provider.Calls==calls,"Unconfigured provider never called."); + queue.Requeue();queue.Chain=[Place("Hobbiton","Town",2),Place("Middle-earth","Country")];provider.IsEnabled=true; + await new GeographicProcessor(queue,rules,provider).ProcessOneAsync(default);Check(queue.Status=="Not eligible"&&provider.Calls==calls,"Fictional hierarchy never reaches provider."); + using(var response=JsonDocument.Parse(""" + [{"osm_type":"node","osm_id":123,"name":"Newtown","lat":"52.5","lon":"-3.3","display_name":"Newtown, Powys, Wales, United Kingdom","addresstype":"town","address":{"town":"Newtown","county":"Powys","state":"Wales","ISO3166-2-lvl4":"GB-WLS","country_code":"gb"}}] + """)) + { + var result=NominatimGeocodingProvider.Parse(query! with{Name="Newtown",SubdivisionCode=null,Ancestors=["UK"]},response.RootElement); + Check(result.Count==1&&result[0].PlaceID=="node:123"&&!result[0].UniqueWithinContext,"Nominatim OSM identity, metadata and conservative ambiguity."); + Check(NominatimGeocodingProvider.Parse(query! with{Name="Newtown",SubdivisionCode="GB-WLS",Ancestors=["Wales","Powys"]},response.RootElement).Single().UniqueWithinContext,"Exact place plus matching county/constituent context resolves deterministically."); + Check(NominatimGeocodingProvider.Parse(query!,response.RootElement).Count==0,"Reject results outside explicit subdivision."); + } + var denied=new GeographyController(null!,new DeniedAccess(),null!,null!,null!); + Check(await denied.State(7,null) is NotFoundResult,"Cross-account state rejected before repository."); + Check(await denied.Confirm(7,1,1,0) is NotFoundResult,"Cross-account coordinate confirmation rejected."); + Check(await denied.Retry(7,1,1) is NotFoundResult,"Cross-account retries rejected."); + Check(await denied.Exclude(7,1,1,true) is NotFoundResult,"Cross-account exclusion rejected."); + Check(await denied.Hierarchy(7,1,null!) is NotFoundResult,"Cross-account hierarchy admission rejected."); + Check(typeof(GeographyController).GetMethods().Where(m=>m.IsDefined(typeof(HttpPostAttribute),true)) + .All(m=>m.IsDefined(typeof(ValidateAntiForgeryTokenAttribute),true)),"Every geography mutation requires antiforgery."); + var settings=new MonitorFake();var transport=new HttpFake();var nominatim=new NominatimGeocodingProvider(settings,transport); + Check(!nominatim.Enabled,"No external provider is enabled by default."); + settings.Value=new(){Enabled=true,Provider="Nominatim",WorkerHost=Environment.MachineName,UserAgent="PlotDirector/1.0 (+https://plotdirector.test/)"}; + Check(nominatim.Enabled && nominatim.MinimumInterval.TotalSeconds>=15,"Designated worker and stricter public rate."); + await nominatim.SearchAsync(query!,default); + Check(transport.Calls==1&&transport.LastUri!.Contains("countrycodes=gb")&&transport.LastUri.Contains("Rubery")&&transport.UserAgent!.StartsWith("PlotDirector/"),"Central proxy sends only bounded place/context query and identifying User-Agent."); + settings.Value.Enabled=false;Check(!nominatim.Enabled,"Configuration disables requests without redeployment."); + settings.Value.Enabled=true;settings.Value.WorkerHost="another-host";Check(!nominatim.Enabled,"Other machines cannot send public requests."); + settings.Value.WorkerHost=Environment.MachineName;settings.Value.Provider="Disabled";Check(!nominatim.Enabled,"Provider configuration can switch off Nominatim."); + Console.WriteLine("PASS geography roots, hierarchy, provider-independent fake, cache identities, ambiguity, failures/backoff and rate reservation."); + } + sealed class DeniedAccess:IProjectAccessService + { + public Task CanAccessProjectAsync(int id)=>Task.FromResult(false); + public Task CanOwnProjectAsync(int id)=>Task.FromResult(false); + public Task CanAccessEntityAsync(string type,int id)=>Task.FromResult(false); + } + sealed class MonitorFake:IOptionsMonitor + { + public GeocodingOptions Value=new();public GeocodingOptions CurrentValue=>Value; + public GeocodingOptions Get(string? name)=>Value; + public IDisposable? OnChange(Action listener)=>null; + } + sealed class HttpFake:HttpMessageHandler,IHttpClientFactory + { + public int Calls;public string? LastUri,UserAgent; + public HttpClient CreateClient(string name)=>new(this,false); + protected override Task SendAsync(HttpRequestMessage request,CancellationToken ct) + {Calls++;LastUri=request.RequestUri!.ToString();UserAgent=request.Headers.UserAgent.ToString();return Task.FromResult(new HttpResponseMessage(HttpStatusCode.OK){Content=new StringContent("[]")});} + } + sealed class ProviderFake(IReadOnlyList results):IGeocodingProvider + { + public string Name=>"Fake"; public bool IsEnabled=true;public bool Enabled=>IsEnabled;public TimeSpan MinimumInterval=>TimeSpan.FromSeconds(1); + public IReadOnlyList Results=results;public int Calls;public bool Fail; + public Task> SearchAsync(GeographicQuery q,CancellationToken ct){Calls++;if(Fail)throw new IOException("Synthetic failure");return Task.FromResult(Results);} + } + sealed class QueueFake(IReadOnlyList chain):IGeographicQueue + { + public GeographicJob Job=new(){LocationID=1,Generation=1,Lease=Guid.NewGuid()};public IReadOnlyList Chain=chain; + public string? Status,State,Cached,Match;public int Delay;public bool AllowReservation=true;bool ready=true; + public void Requeue(){ready=true;Job.Lease=Guid.NewGuid();} + public Task ClaimAsync(bool enabled){if(!ready)return Task.FromResult(null);ready=false;return Task.FromResult(Job);} + public Task> ChainAsync(int id)=>Task.FromResult(Chain); + public Task CacheAsync(string key)=>Task.FromResult(Cached); + public Task ReserveAsync(string provider,TimeSpan interval,string key,Guid lease)=>Task.FromResult(AllowReservation); + public Task ReleaseAsync(Guid lease,int cooldownSeconds=0)=>Task.CompletedTask; + public Task CompleteAsync(GeographicJob job,string status,string jobState,string? key=null,string? candidates=null,string? match=null,string? message=null,bool failure=false,int delay=0) + {Status=status;State=jobState;Match=match;Delay=delay;if(candidates!=null)Cached=candidates;ready=jobState=="Queued";return Task.CompletedTask;} + } +} diff --git a/PlotLine.Tests/Program.cs b/PlotLine.Tests/Program.cs index a992680c..111044ef 100644 --- a/PlotLine.Tests/Program.cs +++ b/PlotLine.Tests/Program.cs @@ -15,6 +15,8 @@ using PlotLine.Models; using PlotLine.Services; using PlotLine.ViewModels; +if(args.Contains("--geography-database")){await GeographyDatabaseTests.Run();return;} +if(args.Contains("--geography")){await GeographyTests.Run();return;} if((args.Contains("--chapter-acceptance-dev")||args.Contains("--chapter-reuse-dev")||args.Contains("--chapter-incremental-dev"))){await ChapterAcceptanceDevelopmentTests.Run(args);return;} if(args.Contains("--chapter-sync-dev")){await ChapterSyncDevelopmentTests.Run(args);return;} if(args.Contains("--chapter-sync")){ChapterSynchronisationTests.Run();return;} @@ -151,6 +153,7 @@ if(args.Contains("--native-companion")){await NativeCompanionTests.Run();Console var tests = new (string Name, Action Test)[] { + ("Geographical roots, providers, queue outcomes and access", () => GeographyTests.Run().GetAwaiter().GetResult()), ("Intent evidence preserves provenance and author control", () => IntentAssessmentTests.Run().GetAwaiter().GetResult()), ("Release triage and browser-only onboarding preserve author decisions", ReleaseSprintTests.Run), ("Approved native import source and confirmation remain safe", () => NativeImportTests.Run().GetAwaiter().GetResult()), diff --git a/PlotLine.Tests/Sql/253_LocationGeographyRegression.sql b/PlotLine.Tests/Sql/253_LocationGeographyRegression.sql new file mode 100644 index 00000000..a6f3c93f --- /dev/null +++ b/PlotLine.Tests/Sql/253_LocationGeographyRegression.sql @@ -0,0 +1,96 @@ +-- Development only. All fixtures, cache and queue effects roll back. +SET NOCOUNT ON; SET XACT_ABORT ON; +IF DB_NAME()<>'PlotDirector_Development' THROW 51000,'Development only.',1; +BEGIN TRANSACTION; +BEGIN TRY + DECLARE @User int=(SELECT TOP(1) UserID FROM dbo.AppUser ORDER BY UserID),@Name nvarchar(200)=CONCAT('Geography rollback fixture ',NEWID()); + EXEC dbo.Project_Save @ProjectName=@Name,@UserID=@User; + DECLARE @Project int=(SELECT ProjectID FROM dbo.Projects WHERE ProjectName=@Name); + DECLARE @Country int=(SELECT LocationTypeID FROM dbo.LocationTypes WHERE TypeName='Country'),@Town int=(SELECT LocationTypeID FROM dbo.LocationTypes WHERE TypeName='Town'); + INSERT dbo.Locations(ProjectID,LocationName,LocationTypeID)VALUES(@Project,'England',@Country); + DECLARE @Root int=SCOPE_IDENTITY(); + INSERT dbo.Locations(ProjectID,ParentLocationID,LocationName,LocationTypeID)VALUES(@Project,@Root,'Rubery',@Town); + DECLARE @Child int=SCOPE_IDENTITY(); + INSERT dbo.Locations(ProjectID,LocationName,LocationTypeID)VALUES(@Project,'Scotland',@Country); + DECLARE @Sibling int=SCOPE_IDENTITY(); + IF EXISTS(SELECT 1 FROM dbo.LocationGeography WHERE LocationID=@Child AND JobState='Queued') THROW 51000,'Creation triggered geocoding',1; + IF (SELECT COUNT(*) FROM dbo.LocationGeography WHERE LocationID=@Child)<>1 THROW 51000,'Durable deduplication failed',1; + DECLARE @Generation bigint=(SELECT Generation FROM dbo.LocationGeography WHERE LocationID=@Child); + UPDATE dbo.Locations SET Description='Private story text never sent to gazetteer' WHERE LocationID=@Root; + IF (SELECT Generation FROM dbo.LocationGeography WHERE LocationID=@Child)<>@Generation THROW 51000,'Unrelated change invalidated geography',1; + UPDATE dbo.Locations SET LocationName='Wales' WHERE LocationID=@Root; + IF (SELECT Generation FROM dbo.LocationGeography WHERE LocationID=@Child)<>@Generation+1 THROW 51000,'Ancestor rename did not invalidate descendant',1; + IF (SELECT Generation FROM dbo.LocationGeography WHERE LocationID=@Sibling)<>1 THROW 51000,'Sibling invalidated unnecessarily',1; + UPDATE dbo.Locations SET ParentLocationID=@Sibling WHERE LocationID=@Child; + IF (SELECT Generation FROM dbo.LocationGeography WHERE LocationID=@Child)<>@Generation+2 THROW 51000,'Reparent did not invalidate',1; + UPDATE dbo.LocationGeography SET JobState='Done'; -- Rollback-only isolation from pre-existing jobs. + UPDATE dbo.LocationGeography SET JobState='Queued' WHERE LocationID=@Child; + DECLARE @Jobs table(LocationID int,Generation bigint,Attempts int,Lease uniqueidentifier); + INSERT @Jobs EXEC dbo.Geography_Claim @Enabled=1; + IF (SELECT COUNT(*) FROM @Jobs)<>1 THROW 51000,'Claim failed',1; + DECLARE @Lease uniqueidentifier=(SELECT Lease FROM @Jobs),@Current bigint=(SELECT Generation FROM @Jobs); + DELETE @Jobs; + INSERT @Jobs EXEC dbo.Geography_Claim @Enabled=1; + IF EXISTS(SELECT 1 FROM @Jobs) THROW 51000,'Duplicate job claimed',1; + UPDATE dbo.LocationGeography SET LeaseUntil=DATEADD(minute,-1,SYSUTCDATETIME()) WHERE LocationID=@Child; + INSERT @Jobs EXEC dbo.Geography_Claim @Enabled=1; + IF (SELECT Lease FROM @Jobs)=@Lease THROW 51000,'Restart recovery did not replace lease',1; + DECLARE @Candidates nvarchar(max)=N'[{"Provider":"Fake","PlaceID":"fake-1","Name":"Rubery","Latitude":52.39,"Longitude":-2.01,"CountryCode":"GB","AdministrativeNames":["England"],"Attribution":"Synthetic regression fixture","UniqueWithinContext":false}]'; + EXEC dbo.Geography_Complete @LocationID=@Child,@Generation=@Current,@Lease=@Lease,@Status='Resolved',@JobState='Done',@MatchJson=@Candidates; + IF (SELECT Status FROM dbo.LocationGeography WHERE LocationID=@Child)<>'Pending' THROW 51000,'Expired lease overwrote state',1; + SET @Lease=(SELECT Lease FROM @Jobs); + DECLARE @Key char(64)=REPLICATE('f',64); + EXEC dbo.Geography_Complete @LocationID=@Child,@Generation=@Current,@Lease=@Lease,@Status='Needs confirmation',@JobState='Done',@CandidatesJson=@Candidates,@RequestKey=@Key; + IF NOT EXISTS(SELECT 1 FROM dbo.GeographicCache WHERE RequestKey=@Key AND CandidatesJson=@Candidates) THROW 51000,'Cache did not persist public provider identities',1; + DECLARE @Denied bit=0; + BEGIN TRY + EXEC dbo.Geography_Choose @ProjectID=@Project,@UserID=-2147483647,@LocationID=@Child,@Generation=@Current,@CandidateIndex=0; + END TRY BEGIN CATCH + IF ERROR_NUMBER()=51000 SET @Denied=1; ELSE THROW; + END CATCH; + -- Permission errors can doom an XACT_ABORT transaction; test successful workflow in a fresh rollback below. + IF @Denied=0 THROW 51000,'Cross-account confirmation accepted',1; + IF XACT_STATE()=-1 BEGIN ROLLBACK; SELECT 'PASS trigger invalidation, durable claim/deduplication, restart leases, stale rejection, public cache and cross-account confirmation rejection'; RETURN; END; + ROLLBACK; +END TRY +BEGIN CATCH + IF XACT_STATE()<>0 ROLLBACK; + THROW; +END CATCH; +GO +SET NOCOUNT ON; SET XACT_ABORT ON; +BEGIN TRANSACTION; +BEGIN TRY + DECLARE @User int=(SELECT TOP(1) UserID FROM dbo.AppUser ORDER BY UserID),@Name nvarchar(200)=CONCAT('Geography confirmation fixture ',NEWID()); + EXEC dbo.Project_Save @ProjectName=@Name,@UserID=@User; + DECLARE @Project int=(SELECT ProjectID FROM dbo.Projects WHERE ProjectName=@Name); + INSERT dbo.Locations(ProjectID,LocationName)VALUES(@Project,'Fixture'); + DECLARE @Location int=SCOPE_IDENTITY(),@Candidates nvarchar(max)=N'[{"Provider":"Fake","PlaceID":"fake-1","Name":"Rubery","Latitude":52.39,"Longitude":-2.01,"CountryCode":"GB","AdministrativeNames":["England"],"Attribution":"Synthetic regression fixture"}]'; + UPDATE dbo.LocationGeography SET Status='Needs confirmation',JobState='Done',CandidatesJson=@Candidates WHERE LocationID=@Location; + EXEC dbo.Geography_Choose @ProjectID=@Project,@UserID=@User,@LocationID=@Location,@Generation=1,@CandidateIndex=0; + IF NOT EXISTS(SELECT 1 FROM dbo.LocationGeography WHERE LocationID=@Location AND Confirmed=1 AND Status='Resolved' AND JSON_VALUE(MatchJson,'$.PlaceID')='fake-1') THROW 51000,'Confirmation failed',1; + UPDATE dbo.Locations SET Description='Preserve author choice' WHERE LocationID=@Location; + IF NOT EXISTS(SELECT 1 FROM dbo.LocationGeography WHERE LocationID=@Location AND Confirmed=1) THROW 51000,'Confirmation lost on unrelated edit',1; + EXEC dbo.Geography_Exclude @ProjectID=@Project,@UserID=@User,@LocationID=@Location,@Generation=1,@IsExcluded=1; + UPDATE dbo.Locations SET LocationName='Renamed excluded fixture' WHERE LocationID=@Location; + IF NOT EXISTS(SELECT 1 FROM dbo.LocationGeography WHERE LocationID=@Location AND IsExcluded=1 AND JobState='Done' AND Status='Not eligible') THROW 51000,'Excluded location requeued',1; + DECLARE @Generation bigint=(SELECT Generation FROM dbo.LocationGeography WHERE LocationID=@Location); + EXEC dbo.Geography_Exclude @ProjectID=@Project,@UserID=@User,@LocationID=@Location,@Generation=@Generation,@IsExcluded=0; + IF NOT EXISTS(SELECT 1 FROM dbo.LocationGeography WHERE LocationID=@Location AND JobState='Awaiting hierarchy request' AND Confirmed=0 AND MatchJson IS NULL) THROW 51000,'Reinclusion failed',1; + DECLARE @Gate table(Allowed bit); + DECLARE @Lease uniqueidentifier=NEWID(),@Key char(64)=REPLICATE('e',64); + INSERT @Gate EXEC dbo.Geography_Reserve @Provider='FakeRegression',@IntervalMs=1000,@RequestKey=@Key,@Lease=@Lease; + IF (SELECT Allowed FROM @Gate)<>1 THROW 51000,'First rate reservation failed',1; + DELETE @Gate; + INSERT @Gate EXEC dbo.Geography_Reserve @Provider='FakeRegression',@IntervalMs=1000,@RequestKey=@Key,@Lease=@Lease; + IF (SELECT Allowed FROM @Gate)<>0 THROW 51000,'Repeated rate reservation accepted',1; + ROLLBACK; + SELECT 'PASS author confirmation/preservation, exclusion/reinclusion, provider reservation and duplicate lookup lease'; +END TRY +BEGIN CATCH + IF XACT_STATE()<>0 ROLLBACK; + THROW; +END CATCH; +GO +SELECT DB_NAME() VerifiedDatabase; +SELECT COUNT(*) GeographyProcedureCount FROM sys.procedures WHERE name LIKE 'Geography[_]%'; diff --git a/PlotLine.Tests/Sql/254_GeographyHierarchyBatchesRegression.sql b/PlotLine.Tests/Sql/254_GeographyHierarchyBatchesRegression.sql new file mode 100644 index 00000000..a34f561c --- /dev/null +++ b/PlotLine.Tests/Sql/254_GeographyHierarchyBatchesRegression.sql @@ -0,0 +1,31 @@ +SET NOCOUNT ON; SET XACT_ABORT ON; +IF DB_NAME()<>'PlotDirector_Development' THROW 51000,'Development only.',1; +BEGIN TRANSACTION; +BEGIN TRY + DECLARE @User int=(SELECT TOP(1) UserID FROM dbo.AppUser ORDER BY UserID),@Name nvarchar(200)=CONCAT('Hierarchy event fixture ',NEWID()); + EXEC dbo.Project_Save @ProjectName=@Name,@UserID=@User; + DECLARE @Project int=(SELECT ProjectID FROM dbo.Projects WHERE ProjectName=@Name); + INSERT dbo.Locations(ProjectID,LocationName)VALUES(@Project,'United Kingdom'); + DECLARE @Root int=SCOPE_IDENTITY(); + INSERT dbo.Locations(ProjectID,ParentLocationID,LocationName)VALUES(@Project,@Root,'Birmingham'); + DECLARE @Child int=SCOPE_IDENTITY(); + IF EXISTS(SELECT 1 FROM dbo.LocationGeography WHERE LocationID IN(@Root,@Child) AND JobState<>'Awaiting hierarchy request') THROW 51000,'Creation enqueued lookup',1; + UPDATE dbo.Locations SET LocationName='England' WHERE LocationID=@Root; + IF EXISTS(SELECT 1 FROM dbo.LocationGeography WHERE LocationID=@Child AND JobState<>'Awaiting hierarchy request') THROW 51000,'Rename enqueued lookup',1; + DECLARE @Generation bigint=(SELECT Generation FROM dbo.LocationGeography WHERE LocationID=@Root); + EXEC dbo.Geography_SubmitHierarchy @ProjectID=@Project,@UserID=@User,@LocationID=@Root,@Generation=@Generation; + IF (SELECT COUNT(*) FROM dbo.LocationGeography WHERE LocationID IN(@Root,@Child) AND JobState='Queued')<>2 THROW 51000,'Explicit hierarchy request did not queue finite scope',1; + IF (SELECT COUNT(*) FROM dbo.GeographicAuthorBatch WHERE UserID=@User)<>1 THROW 51000,'Batch admission missing',1; + DECLARE @Denied bit=0; + BEGIN TRY + EXEC dbo.Geography_SubmitHierarchy @ProjectID=@Project,@UserID=@User,@LocationID=@Root,@Generation=@Generation; + END TRY BEGIN CATCH + IF ERROR_NUMBER()=51000 SET @Denied=1; ELSE THROW; + END CATCH; + IF @Denied=0 THROW 51000,'Author batch quota bypassed',1; + IF XACT_STATE()<>0 ROLLBACK; + SELECT 'PASS creation and rename do not geocode; explicit hierarchy event queues finite branch; repeat author batches rejected'; +END TRY BEGIN CATCH + IF XACT_STATE()<>0 ROLLBACK; + THROW; +END CATCH; diff --git a/PlotLine.Tests/ToolbarBrowserHost.cs b/PlotLine.Tests/ToolbarBrowserHost.cs index aa5a71d0..09d4d199 100644 --- a/PlotLine.Tests/ToolbarBrowserHost.cs +++ b/PlotLine.Tests/ToolbarBrowserHost.cs @@ -543,7 +543,7 @@ internal static class ToolbarBrowserHost Project = model.Project!, Maps = [map], Document = new MapDocument { Map = map }, Locations = [new LocationItem { LocationID = 11, ProjectID = 7, LocationName = "Harbour town" }, new LocationItem { LocationID = 12, ProjectID = 7, LocationName = "Hill village" }] }); - surface += ""; + surface += ""; } if (context.Request.Query["page"] == "floorplans") { diff --git a/PlotLine/Controllers/GeographyController.cs b/PlotLine/Controllers/GeographyController.cs new file mode 100644 index 00000000..fc68b0f1 --- /dev/null +++ b/PlotLine/Controllers/GeographyController.cs @@ -0,0 +1,70 @@ +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Mvc; +using Microsoft.Data.SqlClient; +using PlotLine.Data; +using PlotLine.Services; +namespace PlotLine.Controllers; + +[Authorize] +public sealed class GeographyController(GeographyRepository repository,IProjectAccessService access,ICurrentUserService currentUser,GeographicRules rules,ILocationRepository locations) : Controller +{ + [HttpGet] + public async Task State(int projectId,int? locationId) + { + if(!await access.CanAccessProjectAsync(projectId)) return NotFound(); + Response.Headers.CacheControl="private, no-store"; + var states=await repository.GetAsync(projectId,currentUser.UserId!.Value,locationId); + if(states.Any(s=>s.Status=="Pending")) + { + var projectLocations=(await locations.ListByProjectAsync(projectId)).ToDictionary(l=>l.LocationID); + foreach(var state in states.Where(s=>s.Status=="Pending")) + { + var chain=new List(); + var visited=new HashSet();var id=state.LocationID; + while(projectLocations.TryGetValue(id,out var place)&&visited.Add(id)&&chain.Count<=100) + { + chain.Add(place); + if(place.ParentLocationID is not int parent)break; + id=parent; + } + if(rules.Query(chain) is null) + { + state.Status="Not eligible"; + state.Message="Use geographical types beneath a recognised country or qualified region."; + } + } + } + return Json(states); + } + [HttpPost,ValidateAntiForgeryToken] + public async Task Confirm(int projectId,int locationId,long generation,int candidateIndex) + { + if(!await access.CanAccessProjectAsync(projectId)) return NotFound(); + if(!ModelState.IsValid || candidateIndex is <0 or >9) return BadRequest(); + try { await repository.ChooseAsync(projectId,currentUser.UserId!.Value,locationId,generation,candidateIndex); return Json(new {ok=true}); } + catch(SqlException ex) when(ex.Number==51000) { return Conflict(new {message=ex.Message}); } + } + [HttpPost,ValidateAntiForgeryToken] + public async Task Retry(int projectId,int locationId,long generation,bool replaceConfirmed=false) + { + if(!await access.CanAccessProjectAsync(projectId)) return NotFound(); + if(!ModelState.IsValid) return BadRequest(); + try { await repository.RetryAsync(projectId,currentUser.UserId!.Value,locationId,generation,replaceConfirmed); return Json(new {ok=true}); } + catch(SqlException ex) when(ex.Number==51000) { return Conflict(new {message=ex.Message}); } + } + [HttpPost,ValidateAntiForgeryToken] + public async Task Exclude(int projectId,int locationId,long generation,bool isExcluded) + { + if(!await access.CanAccessProjectAsync(projectId)) return NotFound(); + if(!ModelState.IsValid) return BadRequest(); + try { await repository.ExcludeAsync(projectId,currentUser.UserId!.Value,locationId,generation,isExcluded); return Json(new {ok=true}); } + catch(SqlException ex) when(ex.Number==51000) { return Conflict(new {message=ex.Message}); } + } + [HttpPost,ValidateAntiForgeryToken] + public async Task Hierarchy(int projectId,int locationId,[FromServices] GeographicHierarchyService hierarchy) + { + if(!await access.CanAccessProjectAsync(projectId)) return NotFound(); + if(!ModelState.IsValid) return BadRequest(); + return Json(new {message=await hierarchy.SubmitAsync(projectId,locationId)}); + } +} diff --git a/PlotLine/Controllers/LocationsController.cs b/PlotLine/Controllers/LocationsController.cs index e7afd2d8..a16094fb 100644 --- a/PlotLine/Controllers/LocationsController.cs +++ b/PlotLine/Controllers/LocationsController.cs @@ -6,7 +6,7 @@ using PlotLine.ViewModels; namespace PlotLine.Controllers; [Authorize] -public sealed class LocationsController(ILocationService locations) : Controller +public sealed class LocationsController(ILocationService locations, GeographicHierarchyService geography) : Controller { public async Task Index(int projectId) { @@ -75,6 +75,7 @@ public sealed class LocationsController(ILocationService locations) : Controller try { await locations.ReparentAsync(projectId, locationId, parentLocationId, expectedParentLocationId); + TempData["GeographyMessage"] = await geography.SubmitAsync(projectId, locationId); if (IsAjaxRequest()) { var model = await locations.GetLocationsAsync(projectId); @@ -115,7 +116,10 @@ public sealed class LocationsController(ILocationService locations) : Controller return View("Edit", editModel); } + var before = model.LocationID > 0 ? await locations.GetEditAsync(model.LocationID) : null; var locationId = await locations.SaveAsync(model); + if (before is not null && before.ParentLocationID != model.ParentLocationID) + TempData["LocationMessage"] = await geography.SubmitAsync(model.ProjectID, locationId); return RedirectToAction(nameof(Details), new { id = locationId }); } diff --git a/PlotLine/Data/GeographyRepository.cs b/PlotLine/Data/GeographyRepository.cs new file mode 100644 index 00000000..a712a5f8 --- /dev/null +++ b/PlotLine/Data/GeographyRepository.cs @@ -0,0 +1,73 @@ +using System.Data; +using Dapper; +using PlotLine.Models; +namespace PlotLine.Data; + +public interface IGeographicQueue +{ + Task ClaimAsync(bool enabled); + Task> ChainAsync(int locationId); + Task CacheAsync(string requestKey); + Task ReserveAsync(string provider,TimeSpan interval,string requestKey,Guid lease); + Task ReleaseAsync(Guid lease,int cooldownSeconds=0); + Task CompleteAsync(GeographicJob job,string status,string jobState,string? key=null,string? candidates=null,string? match=null,string? message=null,bool failure=false,int delay=0); +} + +public sealed class GeographyRepository(ISqlConnectionFactory connections) : IGeographicQueue +{ + public async Task> GetAsync(int projectId, int userId, int? locationId = null) + { + using var db = connections.CreateConnection(); + return (await db.QueryAsync("dbo.Geography_Get", new { ProjectID=projectId, UserID=userId, LocationID=locationId }, commandType:CommandType.StoredProcedure)).ToList(); + } + public async Task ClaimAsync(bool enabled) + { + using var db=connections.CreateConnection(); + return await db.QuerySingleOrDefaultAsync("dbo.Geography_Claim",new { Enabled=enabled },commandType:CommandType.StoredProcedure); + } + public async Task> ChainAsync(int locationId) + { + using var db=connections.CreateConnection(); + return (await db.QueryAsync("dbo.Geography_Chain",new {LocationID=locationId},commandType:CommandType.StoredProcedure)).ToList(); + } + public async Task CacheAsync(string requestKey) + { + using var db=connections.CreateConnection(); + return await db.QuerySingleOrDefaultAsync("dbo.Geography_Cache",new {RequestKey=requestKey},commandType:CommandType.StoredProcedure); + } + public async Task ReserveAsync(string provider,TimeSpan interval,string requestKey,Guid lease) + { + using var db=connections.CreateConnection(); + return await db.QuerySingleAsync("dbo.Geography_Reserve",new {Provider=provider,RequestKey=requestKey,Lease=lease,IntervalMs=(int)Math.Clamp(interval.TotalMilliseconds,0,86400000)},commandType:CommandType.StoredProcedure); + } + public async Task CompleteAsync(GeographicJob job,string status,string jobState,string? key=null,string? candidates=null,string? match=null,string? message=null,bool failure=false,int delay=0) + { + using var db=connections.CreateConnection(); + await db.ExecuteAsync("dbo.Geography_Complete",new {job.LocationID,job.Generation,job.Lease,Status=status,JobState=jobState,RequestKey=key,CandidatesJson=candidates,MatchJson=match,Message=message,Failure=failure,DelaySeconds=delay},commandType:CommandType.StoredProcedure); + } + public async Task ChooseAsync(int projectId,int userId,int locationId,long generation,int candidateIndex) + { + using var db=connections.CreateConnection(); + await db.ExecuteAsync("dbo.Geography_Choose",new {ProjectID=projectId,UserID=userId,LocationID=locationId,Generation=generation,CandidateIndex=candidateIndex},commandType:CommandType.StoredProcedure); + } + public async Task RetryAsync(int projectId,int userId,int locationId,long generation,bool replaceConfirmed=false) + { + using var db=connections.CreateConnection(); + await db.ExecuteAsync("dbo.Geography_Retry",new {ProjectID=projectId,UserID=userId,LocationID=locationId,Generation=generation,ReplaceConfirmed=replaceConfirmed},commandType:CommandType.StoredProcedure); + } + public async Task ExcludeAsync(int projectId,int userId,int locationId,long generation,bool isExcluded) + { + using var db=connections.CreateConnection(); + await db.ExecuteAsync("dbo.Geography_Exclude",new {ProjectID=projectId,UserID=userId,LocationID=locationId,Generation=generation,IsExcluded=isExcluded},commandType:CommandType.StoredProcedure); + } + public async Task SubmitAsync(int projectId,int userId,int locationId,long generation) + { + using var db=connections.CreateConnection(); + await db.ExecuteAsync("dbo.Geography_SubmitHierarchy",new {ProjectID=projectId,UserID=userId,LocationID=locationId,Generation=generation},commandType:CommandType.StoredProcedure); + } + public async Task ReleaseAsync(Guid lease,int cooldownSeconds=0) + { + using var db=connections.CreateConnection(); + await db.ExecuteAsync("dbo.Geography_ProviderRelease",new {Lease=lease,CooldownSeconds=cooldownSeconds},commandType:CommandType.StoredProcedure); + } +} diff --git a/PlotLine/Data/Reference/Geography/COPYRIGHT.txt b/PlotLine/Data/Reference/Geography/COPYRIGHT.txt new file mode 100644 index 00000000..08a8c040 --- /dev/null +++ b/PlotLine/Data/Reference/Geography/COPYRIGHT.txt @@ -0,0 +1,34 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: iso-codes +Upstream-Contact: Dr. Tobias Quathamer +Source: https://salsa.debian.org/iso-codes-team/iso-codes + +Files: * +Copyright: © 2001-2008 Alastair McKinstry + © 2004-2016 Christian Perrier + © 2005-2026 Dr. Tobias Quathamer +License: LGPL-2.1+ + This package is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + . + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, see . + . + On Debian systems, the full text of the GNU Lesser General + Public License version 2.1 can be found in the file + `/usr/share/common-licenses/LGPL-2.1'. + +Files: scripts/remove-potcdate.sin +Copyright: © 2002 Free Software Foundation, Inc. +License: FSFAP + Copying and distribution of this file, with or without modification, + are permitted in any medium without royalty provided the copyright + notice and this notice are preserved. This file is offered as-is, + without any warranty. diff --git a/PlotLine/Data/Reference/Geography/LICENSE.txt b/PlotLine/Data/Reference/Geography/LICENSE.txt new file mode 100644 index 00000000..f6683e74 --- /dev/null +++ b/PlotLine/Data/Reference/Geography/LICENSE.txt @@ -0,0 +1,501 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms of the +ordinary General Public License). + + To apply these terms, attach the following notices to the library. It is +safest to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least the +"copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, see . + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James Random Hacker. + + , 1 April 1990 + Moe Ghoul, President of Vice + +That's all there is to it! diff --git a/PlotLine/Data/Reference/Geography/README.md b/PlotLine/Data/Reference/Geography/README.md new file mode 100644 index 00000000..4e68e70f --- /dev/null +++ b/PlotLine/Data/Reference/Geography/README.md @@ -0,0 +1,7 @@ +# ISO geographical roots + +These are eligibility reference names/codes only, not a coordinate gazetteer. +Snapshots copied from Debian's `/usr/share/iso-codes/json/iso_3166-1.json` and `iso_3166-2.json` on 13 November 2026. +Upstream: https://salsa.debian.org/iso-codes-team/iso-codes +See COPYRIGHT.txt for authorship and licensing. Preserve it on redistribution. +To update, replace the two reference JSON files from a reviewed upstream release and run `--geography` and the ordinary regression harness. diff --git a/PlotLine/Data/Reference/Geography/countries.json b/PlotLine/Data/Reference/Geography/countries.json new file mode 100644 index 00000000..ee48a43e --- /dev/null +++ b/PlotLine/Data/Reference/Geography/countries.json @@ -0,0 +1,1931 @@ +{ + "3166-1": [ + { + "alpha_2": "AW", + "alpha_3": "ABW", + "flag": "🇦🇼", + "name": "Aruba", + "numeric": "533" + }, + { + "alpha_2": "AF", + "alpha_3": "AFG", + "flag": "🇦🇫", + "name": "Afghanistan", + "numeric": "004", + "official_name": "Islamic Republic of Afghanistan" + }, + { + "alpha_2": "AO", + "alpha_3": "AGO", + "flag": "🇦🇴", + "name": "Angola", + "numeric": "024", + "official_name": "Republic of Angola" + }, + { + "alpha_2": "AI", + "alpha_3": "AIA", + "flag": "🇦🇮", + "name": "Anguilla", + "numeric": "660" + }, + { + "alpha_2": "AX", + "alpha_3": "ALA", + "flag": "🇦🇽", + "name": "Åland Islands", + "numeric": "248" + }, + { + "alpha_2": "AL", + "alpha_3": "ALB", + "flag": "🇦🇱", + "name": "Albania", + "numeric": "008", + "official_name": "Republic of Albania" + }, + { + "alpha_2": "AD", + "alpha_3": "AND", + "flag": "🇦🇩", + "name": "Andorra", + "numeric": "020", + "official_name": "Principality of Andorra" + }, + { + "alpha_2": "AE", + "alpha_3": "ARE", + "flag": "🇦🇪", + "name": "United Arab Emirates", + "numeric": "784" + }, + { + "alpha_2": "AR", + "alpha_3": "ARG", + "flag": "🇦🇷", + "name": "Argentina", + "numeric": "032", + "official_name": "Argentine Republic" + }, + { + "alpha_2": "AM", + "alpha_3": "ARM", + "flag": "🇦🇲", + "name": "Armenia", + "numeric": "051", + "official_name": "Republic of Armenia" + }, + { + "alpha_2": "AS", + "alpha_3": "ASM", + "flag": "🇦🇸", + "name": "American Samoa", + "numeric": "016" + }, + { + "alpha_2": "AQ", + "alpha_3": "ATA", + "flag": "🇦🇶", + "name": "Antarctica", + "numeric": "010" + }, + { + "alpha_2": "TF", + "alpha_3": "ATF", + "flag": "🇹🇫", + "name": "French Southern Territories", + "numeric": "260" + }, + { + "alpha_2": "AG", + "alpha_3": "ATG", + "flag": "🇦🇬", + "name": "Antigua and Barbuda", + "numeric": "028" + }, + { + "alpha_2": "AU", + "alpha_3": "AUS", + "flag": "🇦🇺", + "name": "Australia", + "numeric": "036" + }, + { + "alpha_2": "AT", + "alpha_3": "AUT", + "flag": "🇦🇹", + "name": "Austria", + "numeric": "040", + "official_name": "Republic of Austria" + }, + { + "alpha_2": "AZ", + "alpha_3": "AZE", + "flag": "🇦🇿", + "name": "Azerbaijan", + "numeric": "031", + "official_name": "Republic of Azerbaijan" + }, + { + "alpha_2": "BI", + "alpha_3": "BDI", + "flag": "🇧🇮", + "name": "Burundi", + "numeric": "108", + "official_name": "Republic of Burundi" + }, + { + "alpha_2": "BE", + "alpha_3": "BEL", + "flag": "🇧🇪", + "name": "Belgium", + "numeric": "056", + "official_name": "Kingdom of Belgium" + }, + { + "alpha_2": "BJ", + "alpha_3": "BEN", + "flag": "🇧🇯", + "name": "Benin", + "numeric": "204", + "official_name": "Republic of Benin" + }, + { + "alpha_2": "BQ", + "alpha_3": "BES", + "flag": "🇧🇶", + "name": "Bonaire, Sint Eustatius and Saba", + "numeric": "535", + "official_name": "Bonaire, Sint Eustatius and Saba" + }, + { + "alpha_2": "BF", + "alpha_3": "BFA", + "flag": "🇧🇫", + "name": "Burkina Faso", + "numeric": "854" + }, + { + "alpha_2": "BD", + "alpha_3": "BGD", + "flag": "🇧🇩", + "name": "Bangladesh", + "numeric": "050", + "official_name": "People's Republic of Bangladesh" + }, + { + "alpha_2": "BG", + "alpha_3": "BGR", + "flag": "🇧🇬", + "name": "Bulgaria", + "numeric": "100", + "official_name": "Republic of Bulgaria" + }, + { + "alpha_2": "BH", + "alpha_3": "BHR", + "flag": "🇧🇭", + "name": "Bahrain", + "numeric": "048", + "official_name": "Kingdom of Bahrain" + }, + { + "alpha_2": "BS", + "alpha_3": "BHS", + "flag": "🇧🇸", + "name": "Bahamas", + "numeric": "044", + "official_name": "Commonwealth of the Bahamas" + }, + { + "alpha_2": "BA", + "alpha_3": "BIH", + "flag": "🇧🇦", + "name": "Bosnia and Herzegovina", + "numeric": "070", + "official_name": "Republic of Bosnia and Herzegovina" + }, + { + "alpha_2": "BL", + "alpha_3": "BLM", + "flag": "🇧🇱", + "name": "Saint Barthélemy", + "numeric": "652" + }, + { + "alpha_2": "BY", + "alpha_3": "BLR", + "flag": "🇧🇾", + "name": "Belarus", + "numeric": "112", + "official_name": "Republic of Belarus" + }, + { + "alpha_2": "BZ", + "alpha_3": "BLZ", + "flag": "🇧🇿", + "name": "Belize", + "numeric": "084" + }, + { + "alpha_2": "BM", + "alpha_3": "BMU", + "flag": "🇧🇲", + "name": "Bermuda", + "numeric": "060" + }, + { + "alpha_2": "BO", + "alpha_3": "BOL", + "common_name": "Bolivia", + "flag": "🇧🇴", + "name": "Bolivia, Plurinational State of", + "numeric": "068", + "official_name": "Plurinational State of Bolivia" + }, + { + "alpha_2": "BR", + "alpha_3": "BRA", + "flag": "🇧🇷", + "name": "Brazil", + "numeric": "076", + "official_name": "Federative Republic of Brazil" + }, + { + "alpha_2": "BB", + "alpha_3": "BRB", + "flag": "🇧🇧", + "name": "Barbados", + "numeric": "052" + }, + { + "alpha_2": "BN", + "alpha_3": "BRN", + "flag": "🇧🇳", + "name": "Brunei Darussalam", + "numeric": "096" + }, + { + "alpha_2": "BT", + "alpha_3": "BTN", + "flag": "🇧🇹", + "name": "Bhutan", + "numeric": "064", + "official_name": "Kingdom of Bhutan" + }, + { + "alpha_2": "BV", + "alpha_3": "BVT", + "flag": "🇧🇻", + "name": "Bouvet Island", + "numeric": "074" + }, + { + "alpha_2": "BW", + "alpha_3": "BWA", + "flag": "🇧🇼", + "name": "Botswana", + "numeric": "072", + "official_name": "Republic of Botswana" + }, + { + "alpha_2": "CF", + "alpha_3": "CAF", + "flag": "🇨🇫", + "name": "Central African Republic", + "numeric": "140" + }, + { + "alpha_2": "CA", + "alpha_3": "CAN", + "flag": "🇨🇦", + "name": "Canada", + "numeric": "124" + }, + { + "alpha_2": "CC", + "alpha_3": "CCK", + "flag": "🇨🇨", + "name": "Cocos (Keeling) Islands", + "numeric": "166" + }, + { + "alpha_2": "CH", + "alpha_3": "CHE", + "flag": "🇨🇭", + "name": "Switzerland", + "numeric": "756", + "official_name": "Swiss Confederation" + }, + { + "alpha_2": "CL", + "alpha_3": "CHL", + "flag": "🇨🇱", + "name": "Chile", + "numeric": "152", + "official_name": "Republic of Chile" + }, + { + "alpha_2": "CN", + "alpha_3": "CHN", + "flag": "🇨🇳", + "name": "China", + "numeric": "156", + "official_name": "People's Republic of China" + }, + { + "alpha_2": "CI", + "alpha_3": "CIV", + "flag": "🇨🇮", + "name": "Côte d'Ivoire", + "numeric": "384", + "official_name": "Republic of Côte d'Ivoire" + }, + { + "alpha_2": "CM", + "alpha_3": "CMR", + "flag": "🇨🇲", + "name": "Cameroon", + "numeric": "120", + "official_name": "Republic of Cameroon" + }, + { + "alpha_2": "CD", + "alpha_3": "COD", + "flag": "🇨🇩", + "name": "Congo, The Democratic Republic of the", + "numeric": "180" + }, + { + "alpha_2": "CG", + "alpha_3": "COG", + "flag": "🇨🇬", + "name": "Congo", + "numeric": "178", + "official_name": "Republic of the Congo" + }, + { + "alpha_2": "CK", + "alpha_3": "COK", + "flag": "🇨🇰", + "name": "Cook Islands", + "numeric": "184" + }, + { + "alpha_2": "CO", + "alpha_3": "COL", + "flag": "🇨🇴", + "name": "Colombia", + "numeric": "170", + "official_name": "Republic of Colombia" + }, + { + "alpha_2": "KM", + "alpha_3": "COM", + "flag": "🇰🇲", + "name": "Comoros", + "numeric": "174", + "official_name": "Union of the Comoros" + }, + { + "alpha_2": "CV", + "alpha_3": "CPV", + "flag": "🇨🇻", + "name": "Cabo Verde", + "numeric": "132", + "official_name": "Republic of Cabo Verde" + }, + { + "alpha_2": "CR", + "alpha_3": "CRI", + "flag": "🇨🇷", + "name": "Costa Rica", + "numeric": "188", + "official_name": "Republic of Costa Rica" + }, + { + "alpha_2": "CU", + "alpha_3": "CUB", + "flag": "🇨🇺", + "name": "Cuba", + "numeric": "192", + "official_name": "Republic of Cuba" + }, + { + "alpha_2": "CW", + "alpha_3": "CUW", + "flag": "🇨🇼", + "name": "Curaçao", + "numeric": "531", + "official_name": "Curaçao" + }, + { + "alpha_2": "CX", + "alpha_3": "CXR", + "flag": "🇨🇽", + "name": "Christmas Island", + "numeric": "162" + }, + { + "alpha_2": "KY", + "alpha_3": "CYM", + "flag": "🇰🇾", + "name": "Cayman Islands", + "numeric": "136" + }, + { + "alpha_2": "CY", + "alpha_3": "CYP", + "flag": "🇨🇾", + "name": "Cyprus", + "numeric": "196", + "official_name": "Republic of Cyprus" + }, + { + "alpha_2": "CZ", + "alpha_3": "CZE", + "flag": "🇨🇿", + "name": "Czechia", + "numeric": "203", + "official_name": "Czech Republic" + }, + { + "alpha_2": "DE", + "alpha_3": "DEU", + "flag": "🇩🇪", + "name": "Germany", + "numeric": "276", + "official_name": "Federal Republic of Germany" + }, + { + "alpha_2": "DJ", + "alpha_3": "DJI", + "flag": "🇩🇯", + "name": "Djibouti", + "numeric": "262", + "official_name": "Republic of Djibouti" + }, + { + "alpha_2": "DM", + "alpha_3": "DMA", + "flag": "🇩🇲", + "name": "Dominica", + "numeric": "212", + "official_name": "Commonwealth of Dominica" + }, + { + "alpha_2": "DK", + "alpha_3": "DNK", + "flag": "🇩🇰", + "name": "Denmark", + "numeric": "208", + "official_name": "Kingdom of Denmark" + }, + { + "alpha_2": "DO", + "alpha_3": "DOM", + "flag": "🇩🇴", + "name": "Dominican Republic", + "numeric": "214" + }, + { + "alpha_2": "DZ", + "alpha_3": "DZA", + "flag": "🇩🇿", + "name": "Algeria", + "numeric": "012", + "official_name": "People's Democratic Republic of Algeria" + }, + { + "alpha_2": "EC", + "alpha_3": "ECU", + "flag": "🇪🇨", + "name": "Ecuador", + "numeric": "218", + "official_name": "Republic of Ecuador" + }, + { + "alpha_2": "EG", + "alpha_3": "EGY", + "flag": "🇪🇬", + "name": "Egypt", + "numeric": "818", + "official_name": "Arab Republic of Egypt" + }, + { + "alpha_2": "ER", + "alpha_3": "ERI", + "flag": "🇪🇷", + "name": "Eritrea", + "numeric": "232", + "official_name": "the State of Eritrea" + }, + { + "alpha_2": "EH", + "alpha_3": "ESH", + "flag": "🇪🇭", + "name": "Western Sahara", + "numeric": "732" + }, + { + "alpha_2": "ES", + "alpha_3": "ESP", + "flag": "🇪🇸", + "name": "Spain", + "numeric": "724", + "official_name": "Kingdom of Spain" + }, + { + "alpha_2": "EE", + "alpha_3": "EST", + "flag": "🇪🇪", + "name": "Estonia", + "numeric": "233", + "official_name": "Republic of Estonia" + }, + { + "alpha_2": "ET", + "alpha_3": "ETH", + "flag": "🇪🇹", + "name": "Ethiopia", + "numeric": "231", + "official_name": "Federal Democratic Republic of Ethiopia" + }, + { + "alpha_2": "FI", + "alpha_3": "FIN", + "flag": "🇫🇮", + "name": "Finland", + "numeric": "246", + "official_name": "Republic of Finland" + }, + { + "alpha_2": "FJ", + "alpha_3": "FJI", + "flag": "🇫🇯", + "name": "Fiji", + "numeric": "242", + "official_name": "Republic of Fiji" + }, + { + "alpha_2": "FK", + "alpha_3": "FLK", + "flag": "🇫🇰", + "name": "Falkland Islands (Malvinas)", + "numeric": "238" + }, + { + "alpha_2": "FR", + "alpha_3": "FRA", + "flag": "🇫🇷", + "name": "France", + "numeric": "250", + "official_name": "French Republic" + }, + { + "alpha_2": "FO", + "alpha_3": "FRO", + "flag": "🇫🇴", + "name": "Faroe Islands", + "numeric": "234" + }, + { + "alpha_2": "FM", + "alpha_3": "FSM", + "flag": "🇫🇲", + "name": "Micronesia, Federated States of", + "numeric": "583", + "official_name": "Federated States of Micronesia" + }, + { + "alpha_2": "GA", + "alpha_3": "GAB", + "flag": "🇬🇦", + "name": "Gabon", + "numeric": "266", + "official_name": "Gabonese Republic" + }, + { + "alpha_2": "GB", + "alpha_3": "GBR", + "flag": "🇬🇧", + "name": "United Kingdom", + "numeric": "826", + "official_name": "United Kingdom of Great Britain and Northern Ireland" + }, + { + "alpha_2": "GE", + "alpha_3": "GEO", + "flag": "🇬🇪", + "name": "Georgia", + "numeric": "268" + }, + { + "alpha_2": "GG", + "alpha_3": "GGY", + "flag": "🇬🇬", + "name": "Guernsey", + "numeric": "831" + }, + { + "alpha_2": "GH", + "alpha_3": "GHA", + "flag": "🇬🇭", + "name": "Ghana", + "numeric": "288", + "official_name": "Republic of Ghana" + }, + { + "alpha_2": "GI", + "alpha_3": "GIB", + "flag": "🇬🇮", + "name": "Gibraltar", + "numeric": "292" + }, + { + "alpha_2": "GN", + "alpha_3": "GIN", + "flag": "🇬🇳", + "name": "Guinea", + "numeric": "324", + "official_name": "Republic of Guinea" + }, + { + "alpha_2": "GP", + "alpha_3": "GLP", + "flag": "🇬🇵", + "name": "Guadeloupe", + "numeric": "312" + }, + { + "alpha_2": "GM", + "alpha_3": "GMB", + "flag": "🇬🇲", + "name": "Gambia", + "numeric": "270", + "official_name": "Republic of the Gambia" + }, + { + "alpha_2": "GW", + "alpha_3": "GNB", + "flag": "🇬🇼", + "name": "Guinea-Bissau", + "numeric": "624", + "official_name": "Republic of Guinea-Bissau" + }, + { + "alpha_2": "GQ", + "alpha_3": "GNQ", + "flag": "🇬🇶", + "name": "Equatorial Guinea", + "numeric": "226", + "official_name": "Republic of Equatorial Guinea" + }, + { + "alpha_2": "GR", + "alpha_3": "GRC", + "flag": "🇬🇷", + "name": "Greece", + "numeric": "300", + "official_name": "Hellenic Republic" + }, + { + "alpha_2": "GD", + "alpha_3": "GRD", + "flag": "🇬🇩", + "name": "Grenada", + "numeric": "308" + }, + { + "alpha_2": "GL", + "alpha_3": "GRL", + "flag": "🇬🇱", + "name": "Greenland", + "numeric": "304" + }, + { + "alpha_2": "GT", + "alpha_3": "GTM", + "flag": "🇬🇹", + "name": "Guatemala", + "numeric": "320", + "official_name": "Republic of Guatemala" + }, + { + "alpha_2": "GF", + "alpha_3": "GUF", + "flag": "🇬🇫", + "name": "French Guiana", + "numeric": "254" + }, + { + "alpha_2": "GU", + "alpha_3": "GUM", + "flag": "🇬🇺", + "name": "Guam", + "numeric": "316" + }, + { + "alpha_2": "GY", + "alpha_3": "GUY", + "flag": "🇬🇾", + "name": "Guyana", + "numeric": "328", + "official_name": "Republic of Guyana" + }, + { + "alpha_2": "HK", + "alpha_3": "HKG", + "flag": "🇭🇰", + "name": "Hong Kong", + "numeric": "344", + "official_name": "Hong Kong Special Administrative Region of China" + }, + { + "alpha_2": "HM", + "alpha_3": "HMD", + "flag": "🇭🇲", + "name": "Heard Island and McDonald Islands", + "numeric": "334" + }, + { + "alpha_2": "HN", + "alpha_3": "HND", + "flag": "🇭🇳", + "name": "Honduras", + "numeric": "340", + "official_name": "Republic of Honduras" + }, + { + "alpha_2": "HR", + "alpha_3": "HRV", + "flag": "🇭🇷", + "name": "Croatia", + "numeric": "191", + "official_name": "Republic of Croatia" + }, + { + "alpha_2": "HT", + "alpha_3": "HTI", + "flag": "🇭🇹", + "name": "Haiti", + "numeric": "332", + "official_name": "Republic of Haiti" + }, + { + "alpha_2": "HU", + "alpha_3": "HUN", + "flag": "🇭🇺", + "name": "Hungary", + "numeric": "348", + "official_name": "Hungary" + }, + { + "alpha_2": "ID", + "alpha_3": "IDN", + "flag": "🇮🇩", + "name": "Indonesia", + "numeric": "360", + "official_name": "Republic of Indonesia" + }, + { + "alpha_2": "IM", + "alpha_3": "IMN", + "flag": "🇮🇲", + "name": "Isle of Man", + "numeric": "833" + }, + { + "alpha_2": "IN", + "alpha_3": "IND", + "flag": "🇮🇳", + "name": "India", + "numeric": "356", + "official_name": "Republic of India" + }, + { + "alpha_2": "IO", + "alpha_3": "IOT", + "flag": "🇮🇴", + "name": "British Indian Ocean Territory", + "numeric": "086" + }, + { + "alpha_2": "IE", + "alpha_3": "IRL", + "flag": "🇮🇪", + "name": "Ireland", + "numeric": "372" + }, + { + "alpha_2": "IR", + "alpha_3": "IRN", + "common_name": "Iran", + "flag": "🇮🇷", + "name": "Iran, Islamic Republic of", + "numeric": "364", + "official_name": "Islamic Republic of Iran" + }, + { + "alpha_2": "IQ", + "alpha_3": "IRQ", + "flag": "🇮🇶", + "name": "Iraq", + "numeric": "368", + "official_name": "Republic of Iraq" + }, + { + "alpha_2": "IS", + "alpha_3": "ISL", + "flag": "🇮🇸", + "name": "Iceland", + "numeric": "352", + "official_name": "Republic of Iceland" + }, + { + "alpha_2": "IL", + "alpha_3": "ISR", + "flag": "🇮🇱", + "name": "Israel", + "numeric": "376", + "official_name": "State of Israel" + }, + { + "alpha_2": "IT", + "alpha_3": "ITA", + "flag": "🇮🇹", + "name": "Italy", + "numeric": "380", + "official_name": "Italian Republic" + }, + { + "alpha_2": "JM", + "alpha_3": "JAM", + "flag": "🇯🇲", + "name": "Jamaica", + "numeric": "388" + }, + { + "alpha_2": "JE", + "alpha_3": "JEY", + "flag": "🇯🇪", + "name": "Jersey", + "numeric": "832" + }, + { + "alpha_2": "JO", + "alpha_3": "JOR", + "flag": "🇯🇴", + "name": "Jordan", + "numeric": "400", + "official_name": "Hashemite Kingdom of Jordan" + }, + { + "alpha_2": "JP", + "alpha_3": "JPN", + "flag": "🇯🇵", + "name": "Japan", + "numeric": "392" + }, + { + "alpha_2": "KZ", + "alpha_3": "KAZ", + "flag": "🇰🇿", + "name": "Kazakhstan", + "numeric": "398", + "official_name": "Republic of Kazakhstan" + }, + { + "alpha_2": "KE", + "alpha_3": "KEN", + "flag": "🇰🇪", + "name": "Kenya", + "numeric": "404", + "official_name": "Republic of Kenya" + }, + { + "alpha_2": "KG", + "alpha_3": "KGZ", + "flag": "🇰🇬", + "name": "Kyrgyzstan", + "numeric": "417", + "official_name": "Kyrgyz Republic" + }, + { + "alpha_2": "KH", + "alpha_3": "KHM", + "flag": "🇰🇭", + "name": "Cambodia", + "numeric": "116", + "official_name": "Kingdom of Cambodia" + }, + { + "alpha_2": "KI", + "alpha_3": "KIR", + "flag": "🇰🇮", + "name": "Kiribati", + "numeric": "296", + "official_name": "Republic of Kiribati" + }, + { + "alpha_2": "KN", + "alpha_3": "KNA", + "flag": "🇰🇳", + "name": "Saint Kitts and Nevis", + "numeric": "659" + }, + { + "alpha_2": "KR", + "alpha_3": "KOR", + "common_name": "South Korea", + "flag": "🇰🇷", + "name": "Korea, Republic of", + "numeric": "410" + }, + { + "alpha_2": "KW", + "alpha_3": "KWT", + "flag": "🇰🇼", + "name": "Kuwait", + "numeric": "414", + "official_name": "State of Kuwait" + }, + { + "alpha_2": "LA", + "alpha_3": "LAO", + "common_name": "Laos", + "flag": "🇱🇦", + "name": "Lao People's Democratic Republic", + "numeric": "418" + }, + { + "alpha_2": "LB", + "alpha_3": "LBN", + "flag": "🇱🇧", + "name": "Lebanon", + "numeric": "422", + "official_name": "Lebanese Republic" + }, + { + "alpha_2": "LR", + "alpha_3": "LBR", + "flag": "🇱🇷", + "name": "Liberia", + "numeric": "430", + "official_name": "Republic of Liberia" + }, + { + "alpha_2": "LY", + "alpha_3": "LBY", + "flag": "🇱🇾", + "name": "Libya", + "numeric": "434", + "official_name": "Libya" + }, + { + "alpha_2": "LC", + "alpha_3": "LCA", + "flag": "🇱🇨", + "name": "Saint Lucia", + "numeric": "662" + }, + { + "alpha_2": "LI", + "alpha_3": "LIE", + "flag": "🇱🇮", + "name": "Liechtenstein", + "numeric": "438", + "official_name": "Principality of Liechtenstein" + }, + { + "alpha_2": "LK", + "alpha_3": "LKA", + "flag": "🇱🇰", + "name": "Sri Lanka", + "numeric": "144", + "official_name": "Democratic Socialist Republic of Sri Lanka" + }, + { + "alpha_2": "LS", + "alpha_3": "LSO", + "flag": "🇱🇸", + "name": "Lesotho", + "numeric": "426", + "official_name": "Kingdom of Lesotho" + }, + { + "alpha_2": "LT", + "alpha_3": "LTU", + "flag": "🇱🇹", + "name": "Lithuania", + "numeric": "440", + "official_name": "Republic of Lithuania" + }, + { + "alpha_2": "LU", + "alpha_3": "LUX", + "flag": "🇱🇺", + "name": "Luxembourg", + "numeric": "442", + "official_name": "Grand Duchy of Luxembourg" + }, + { + "alpha_2": "LV", + "alpha_3": "LVA", + "flag": "🇱🇻", + "name": "Latvia", + "numeric": "428", + "official_name": "Republic of Latvia" + }, + { + "alpha_2": "MO", + "alpha_3": "MAC", + "flag": "🇲🇴", + "name": "Macao", + "numeric": "446", + "official_name": "Macao Special Administrative Region of China" + }, + { + "alpha_2": "MF", + "alpha_3": "MAF", + "flag": "🇲🇫", + "name": "Saint Martin (French part)", + "numeric": "663" + }, + { + "alpha_2": "MA", + "alpha_3": "MAR", + "flag": "🇲🇦", + "name": "Morocco", + "numeric": "504", + "official_name": "Kingdom of Morocco" + }, + { + "alpha_2": "MC", + "alpha_3": "MCO", + "flag": "🇲🇨", + "name": "Monaco", + "numeric": "492", + "official_name": "Principality of Monaco" + }, + { + "alpha_2": "MD", + "alpha_3": "MDA", + "common_name": "Moldova", + "flag": "🇲🇩", + "name": "Moldova, Republic of", + "numeric": "498", + "official_name": "Republic of Moldova" + }, + { + "alpha_2": "MG", + "alpha_3": "MDG", + "flag": "🇲🇬", + "name": "Madagascar", + "numeric": "450", + "official_name": "Republic of Madagascar" + }, + { + "alpha_2": "MV", + "alpha_3": "MDV", + "flag": "🇲🇻", + "name": "Maldives", + "numeric": "462", + "official_name": "Republic of Maldives" + }, + { + "alpha_2": "MX", + "alpha_3": "MEX", + "flag": "🇲🇽", + "name": "Mexico", + "numeric": "484", + "official_name": "United Mexican States" + }, + { + "alpha_2": "MH", + "alpha_3": "MHL", + "flag": "🇲🇭", + "name": "Marshall Islands", + "numeric": "584", + "official_name": "Republic of the Marshall Islands" + }, + { + "alpha_2": "MK", + "alpha_3": "MKD", + "flag": "🇲🇰", + "name": "North Macedonia", + "numeric": "807", + "official_name": "Republic of North Macedonia" + }, + { + "alpha_2": "ML", + "alpha_3": "MLI", + "flag": "🇲🇱", + "name": "Mali", + "numeric": "466", + "official_name": "Republic of Mali" + }, + { + "alpha_2": "MT", + "alpha_3": "MLT", + "flag": "🇲🇹", + "name": "Malta", + "numeric": "470", + "official_name": "Republic of Malta" + }, + { + "alpha_2": "MM", + "alpha_3": "MMR", + "flag": "🇲🇲", + "name": "Myanmar", + "numeric": "104", + "official_name": "Republic of Myanmar" + }, + { + "alpha_2": "ME", + "alpha_3": "MNE", + "flag": "🇲🇪", + "name": "Montenegro", + "numeric": "499", + "official_name": "Montenegro" + }, + { + "alpha_2": "MN", + "alpha_3": "MNG", + "flag": "🇲🇳", + "name": "Mongolia", + "numeric": "496" + }, + { + "alpha_2": "MP", + "alpha_3": "MNP", + "flag": "🇲🇵", + "name": "Northern Mariana Islands", + "numeric": "580", + "official_name": "Commonwealth of the Northern Mariana Islands" + }, + { + "alpha_2": "MZ", + "alpha_3": "MOZ", + "flag": "🇲🇿", + "name": "Mozambique", + "numeric": "508", + "official_name": "Republic of Mozambique" + }, + { + "alpha_2": "MR", + "alpha_3": "MRT", + "flag": "🇲🇷", + "name": "Mauritania", + "numeric": "478", + "official_name": "Islamic Republic of Mauritania" + }, + { + "alpha_2": "MS", + "alpha_3": "MSR", + "flag": "🇲🇸", + "name": "Montserrat", + "numeric": "500" + }, + { + "alpha_2": "MQ", + "alpha_3": "MTQ", + "flag": "🇲🇶", + "name": "Martinique", + "numeric": "474" + }, + { + "alpha_2": "MU", + "alpha_3": "MUS", + "flag": "🇲🇺", + "name": "Mauritius", + "numeric": "480", + "official_name": "Republic of Mauritius" + }, + { + "alpha_2": "MW", + "alpha_3": "MWI", + "flag": "🇲🇼", + "name": "Malawi", + "numeric": "454", + "official_name": "Republic of Malawi" + }, + { + "alpha_2": "MY", + "alpha_3": "MYS", + "flag": "🇲🇾", + "name": "Malaysia", + "numeric": "458" + }, + { + "alpha_2": "YT", + "alpha_3": "MYT", + "flag": "🇾🇹", + "name": "Mayotte", + "numeric": "175" + }, + { + "alpha_2": "NA", + "alpha_3": "NAM", + "flag": "🇳🇦", + "name": "Namibia", + "numeric": "516", + "official_name": "Republic of Namibia" + }, + { + "alpha_2": "NC", + "alpha_3": "NCL", + "flag": "🇳🇨", + "name": "New Caledonia", + "numeric": "540" + }, + { + "alpha_2": "NE", + "alpha_3": "NER", + "flag": "🇳🇪", + "name": "Niger", + "numeric": "562", + "official_name": "Republic of the Niger" + }, + { + "alpha_2": "NF", + "alpha_3": "NFK", + "flag": "🇳🇫", + "name": "Norfolk Island", + "numeric": "574" + }, + { + "alpha_2": "NG", + "alpha_3": "NGA", + "flag": "🇳🇬", + "name": "Nigeria", + "numeric": "566", + "official_name": "Federal Republic of Nigeria" + }, + { + "alpha_2": "NI", + "alpha_3": "NIC", + "flag": "🇳🇮", + "name": "Nicaragua", + "numeric": "558", + "official_name": "Republic of Nicaragua" + }, + { + "alpha_2": "NU", + "alpha_3": "NIU", + "flag": "🇳🇺", + "name": "Niue", + "numeric": "570", + "official_name": "Niue" + }, + { + "alpha_2": "NL", + "alpha_3": "NLD", + "flag": "🇳🇱", + "name": "Netherlands", + "numeric": "528", + "official_name": "Kingdom of the Netherlands" + }, + { + "alpha_2": "NO", + "alpha_3": "NOR", + "flag": "🇳🇴", + "name": "Norway", + "numeric": "578", + "official_name": "Kingdom of Norway" + }, + { + "alpha_2": "NP", + "alpha_3": "NPL", + "flag": "🇳🇵", + "name": "Nepal", + "numeric": "524", + "official_name": "Federal Democratic Republic of Nepal" + }, + { + "alpha_2": "NR", + "alpha_3": "NRU", + "flag": "🇳🇷", + "name": "Nauru", + "numeric": "520", + "official_name": "Republic of Nauru" + }, + { + "alpha_2": "NZ", + "alpha_3": "NZL", + "flag": "🇳🇿", + "name": "New Zealand", + "numeric": "554" + }, + { + "alpha_2": "OM", + "alpha_3": "OMN", + "flag": "🇴🇲", + "name": "Oman", + "numeric": "512", + "official_name": "Sultanate of Oman" + }, + { + "alpha_2": "PK", + "alpha_3": "PAK", + "flag": "🇵🇰", + "name": "Pakistan", + "numeric": "586", + "official_name": "Islamic Republic of Pakistan" + }, + { + "alpha_2": "PA", + "alpha_3": "PAN", + "flag": "🇵🇦", + "name": "Panama", + "numeric": "591", + "official_name": "Republic of Panama" + }, + { + "alpha_2": "PN", + "alpha_3": "PCN", + "flag": "🇵🇳", + "name": "Pitcairn", + "numeric": "612" + }, + { + "alpha_2": "PE", + "alpha_3": "PER", + "flag": "🇵🇪", + "name": "Peru", + "numeric": "604", + "official_name": "Republic of Peru" + }, + { + "alpha_2": "PH", + "alpha_3": "PHL", + "flag": "🇵🇭", + "name": "Philippines", + "numeric": "608", + "official_name": "Republic of the Philippines" + }, + { + "alpha_2": "PW", + "alpha_3": "PLW", + "flag": "🇵🇼", + "name": "Palau", + "numeric": "585", + "official_name": "Republic of Palau" + }, + { + "alpha_2": "PG", + "alpha_3": "PNG", + "flag": "🇵🇬", + "name": "Papua New Guinea", + "numeric": "598", + "official_name": "Independent State of Papua New Guinea" + }, + { + "alpha_2": "PL", + "alpha_3": "POL", + "flag": "🇵🇱", + "name": "Poland", + "numeric": "616", + "official_name": "Republic of Poland" + }, + { + "alpha_2": "PR", + "alpha_3": "PRI", + "flag": "🇵🇷", + "name": "Puerto Rico", + "numeric": "630" + }, + { + "alpha_2": "KP", + "alpha_3": "PRK", + "common_name": "North Korea", + "flag": "🇰🇵", + "name": "Korea, Democratic People's Republic of", + "numeric": "408", + "official_name": "Democratic People's Republic of Korea" + }, + { + "alpha_2": "PT", + "alpha_3": "PRT", + "flag": "🇵🇹", + "name": "Portugal", + "numeric": "620", + "official_name": "Portuguese Republic" + }, + { + "alpha_2": "PY", + "alpha_3": "PRY", + "flag": "🇵🇾", + "name": "Paraguay", + "numeric": "600", + "official_name": "Republic of Paraguay" + }, + { + "alpha_2": "PS", + "alpha_3": "PSE", + "flag": "🇵🇸", + "name": "Palestine, State of", + "numeric": "275", + "official_name": "the State of Palestine" + }, + { + "alpha_2": "PF", + "alpha_3": "PYF", + "flag": "🇵🇫", + "name": "French Polynesia", + "numeric": "258" + }, + { + "alpha_2": "QA", + "alpha_3": "QAT", + "flag": "🇶🇦", + "name": "Qatar", + "numeric": "634", + "official_name": "State of Qatar" + }, + { + "alpha_2": "RE", + "alpha_3": "REU", + "flag": "🇷🇪", + "name": "Réunion", + "numeric": "638" + }, + { + "alpha_2": "RO", + "alpha_3": "ROU", + "flag": "🇷🇴", + "name": "Romania", + "numeric": "642" + }, + { + "alpha_2": "RU", + "alpha_3": "RUS", + "flag": "🇷🇺", + "name": "Russian Federation", + "numeric": "643" + }, + { + "alpha_2": "RW", + "alpha_3": "RWA", + "flag": "🇷🇼", + "name": "Rwanda", + "numeric": "646", + "official_name": "Rwandese Republic" + }, + { + "alpha_2": "SA", + "alpha_3": "SAU", + "flag": "🇸🇦", + "name": "Saudi Arabia", + "numeric": "682", + "official_name": "Kingdom of Saudi Arabia" + }, + { + "alpha_2": "SD", + "alpha_3": "SDN", + "flag": "🇸🇩", + "name": "Sudan", + "numeric": "729", + "official_name": "Republic of the Sudan" + }, + { + "alpha_2": "SN", + "alpha_3": "SEN", + "flag": "🇸🇳", + "name": "Senegal", + "numeric": "686", + "official_name": "Republic of Senegal" + }, + { + "alpha_2": "SG", + "alpha_3": "SGP", + "flag": "🇸🇬", + "name": "Singapore", + "numeric": "702", + "official_name": "Republic of Singapore" + }, + { + "alpha_2": "GS", + "alpha_3": "SGS", + "flag": "🇬🇸", + "name": "South Georgia and the South Sandwich Islands", + "numeric": "239" + }, + { + "alpha_2": "SH", + "alpha_3": "SHN", + "flag": "🇸🇭", + "name": "Saint Helena, Ascension and Tristan da Cunha", + "numeric": "654" + }, + { + "alpha_2": "SJ", + "alpha_3": "SJM", + "flag": "🇸🇯", + "name": "Svalbard and Jan Mayen", + "numeric": "744" + }, + { + "alpha_2": "SB", + "alpha_3": "SLB", + "flag": "🇸🇧", + "name": "Solomon Islands", + "numeric": "090" + }, + { + "alpha_2": "SL", + "alpha_3": "SLE", + "flag": "🇸🇱", + "name": "Sierra Leone", + "numeric": "694", + "official_name": "Republic of Sierra Leone" + }, + { + "alpha_2": "SV", + "alpha_3": "SLV", + "flag": "🇸🇻", + "name": "El Salvador", + "numeric": "222", + "official_name": "Republic of El Salvador" + }, + { + "alpha_2": "SM", + "alpha_3": "SMR", + "flag": "🇸🇲", + "name": "San Marino", + "numeric": "674", + "official_name": "Republic of San Marino" + }, + { + "alpha_2": "SO", + "alpha_3": "SOM", + "flag": "🇸🇴", + "name": "Somalia", + "numeric": "706", + "official_name": "Federal Republic of Somalia" + }, + { + "alpha_2": "PM", + "alpha_3": "SPM", + "flag": "🇵🇲", + "name": "Saint Pierre and Miquelon", + "numeric": "666" + }, + { + "alpha_2": "RS", + "alpha_3": "SRB", + "flag": "🇷🇸", + "name": "Serbia", + "numeric": "688", + "official_name": "Republic of Serbia" + }, + { + "alpha_2": "SS", + "alpha_3": "SSD", + "flag": "🇸🇸", + "name": "South Sudan", + "numeric": "728", + "official_name": "Republic of South Sudan" + }, + { + "alpha_2": "ST", + "alpha_3": "STP", + "flag": "🇸🇹", + "name": "Sao Tome and Principe", + "numeric": "678", + "official_name": "Democratic Republic of Sao Tome and Principe" + }, + { + "alpha_2": "SR", + "alpha_3": "SUR", + "flag": "🇸🇷", + "name": "Suriname", + "numeric": "740", + "official_name": "Republic of Suriname" + }, + { + "alpha_2": "SK", + "alpha_3": "SVK", + "flag": "🇸🇰", + "name": "Slovakia", + "numeric": "703", + "official_name": "Slovak Republic" + }, + { + "alpha_2": "SI", + "alpha_3": "SVN", + "flag": "🇸🇮", + "name": "Slovenia", + "numeric": "705", + "official_name": "Republic of Slovenia" + }, + { + "alpha_2": "SE", + "alpha_3": "SWE", + "flag": "🇸🇪", + "name": "Sweden", + "numeric": "752", + "official_name": "Kingdom of Sweden" + }, + { + "alpha_2": "SZ", + "alpha_3": "SWZ", + "flag": "🇸🇿", + "name": "Eswatini", + "numeric": "748", + "official_name": "Kingdom of Eswatini" + }, + { + "alpha_2": "SX", + "alpha_3": "SXM", + "flag": "🇸🇽", + "name": "Sint Maarten (Dutch part)", + "numeric": "534", + "official_name": "Sint Maarten (Dutch part)" + }, + { + "alpha_2": "SC", + "alpha_3": "SYC", + "flag": "🇸🇨", + "name": "Seychelles", + "numeric": "690", + "official_name": "Republic of Seychelles" + }, + { + "alpha_2": "SY", + "alpha_3": "SYR", + "common_name": "Syria", + "flag": "🇸🇾", + "name": "Syrian Arab Republic", + "numeric": "760" + }, + { + "alpha_2": "TC", + "alpha_3": "TCA", + "flag": "🇹🇨", + "name": "Turks and Caicos Islands", + "numeric": "796" + }, + { + "alpha_2": "TD", + "alpha_3": "TCD", + "flag": "🇹🇩", + "name": "Chad", + "numeric": "148", + "official_name": "Republic of Chad" + }, + { + "alpha_2": "TG", + "alpha_3": "TGO", + "flag": "🇹🇬", + "name": "Togo", + "numeric": "768", + "official_name": "Togolese Republic" + }, + { + "alpha_2": "TH", + "alpha_3": "THA", + "flag": "🇹🇭", + "name": "Thailand", + "numeric": "764", + "official_name": "Kingdom of Thailand" + }, + { + "alpha_2": "TJ", + "alpha_3": "TJK", + "flag": "🇹🇯", + "name": "Tajikistan", + "numeric": "762", + "official_name": "Republic of Tajikistan" + }, + { + "alpha_2": "TK", + "alpha_3": "TKL", + "flag": "🇹🇰", + "name": "Tokelau", + "numeric": "772" + }, + { + "alpha_2": "TM", + "alpha_3": "TKM", + "flag": "🇹🇲", + "name": "Turkmenistan", + "numeric": "795" + }, + { + "alpha_2": "TL", + "alpha_3": "TLS", + "flag": "🇹🇱", + "name": "Timor-Leste", + "numeric": "626", + "official_name": "Democratic Republic of Timor-Leste" + }, + { + "alpha_2": "TO", + "alpha_3": "TON", + "flag": "🇹🇴", + "name": "Tonga", + "numeric": "776", + "official_name": "Kingdom of Tonga" + }, + { + "alpha_2": "TT", + "alpha_3": "TTO", + "flag": "🇹🇹", + "name": "Trinidad and Tobago", + "numeric": "780", + "official_name": "Republic of Trinidad and Tobago" + }, + { + "alpha_2": "TN", + "alpha_3": "TUN", + "flag": "🇹🇳", + "name": "Tunisia", + "numeric": "788", + "official_name": "Republic of Tunisia" + }, + { + "alpha_2": "TR", + "alpha_3": "TUR", + "flag": "🇹🇷", + "name": "Türkiye", + "numeric": "792", + "official_name": "Republic of Türkiye" + }, + { + "alpha_2": "TV", + "alpha_3": "TUV", + "flag": "🇹🇻", + "name": "Tuvalu", + "numeric": "798" + }, + { + "alpha_2": "TW", + "alpha_3": "TWN", + "common_name": "Taiwan", + "flag": "🇹🇼", + "name": "Taiwan, Province of China", + "numeric": "158", + "official_name": "Taiwan, Province of China" + }, + { + "alpha_2": "TZ", + "alpha_3": "TZA", + "common_name": "Tanzania", + "flag": "🇹🇿", + "name": "Tanzania, United Republic of", + "numeric": "834", + "official_name": "United Republic of Tanzania" + }, + { + "alpha_2": "UG", + "alpha_3": "UGA", + "flag": "🇺🇬", + "name": "Uganda", + "numeric": "800", + "official_name": "Republic of Uganda" + }, + { + "alpha_2": "UA", + "alpha_3": "UKR", + "flag": "🇺🇦", + "name": "Ukraine", + "numeric": "804" + }, + { + "alpha_2": "UM", + "alpha_3": "UMI", + "flag": "🇺🇲", + "name": "United States Minor Outlying Islands", + "numeric": "581" + }, + { + "alpha_2": "UY", + "alpha_3": "URY", + "flag": "🇺🇾", + "name": "Uruguay", + "numeric": "858", + "official_name": "Eastern Republic of Uruguay" + }, + { + "alpha_2": "US", + "alpha_3": "USA", + "flag": "🇺🇸", + "name": "United States", + "numeric": "840", + "official_name": "United States of America" + }, + { + "alpha_2": "UZ", + "alpha_3": "UZB", + "flag": "🇺🇿", + "name": "Uzbekistan", + "numeric": "860", + "official_name": "Republic of Uzbekistan" + }, + { + "alpha_2": "VA", + "alpha_3": "VAT", + "flag": "🇻🇦", + "name": "Holy See (Vatican City State)", + "numeric": "336" + }, + { + "alpha_2": "VC", + "alpha_3": "VCT", + "flag": "🇻🇨", + "name": "Saint Vincent and the Grenadines", + "numeric": "670" + }, + { + "alpha_2": "VE", + "alpha_3": "VEN", + "common_name": "Venezuela", + "flag": "🇻🇪", + "name": "Venezuela, Bolivarian Republic of", + "numeric": "862", + "official_name": "Bolivarian Republic of Venezuela" + }, + { + "alpha_2": "VG", + "alpha_3": "VGB", + "flag": "🇻🇬", + "name": "Virgin Islands, British", + "numeric": "092", + "official_name": "British Virgin Islands" + }, + { + "alpha_2": "VI", + "alpha_3": "VIR", + "flag": "🇻🇮", + "name": "Virgin Islands, U.S.", + "numeric": "850", + "official_name": "Virgin Islands of the United States" + }, + { + "alpha_2": "VN", + "alpha_3": "VNM", + "common_name": "Vietnam", + "flag": "🇻🇳", + "name": "Viet Nam", + "numeric": "704", + "official_name": "Socialist Republic of Viet Nam" + }, + { + "alpha_2": "VU", + "alpha_3": "VUT", + "flag": "🇻🇺", + "name": "Vanuatu", + "numeric": "548", + "official_name": "Republic of Vanuatu" + }, + { + "alpha_2": "WF", + "alpha_3": "WLF", + "flag": "🇼🇫", + "name": "Wallis and Futuna", + "numeric": "876" + }, + { + "alpha_2": "WS", + "alpha_3": "WSM", + "flag": "🇼🇸", + "name": "Samoa", + "numeric": "882", + "official_name": "Independent State of Samoa" + }, + { + "alpha_2": "YE", + "alpha_3": "YEM", + "flag": "🇾🇪", + "name": "Yemen", + "numeric": "887", + "official_name": "Republic of Yemen" + }, + { + "alpha_2": "ZA", + "alpha_3": "ZAF", + "flag": "🇿🇦", + "name": "South Africa", + "numeric": "710", + "official_name": "Republic of South Africa" + }, + { + "alpha_2": "ZM", + "alpha_3": "ZMB", + "flag": "🇿🇲", + "name": "Zambia", + "numeric": "894", + "official_name": "Republic of Zambia" + }, + { + "alpha_2": "ZW", + "alpha_3": "ZWE", + "flag": "🇿🇼", + "name": "Zimbabwe", + "numeric": "716", + "official_name": "Republic of Zimbabwe" + } + ] +} diff --git a/PlotLine/Data/Reference/Geography/subdivisions.json b/PlotLine/Data/Reference/Geography/subdivisions.json new file mode 100644 index 00000000..788bc88f --- /dev/null +++ b/PlotLine/Data/Reference/Geography/subdivisions.json @@ -0,0 +1,26690 @@ +{ + "3166-2": [ + { + "code": "AD-02", + "name": "Canillo", + "type": "Parish" + }, + { + "code": "AD-03", + "name": "Encamp", + "type": "Parish" + }, + { + "code": "AD-04", + "name": "La Massana", + "type": "Parish" + }, + { + "code": "AD-05", + "name": "Ordino", + "type": "Parish" + }, + { + "code": "AD-06", + "name": "Sant Julià de Lòria", + "type": "Parish" + }, + { + "code": "AD-07", + "name": "Andorra la Vella", + "type": "Parish" + }, + { + "code": "AD-08", + "name": "Escaldes-Engordany", + "type": "Parish" + }, + { + "code": "AE-AJ", + "name": "‘Ajmān", + "type": "Emirate" + }, + { + "code": "AE-AZ", + "name": "Abū Z̧aby", + "type": "Emirate" + }, + { + "code": "AE-DU", + "name": "Dubayy", + "type": "Emirate" + }, + { + "code": "AE-FU", + "name": "Al Fujayrah", + "type": "Emirate" + }, + { + "code": "AE-RK", + "name": "Ra’s al Khaymah", + "type": "Emirate" + }, + { + "code": "AE-SH", + "name": "Ash Shāriqah", + "type": "Emirate" + }, + { + "code": "AE-UQ", + "name": "Umm al Qaywayn", + "type": "Emirate" + }, + { + "code": "AF-BAL", + "name": "Balkh", + "type": "Province" + }, + { + "code": "AF-BAM", + "name": "Bāmyān", + "type": "Province" + }, + { + "code": "AF-BDG", + "name": "Bādghīs", + "type": "Province" + }, + { + "code": "AF-BDS", + "name": "Badakhshān", + "type": "Province" + }, + { + "code": "AF-BGL", + "name": "Baghlān", + "type": "Province" + }, + { + "code": "AF-DAY", + "name": "Dāykundī", + "type": "Province" + }, + { + "code": "AF-FRA", + "name": "Farāh", + "type": "Province" + }, + { + "code": "AF-FYB", + "name": "Fāryāb", + "type": "Province" + }, + { + "code": "AF-GHA", + "name": "Ghaznī", + "type": "Province" + }, + { + "code": "AF-GHO", + "name": "Ghōr", + "type": "Province" + }, + { + "code": "AF-HEL", + "name": "Helmand", + "type": "Province" + }, + { + "code": "AF-HER", + "name": "Herāt", + "type": "Province" + }, + { + "code": "AF-JOW", + "name": "Jowzjān", + "type": "Province" + }, + { + "code": "AF-KAB", + "name": "Kābul", + "type": "Province" + }, + { + "code": "AF-KAN", + "name": "Kandahār", + "type": "Province" + }, + { + "code": "AF-KAP", + "name": "Kāpīsā", + "type": "Province" + }, + { + "code": "AF-KDZ", + "name": "Kunduz", + "type": "Province" + }, + { + "code": "AF-KHO", + "name": "Khōst", + "type": "Province" + }, + { + "code": "AF-KNR", + "name": "Kunaṟ", + "type": "Province" + }, + { + "code": "AF-LAG", + "name": "Laghmān", + "type": "Province" + }, + { + "code": "AF-LOG", + "name": "Lōgar", + "type": "Province" + }, + { + "code": "AF-NAN", + "name": "Nangarhār", + "type": "Province" + }, + { + "code": "AF-NIM", + "name": "Nīmrōz", + "type": "Province" + }, + { + "code": "AF-NUR", + "name": "Nūristān", + "type": "Province" + }, + { + "code": "AF-PAN", + "name": "Panjshayr", + "type": "Province" + }, + { + "code": "AF-PAR", + "name": "Parwān", + "type": "Province" + }, + { + "code": "AF-PIA", + "name": "Paktiyā", + "type": "Province" + }, + { + "code": "AF-PKA", + "name": "Paktīkā", + "type": "Province" + }, + { + "code": "AF-SAM", + "name": "Samangān", + "type": "Province" + }, + { + "code": "AF-SAR", + "name": "Sar-e Pul", + "type": "Province" + }, + { + "code": "AF-TAK", + "name": "Takhār", + "type": "Province" + }, + { + "code": "AF-URU", + "name": "Uruzgān", + "type": "Province" + }, + { + "code": "AF-WAR", + "name": "Wardak", + "type": "Province" + }, + { + "code": "AF-ZAB", + "name": "Zābul", + "type": "Province" + }, + { + "code": "AG-03", + "name": "Saint George", + "type": "Parish" + }, + { + "code": "AG-04", + "name": "Saint John", + "type": "Parish" + }, + { + "code": "AG-05", + "name": "Saint Mary", + "type": "Parish" + }, + { + "code": "AG-06", + "name": "Saint Paul", + "type": "Parish" + }, + { + "code": "AG-07", + "name": "Saint Peter", + "type": "Parish" + }, + { + "code": "AG-08", + "name": "Saint Philip", + "type": "Parish" + }, + { + "code": "AG-10", + "name": "Barbuda", + "type": "Dependency" + }, + { + "code": "AG-11", + "name": "Redonda", + "type": "Dependency" + }, + { + "code": "AL-01", + "name": "Berat", + "type": "County" + }, + { + "code": "AL-02", + "name": "Durrës", + "type": "County" + }, + { + "code": "AL-03", + "name": "Elbasan", + "type": "County" + }, + { + "code": "AL-04", + "name": "Fier", + "type": "County" + }, + { + "code": "AL-05", + "name": "Gjirokastër", + "type": "County" + }, + { + "code": "AL-06", + "name": "Korçë", + "type": "County" + }, + { + "code": "AL-07", + "name": "Kukës", + "type": "County" + }, + { + "code": "AL-08", + "name": "Lezhë", + "type": "County" + }, + { + "code": "AL-09", + "name": "Dibër", + "type": "County" + }, + { + "code": "AL-10", + "name": "Shkodër", + "type": "County" + }, + { + "code": "AL-11", + "name": "Tiranë", + "type": "County" + }, + { + "code": "AL-12", + "name": "Vlorë", + "type": "County" + }, + { + "code": "AM-AG", + "name": "Aragac̣otn", + "type": "Region" + }, + { + "code": "AM-AR", + "name": "Ararat", + "type": "Region" + }, + { + "code": "AM-AV", + "name": "Armavir", + "type": "Region" + }, + { + "code": "AM-ER", + "name": "Erevan", + "type": "City" + }, + { + "code": "AM-GR", + "name": "Geġark'unik'", + "type": "Region" + }, + { + "code": "AM-KT", + "name": "Kotayk'", + "type": "Region" + }, + { + "code": "AM-LO", + "name": "Loṙi", + "type": "Region" + }, + { + "code": "AM-SH", + "name": "Širak", + "type": "Region" + }, + { + "code": "AM-SU", + "name": "Syunik'", + "type": "Region" + }, + { + "code": "AM-TV", + "name": "Tavuš", + "type": "Region" + }, + { + "code": "AM-VD", + "name": "Vayoć Jor", + "type": "Region" + }, + { + "code": "AO-BGO", + "name": "Bengo", + "type": "Province" + }, + { + "code": "AO-BGU", + "name": "Benguela", + "type": "Province" + }, + { + "code": "AO-BIE", + "name": "Bié", + "type": "Province" + }, + { + "code": "AO-CAB", + "name": "Cabinda", + "type": "Province" + }, + { + "code": "AO-CCU", + "name": "Cuando Cubango", + "type": "Province" + }, + { + "code": "AO-CNN", + "name": "Cunene", + "type": "Province" + }, + { + "code": "AO-CNO", + "name": "Cuanza-Norte", + "type": "Province" + }, + { + "code": "AO-CUS", + "name": "Cuanza-Sul", + "type": "Province" + }, + { + "code": "AO-HUA", + "name": "Huambo", + "type": "Province" + }, + { + "code": "AO-HUI", + "name": "Huíla", + "type": "Province" + }, + { + "code": "AO-LNO", + "name": "Lunda-Norte", + "type": "Province" + }, + { + "code": "AO-LSU", + "name": "Lunda-Sul", + "type": "Province" + }, + { + "code": "AO-LUA", + "name": "Luanda", + "type": "Province" + }, + { + "code": "AO-MAL", + "name": "Malange", + "type": "Province" + }, + { + "code": "AO-MOX", + "name": "Moxico", + "type": "Province" + }, + { + "code": "AO-NAM", + "name": "Namibe", + "type": "Province" + }, + { + "code": "AO-UIG", + "name": "Uíge", + "type": "Province" + }, + { + "code": "AO-ZAI", + "name": "Zaire", + "type": "Province" + }, + { + "code": "AR-A", + "name": "Salta", + "type": "Province" + }, + { + "code": "AR-B", + "name": "Buenos Aires", + "type": "Province" + }, + { + "code": "AR-C", + "name": "Ciudad Autónoma de Buenos Aires", + "type": "City" + }, + { + "code": "AR-D", + "name": "San Luis", + "type": "Province" + }, + { + "code": "AR-E", + "name": "Entre Ríos", + "type": "Province" + }, + { + "code": "AR-F", + "name": "La Rioja", + "type": "Province" + }, + { + "code": "AR-G", + "name": "Santiago del Estero", + "type": "Province" + }, + { + "code": "AR-H", + "name": "Chaco", + "type": "Province" + }, + { + "code": "AR-J", + "name": "San Juan", + "type": "Province" + }, + { + "code": "AR-K", + "name": "Catamarca", + "type": "Province" + }, + { + "code": "AR-L", + "name": "La Pampa", + "type": "Province" + }, + { + "code": "AR-M", + "name": "Mendoza", + "type": "Province" + }, + { + "code": "AR-N", + "name": "Misiones", + "type": "Province" + }, + { + "code": "AR-P", + "name": "Formosa", + "type": "Province" + }, + { + "code": "AR-Q", + "name": "Neuquén", + "type": "Province" + }, + { + "code": "AR-R", + "name": "Río Negro", + "type": "Province" + }, + { + "code": "AR-S", + "name": "Santa Fe", + "type": "Province" + }, + { + "code": "AR-T", + "name": "Tucumán", + "type": "Province" + }, + { + "code": "AR-U", + "name": "Chubut", + "type": "Province" + }, + { + "code": "AR-V", + "name": "Tierra del Fuego", + "type": "Province" + }, + { + "code": "AR-W", + "name": "Corrientes", + "type": "Province" + }, + { + "code": "AR-X", + "name": "Córdoba", + "type": "Province" + }, + { + "code": "AR-Y", + "name": "Jujuy", + "type": "Province" + }, + { + "code": "AR-Z", + "name": "Santa Cruz", + "type": "Province" + }, + { + "code": "AT-1", + "name": "Burgenland", + "type": "State" + }, + { + "code": "AT-2", + "name": "Kärnten", + "type": "State" + }, + { + "code": "AT-3", + "name": "Niederösterreich", + "type": "State" + }, + { + "code": "AT-4", + "name": "Oberösterreich", + "type": "State" + }, + { + "code": "AT-5", + "name": "Salzburg", + "type": "State" + }, + { + "code": "AT-6", + "name": "Steiermark", + "type": "State" + }, + { + "code": "AT-7", + "name": "Tirol", + "type": "State" + }, + { + "code": "AT-8", + "name": "Vorarlberg", + "type": "State" + }, + { + "code": "AT-9", + "name": "Wien", + "type": "State" + }, + { + "code": "AU-ACT", + "name": "Australian Capital Territory", + "type": "Territory" + }, + { + "code": "AU-NSW", + "name": "New South Wales", + "type": "State" + }, + { + "code": "AU-NT", + "name": "Northern Territory", + "type": "Territory" + }, + { + "code": "AU-QLD", + "name": "Queensland", + "type": "State" + }, + { + "code": "AU-SA", + "name": "South Australia", + "type": "State" + }, + { + "code": "AU-TAS", + "name": "Tasmania", + "type": "State" + }, + { + "code": "AU-VIC", + "name": "Victoria", + "type": "State" + }, + { + "code": "AU-WA", + "name": "Western Australia", + "type": "State" + }, + { + "code": "AZ-ABS", + "name": "Abşeron", + "type": "Rayon" + }, + { + "code": "AZ-AGA", + "name": "Ağstafa", + "type": "Rayon" + }, + { + "code": "AZ-AGC", + "name": "Ağcabədi", + "type": "Rayon" + }, + { + "code": "AZ-AGM", + "name": "Ağdam", + "type": "Rayon" + }, + { + "code": "AZ-AGS", + "name": "Ağdaş", + "type": "Rayon" + }, + { + "code": "AZ-AGU", + "name": "Ağsu", + "type": "Rayon" + }, + { + "code": "AZ-AST", + "name": "Astara", + "type": "Rayon" + }, + { + "code": "AZ-BA", + "name": "Bakı", + "type": "Municipality" + }, + { + "code": "AZ-BAB", + "name": "Babək", + "parent": "AZ-NX", + "type": "Rayon" + }, + { + "code": "AZ-BAL", + "name": "Balakən", + "type": "Rayon" + }, + { + "code": "AZ-BAR", + "name": "Bərdə", + "type": "Rayon" + }, + { + "code": "AZ-BEY", + "name": "Beyləqan", + "type": "Rayon" + }, + { + "code": "AZ-BIL", + "name": "Biləsuvar", + "type": "Rayon" + }, + { + "code": "AZ-CAB", + "name": "Cəbrayıl", + "type": "Rayon" + }, + { + "code": "AZ-CAL", + "name": "Cəlilabad", + "type": "Rayon" + }, + { + "code": "AZ-CUL", + "name": "Culfa", + "parent": "AZ-NX", + "type": "Rayon" + }, + { + "code": "AZ-DAS", + "name": "Daşkəsən", + "type": "Rayon" + }, + { + "code": "AZ-FUZ", + "name": "Füzuli", + "type": "Rayon" + }, + { + "code": "AZ-GA", + "name": "Gəncə", + "type": "Municipality" + }, + { + "code": "AZ-GAD", + "name": "Gədəbəy", + "type": "Rayon" + }, + { + "code": "AZ-GOR", + "name": "Goranboy", + "type": "Rayon" + }, + { + "code": "AZ-GOY", + "name": "Göyçay", + "type": "Rayon" + }, + { + "code": "AZ-GYG", + "name": "Göygöl", + "type": "Rayon" + }, + { + "code": "AZ-HAC", + "name": "Hacıqabul", + "type": "Rayon" + }, + { + "code": "AZ-IMI", + "name": "İmişli", + "type": "Rayon" + }, + { + "code": "AZ-ISM", + "name": "İsmayıllı", + "type": "Rayon" + }, + { + "code": "AZ-KAL", + "name": "Kəlbəcər", + "type": "Rayon" + }, + { + "code": "AZ-KAN", + "name": "Kǝngǝrli", + "parent": "AZ-NX", + "type": "Rayon" + }, + { + "code": "AZ-KUR", + "name": "Kürdəmir", + "type": "Rayon" + }, + { + "code": "AZ-LA", + "name": "Lənkəran", + "type": "Municipality" + }, + { + "code": "AZ-LAC", + "name": "Laçın", + "type": "Rayon" + }, + { + "code": "AZ-LAN", + "name": "Lənkəran", + "type": "Rayon" + }, + { + "code": "AZ-LER", + "name": "Lerik", + "type": "Rayon" + }, + { + "code": "AZ-MAS", + "name": "Masallı", + "type": "Rayon" + }, + { + "code": "AZ-MI", + "name": "Mingəçevir", + "type": "Municipality" + }, + { + "code": "AZ-NA", + "name": "Naftalan", + "type": "Municipality" + }, + { + "code": "AZ-NEF", + "name": "Neftçala", + "type": "Rayon" + }, + { + "code": "AZ-NV", + "name": "Naxçıvan", + "parent": "AZ-NX", + "type": "Municipality" + }, + { + "code": "AZ-NX", + "name": "Naxçıvan", + "type": "Autonomous republic" + }, + { + "code": "AZ-OGU", + "name": "Oğuz", + "type": "Rayon" + }, + { + "code": "AZ-ORD", + "name": "Ordubad", + "parent": "AZ-NX", + "type": "Rayon" + }, + { + "code": "AZ-QAB", + "name": "Qəbələ", + "type": "Rayon" + }, + { + "code": "AZ-QAX", + "name": "Qax", + "type": "Rayon" + }, + { + "code": "AZ-QAZ", + "name": "Qazax", + "type": "Rayon" + }, + { + "code": "AZ-QBA", + "name": "Quba", + "type": "Rayon" + }, + { + "code": "AZ-QBI", + "name": "Qubadlı", + "type": "Rayon" + }, + { + "code": "AZ-QOB", + "name": "Qobustan", + "type": "Rayon" + }, + { + "code": "AZ-QUS", + "name": "Qusar", + "type": "Rayon" + }, + { + "code": "AZ-SA", + "name": "Şəki", + "type": "Municipality" + }, + { + "code": "AZ-SAB", + "name": "Sabirabad", + "type": "Rayon" + }, + { + "code": "AZ-SAD", + "name": "Sədərək", + "parent": "AZ-NX", + "type": "Rayon" + }, + { + "code": "AZ-SAH", + "name": "Şahbuz", + "parent": "AZ-NX", + "type": "Rayon" + }, + { + "code": "AZ-SAK", + "name": "Şəki", + "type": "Rayon" + }, + { + "code": "AZ-SAL", + "name": "Salyan", + "type": "Rayon" + }, + { + "code": "AZ-SAR", + "name": "Şərur", + "parent": "AZ-NX", + "type": "Rayon" + }, + { + "code": "AZ-SAT", + "name": "Saatlı", + "type": "Rayon" + }, + { + "code": "AZ-SBN", + "name": "Şabran", + "type": "Rayon" + }, + { + "code": "AZ-SIY", + "name": "Siyəzən", + "type": "Rayon" + }, + { + "code": "AZ-SKR", + "name": "Şəmkir", + "type": "Rayon" + }, + { + "code": "AZ-SM", + "name": "Sumqayıt", + "type": "Municipality" + }, + { + "code": "AZ-SMI", + "name": "Şamaxı", + "type": "Rayon" + }, + { + "code": "AZ-SMX", + "name": "Samux", + "type": "Rayon" + }, + { + "code": "AZ-SR", + "name": "Şirvan", + "type": "Municipality" + }, + { + "code": "AZ-SUS", + "name": "Şuşa", + "type": "Rayon" + }, + { + "code": "AZ-TAR", + "name": "Tərtər", + "type": "Rayon" + }, + { + "code": "AZ-TOV", + "name": "Tovuz", + "type": "Rayon" + }, + { + "code": "AZ-UCA", + "name": "Ucar", + "type": "Rayon" + }, + { + "code": "AZ-XA", + "name": "Xankəndi", + "type": "Municipality" + }, + { + "code": "AZ-XAC", + "name": "Xaçmaz", + "type": "Rayon" + }, + { + "code": "AZ-XCI", + "name": "Xocalı", + "type": "Rayon" + }, + { + "code": "AZ-XIZ", + "name": "Xızı", + "type": "Rayon" + }, + { + "code": "AZ-XVD", + "name": "Xocavənd", + "type": "Rayon" + }, + { + "code": "AZ-YAR", + "name": "Yardımlı", + "type": "Rayon" + }, + { + "code": "AZ-YE", + "name": "Yevlax", + "type": "Municipality" + }, + { + "code": "AZ-YEV", + "name": "Yevlax", + "type": "Rayon" + }, + { + "code": "AZ-ZAN", + "name": "Zəngilan", + "type": "Rayon" + }, + { + "code": "AZ-ZAQ", + "name": "Zaqatala", + "type": "Rayon" + }, + { + "code": "AZ-ZAR", + "name": "Zərdab", + "type": "Rayon" + }, + { + "code": "BA-BIH", + "name": "Federacija Bosne i Hercegovine", + "type": "Entity" + }, + { + "code": "BA-BRC", + "name": "Brčko distrikt", + "type": "District with special status" + }, + { + "code": "BA-SRP", + "name": "Republika Srpska", + "type": "Entity" + }, + { + "code": "BB-01", + "name": "Christ Church", + "type": "Parish" + }, + { + "code": "BB-02", + "name": "Saint Andrew", + "type": "Parish" + }, + { + "code": "BB-03", + "name": "Saint George", + "type": "Parish" + }, + { + "code": "BB-04", + "name": "Saint James", + "type": "Parish" + }, + { + "code": "BB-05", + "name": "Saint John", + "type": "Parish" + }, + { + "code": "BB-06", + "name": "Saint Joseph", + "type": "Parish" + }, + { + "code": "BB-07", + "name": "Saint Lucy", + "type": "Parish" + }, + { + "code": "BB-08", + "name": "Saint Michael", + "type": "Parish" + }, + { + "code": "BB-09", + "name": "Saint Peter", + "type": "Parish" + }, + { + "code": "BB-10", + "name": "Saint Philip", + "type": "Parish" + }, + { + "code": "BB-11", + "name": "Saint Thomas", + "type": "Parish" + }, + { + "code": "BD-01", + "name": "Bandarban", + "parent": "BD-B", + "type": "District" + }, + { + "code": "BD-02", + "name": "Barguna", + "parent": "BD-A", + "type": "District" + }, + { + "code": "BD-03", + "name": "Bogura", + "parent": "BD-E", + "type": "District" + }, + { + "code": "BD-04", + "name": "Brahmanbaria", + "parent": "BD-B", + "type": "District" + }, + { + "code": "BD-05", + "name": "Bagerhat", + "parent": "BD-D", + "type": "District" + }, + { + "code": "BD-06", + "name": "Barishal", + "parent": "BD-A", + "type": "District" + }, + { + "code": "BD-07", + "name": "Bhola", + "parent": "BD-A", + "type": "District" + }, + { + "code": "BD-08", + "name": "Cumilla", + "parent": "BD-B", + "type": "District" + }, + { + "code": "BD-09", + "name": "Chandpur", + "parent": "BD-B", + "type": "District" + }, + { + "code": "BD-10", + "name": "Chattogram", + "parent": "BD-B", + "type": "District" + }, + { + "code": "BD-11", + "name": "Cox's Bazar", + "parent": "BD-B", + "type": "District" + }, + { + "code": "BD-12", + "name": "Chuadanga", + "parent": "BD-D", + "type": "District" + }, + { + "code": "BD-13", + "name": "Dhaka", + "parent": "BD-C", + "type": "District" + }, + { + "code": "BD-14", + "name": "Dinajpur", + "parent": "BD-F", + "type": "District" + }, + { + "code": "BD-15", + "name": "Faridpur", + "parent": "BD-C", + "type": "District" + }, + { + "code": "BD-16", + "name": "Feni", + "parent": "BD-B", + "type": "District" + }, + { + "code": "BD-17", + "name": "Gopalganj", + "parent": "BD-C", + "type": "District" + }, + { + "code": "BD-18", + "name": "Gazipur", + "parent": "BD-C", + "type": "District" + }, + { + "code": "BD-19", + "name": "Gaibandha", + "parent": "BD-F", + "type": "District" + }, + { + "code": "BD-20", + "name": "Habiganj", + "parent": "BD-G", + "type": "District" + }, + { + "code": "BD-21", + "name": "Jamalpur", + "parent": "BD-H", + "type": "District" + }, + { + "code": "BD-22", + "name": "Jashore", + "parent": "BD-D", + "type": "District" + }, + { + "code": "BD-23", + "name": "Jhenaidah", + "parent": "BD-D", + "type": "District" + }, + { + "code": "BD-24", + "name": "Joypurhat", + "parent": "BD-E", + "type": "District" + }, + { + "code": "BD-25", + "name": "Jhalakathi", + "parent": "BD-A", + "type": "District" + }, + { + "code": "BD-26", + "name": "Kishoreganj", + "parent": "BD-C", + "type": "District" + }, + { + "code": "BD-27", + "name": "Khulna", + "parent": "BD-D", + "type": "District" + }, + { + "code": "BD-28", + "name": "Kurigram", + "parent": "BD-F", + "type": "District" + }, + { + "code": "BD-29", + "name": "Khagrachhari", + "parent": "BD-B", + "type": "District" + }, + { + "code": "BD-30", + "name": "Kushtia", + "parent": "BD-D", + "type": "District" + }, + { + "code": "BD-31", + "name": "Lakshmipur", + "parent": "BD-B", + "type": "District" + }, + { + "code": "BD-32", + "name": "Lalmonirhat", + "parent": "BD-F", + "type": "District" + }, + { + "code": "BD-33", + "name": "Manikganj", + "parent": "BD-C", + "type": "District" + }, + { + "code": "BD-34", + "name": "Mymensingh", + "parent": "BD-H", + "type": "District" + }, + { + "code": "BD-35", + "name": "Munshiganj", + "parent": "BD-C", + "type": "District" + }, + { + "code": "BD-36", + "name": "Madaripur", + "parent": "BD-C", + "type": "District" + }, + { + "code": "BD-37", + "name": "Magura", + "parent": "BD-D", + "type": "District" + }, + { + "code": "BD-38", + "name": "Moulvibazar", + "parent": "BD-G", + "type": "District" + }, + { + "code": "BD-39", + "name": "Meherpur", + "parent": "BD-D", + "type": "District" + }, + { + "code": "BD-40", + "name": "Narayanganj", + "parent": "BD-C", + "type": "District" + }, + { + "code": "BD-41", + "name": "Netrakona", + "parent": "BD-H", + "type": "District" + }, + { + "code": "BD-42", + "name": "Narsingdi", + "parent": "BD-C", + "type": "District" + }, + { + "code": "BD-43", + "name": "Narail", + "parent": "BD-D", + "type": "District" + }, + { + "code": "BD-44", + "name": "Natore", + "parent": "BD-E", + "type": "District" + }, + { + "code": "BD-45", + "name": "Chapai Nawabganj", + "parent": "BD-E", + "type": "District" + }, + { + "code": "BD-46", + "name": "Nilphamari", + "parent": "BD-F", + "type": "District" + }, + { + "code": "BD-47", + "name": "Noakhali", + "parent": "BD-B", + "type": "District" + }, + { + "code": "BD-48", + "name": "Naogaon", + "parent": "BD-E", + "type": "District" + }, + { + "code": "BD-49", + "name": "Pabna", + "parent": "BD-E", + "type": "District" + }, + { + "code": "BD-50", + "name": "Pirojpur", + "parent": "BD-A", + "type": "District" + }, + { + "code": "BD-51", + "name": "Patuakhali", + "parent": "BD-A", + "type": "District" + }, + { + "code": "BD-52", + "name": "Panchagarh", + "parent": "BD-F", + "type": "District" + }, + { + "code": "BD-53", + "name": "Rajbari", + "parent": "BD-C", + "type": "District" + }, + { + "code": "BD-54", + "name": "Rajshahi", + "parent": "BD-E", + "type": "District" + }, + { + "code": "BD-55", + "name": "Rangpur", + "parent": "BD-F", + "type": "District" + }, + { + "code": "BD-56", + "name": "Rangamati", + "parent": "BD-B", + "type": "District" + }, + { + "code": "BD-57", + "name": "Sherpur", + "parent": "BD-H", + "type": "District" + }, + { + "code": "BD-58", + "name": "Satkhira", + "parent": "BD-D", + "type": "District" + }, + { + "code": "BD-59", + "name": "Sirajganj", + "parent": "BD-E", + "type": "District" + }, + { + "code": "BD-60", + "name": "Sylhet", + "parent": "BD-G", + "type": "District" + }, + { + "code": "BD-61", + "name": "Sunamganj", + "parent": "BD-G", + "type": "District" + }, + { + "code": "BD-62", + "name": "Shariatpur", + "parent": "BD-C", + "type": "District" + }, + { + "code": "BD-63", + "name": "Tangail", + "parent": "BD-C", + "type": "District" + }, + { + "code": "BD-64", + "name": "Thakurgaon", + "parent": "BD-F", + "type": "District" + }, + { + "code": "BD-A", + "name": "Barishal", + "type": "Division" + }, + { + "code": "BD-B", + "name": "Chattogram", + "type": "Division" + }, + { + "code": "BD-C", + "name": "Dhaka", + "type": "Division" + }, + { + "code": "BD-D", + "name": "Khulna", + "type": "Division" + }, + { + "code": "BD-E", + "name": "Rajshahi", + "type": "Division" + }, + { + "code": "BD-F", + "name": "Rangpur", + "type": "Division" + }, + { + "code": "BD-G", + "name": "Sylhet", + "type": "Division" + }, + { + "code": "BD-H", + "name": "Mymensingh", + "type": "Division" + }, + { + "code": "BE-BRU", + "name": "Bruxelles-Capitale, Région de", + "type": "Region" + }, + { + "code": "BE-VAN", + "name": "Antwerpen", + "parent": "BE-VLG", + "type": "Province" + }, + { + "code": "BE-VBR", + "name": "Vlaams-Brabant", + "parent": "BE-VLG", + "type": "Province" + }, + { + "code": "BE-VLG", + "name": "Vlaams Gewest", + "type": "Region" + }, + { + "code": "BE-VLI", + "name": "Limburg", + "parent": "BE-VLG", + "type": "Province" + }, + { + "code": "BE-VOV", + "name": "Oost-Vlaanderen", + "parent": "BE-VLG", + "type": "Province" + }, + { + "code": "BE-VWV", + "name": "West-Vlaanderen", + "parent": "BE-VLG", + "type": "Province" + }, + { + "code": "BE-WAL", + "name": "wallonne, Région", + "type": "Region" + }, + { + "code": "BE-WBR", + "name": "Brabant wallon", + "parent": "BE-WAL", + "type": "Province" + }, + { + "code": "BE-WHT", + "name": "Hainaut", + "parent": "BE-WAL", + "type": "Province" + }, + { + "code": "BE-WLG", + "name": "Liège", + "parent": "BE-WAL", + "type": "Province" + }, + { + "code": "BE-WLX", + "name": "Luxembourg", + "parent": "BE-WAL", + "type": "Province" + }, + { + "code": "BE-WNA", + "name": "Namur", + "parent": "BE-WAL", + "type": "Province" + }, + { + "code": "BF-01", + "name": "Boucle du Mouhoun", + "type": "Region" + }, + { + "code": "BF-02", + "name": "Cascades", + "type": "Region" + }, + { + "code": "BF-03", + "name": "Centre", + "type": "Region" + }, + { + "code": "BF-04", + "name": "Centre-Est", + "type": "Region" + }, + { + "code": "BF-05", + "name": "Centre-Nord", + "type": "Region" + }, + { + "code": "BF-06", + "name": "Centre-Ouest", + "type": "Region" + }, + { + "code": "BF-07", + "name": "Centre-Sud", + "type": "Region" + }, + { + "code": "BF-08", + "name": "Est", + "type": "Region" + }, + { + "code": "BF-09", + "name": "Hauts-Bassins", + "type": "Region" + }, + { + "code": "BF-10", + "name": "Nord", + "type": "Region" + }, + { + "code": "BF-11", + "name": "Plateau-Central", + "type": "Region" + }, + { + "code": "BF-12", + "name": "Sahel", + "type": "Region" + }, + { + "code": "BF-13", + "name": "Sud-Ouest", + "type": "Region" + }, + { + "code": "BF-BAL", + "name": "Balé", + "parent": "BF-01", + "type": "Province" + }, + { + "code": "BF-BAM", + "name": "Bam", + "parent": "BF-05", + "type": "Province" + }, + { + "code": "BF-BAN", + "name": "Banwa", + "parent": "BF-01", + "type": "Province" + }, + { + "code": "BF-BAZ", + "name": "Bazèga", + "parent": "BF-07", + "type": "Province" + }, + { + "code": "BF-BGR", + "name": "Bougouriba", + "parent": "BF-13", + "type": "Province" + }, + { + "code": "BF-BLG", + "name": "Boulgou", + "parent": "BF-04", + "type": "Province" + }, + { + "code": "BF-BLK", + "name": "Boulkiemdé", + "parent": "BF-06", + "type": "Province" + }, + { + "code": "BF-COM", + "name": "Comoé", + "parent": "BF-02", + "type": "Province" + }, + { + "code": "BF-GAN", + "name": "Ganzourgou", + "parent": "BF-11", + "type": "Province" + }, + { + "code": "BF-GNA", + "name": "Gnagna", + "parent": "BF-08", + "type": "Province" + }, + { + "code": "BF-GOU", + "name": "Gourma", + "parent": "BF-08", + "type": "Province" + }, + { + "code": "BF-HOU", + "name": "Houet", + "parent": "BF-09", + "type": "Province" + }, + { + "code": "BF-IOB", + "name": "Ioba", + "parent": "BF-13", + "type": "Province" + }, + { + "code": "BF-KAD", + "name": "Kadiogo", + "parent": "BF-03", + "type": "Province" + }, + { + "code": "BF-KEN", + "name": "Kénédougou", + "parent": "BF-09", + "type": "Province" + }, + { + "code": "BF-KMD", + "name": "Komondjari", + "parent": "BF-08", + "type": "Province" + }, + { + "code": "BF-KMP", + "name": "Kompienga", + "parent": "BF-08", + "type": "Province" + }, + { + "code": "BF-KOP", + "name": "Koulpélogo", + "parent": "BF-04", + "type": "Province" + }, + { + "code": "BF-KOS", + "name": "Kossi", + "parent": "BF-01", + "type": "Province" + }, + { + "code": "BF-KOT", + "name": "Kouritenga", + "parent": "BF-04", + "type": "Province" + }, + { + "code": "BF-KOW", + "name": "Kourwéogo", + "parent": "BF-11", + "type": "Province" + }, + { + "code": "BF-LER", + "name": "Léraba", + "parent": "BF-02", + "type": "Province" + }, + { + "code": "BF-LOR", + "name": "Loroum", + "parent": "BF-10", + "type": "Province" + }, + { + "code": "BF-MOU", + "name": "Mouhoun", + "parent": "BF-01", + "type": "Province" + }, + { + "code": "BF-NAM", + "name": "Namentenga", + "parent": "BF-05", + "type": "Province" + }, + { + "code": "BF-NAO", + "name": "Nahouri", + "parent": "BF-07", + "type": "Province" + }, + { + "code": "BF-NAY", + "name": "Nayala", + "parent": "BF-01", + "type": "Province" + }, + { + "code": "BF-NOU", + "name": "Noumbiel", + "parent": "BF-13", + "type": "Province" + }, + { + "code": "BF-OUB", + "name": "Oubritenga", + "parent": "BF-11", + "type": "Province" + }, + { + "code": "BF-OUD", + "name": "Oudalan", + "parent": "BF-12", + "type": "Province" + }, + { + "code": "BF-PAS", + "name": "Passoré", + "parent": "BF-10", + "type": "Province" + }, + { + "code": "BF-PON", + "name": "Poni", + "parent": "BF-13", + "type": "Province" + }, + { + "code": "BF-SEN", + "name": "Séno", + "parent": "BF-12", + "type": "Province" + }, + { + "code": "BF-SIS", + "name": "Sissili", + "parent": "BF-06", + "type": "Province" + }, + { + "code": "BF-SMT", + "name": "Sanmatenga", + "parent": "BF-05", + "type": "Province" + }, + { + "code": "BF-SNG", + "name": "Sanguié", + "parent": "BF-06", + "type": "Province" + }, + { + "code": "BF-SOM", + "name": "Soum", + "parent": "BF-12", + "type": "Province" + }, + { + "code": "BF-SOR", + "name": "Sourou", + "parent": "BF-01", + "type": "Province" + }, + { + "code": "BF-TAP", + "name": "Tapoa", + "parent": "BF-08", + "type": "Province" + }, + { + "code": "BF-TUI", + "name": "Tuy", + "parent": "BF-09", + "type": "Province" + }, + { + "code": "BF-YAG", + "name": "Yagha", + "parent": "BF-12", + "type": "Province" + }, + { + "code": "BF-YAT", + "name": "Yatenga", + "parent": "BF-10", + "type": "Province" + }, + { + "code": "BF-ZIR", + "name": "Ziro", + "parent": "BF-06", + "type": "Province" + }, + { + "code": "BF-ZON", + "name": "Zondoma", + "parent": "BF-10", + "type": "Province" + }, + { + "code": "BF-ZOU", + "name": "Zoundwéogo", + "parent": "BF-07", + "type": "Province" + }, + { + "code": "BG-01", + "name": "Blagoevgrad", + "type": "District" + }, + { + "code": "BG-02", + "name": "Burgas", + "type": "District" + }, + { + "code": "BG-03", + "name": "Varna", + "type": "District" + }, + { + "code": "BG-04", + "name": "Veliko Tarnovo", + "type": "District" + }, + { + "code": "BG-05", + "name": "Vidin", + "type": "District" + }, + { + "code": "BG-06", + "name": "Vratsa", + "type": "District" + }, + { + "code": "BG-07", + "name": "Gabrovo", + "type": "District" + }, + { + "code": "BG-08", + "name": "Dobrich", + "type": "District" + }, + { + "code": "BG-09", + "name": "Kardzhali", + "type": "District" + }, + { + "code": "BG-10", + "name": "Kyustendil", + "type": "District" + }, + { + "code": "BG-11", + "name": "Lovech", + "type": "District" + }, + { + "code": "BG-12", + "name": "Montana", + "type": "District" + }, + { + "code": "BG-13", + "name": "Pazardzhik", + "type": "District" + }, + { + "code": "BG-14", + "name": "Pernik", + "type": "District" + }, + { + "code": "BG-15", + "name": "Pleven", + "type": "District" + }, + { + "code": "BG-16", + "name": "Plovdiv", + "type": "District" + }, + { + "code": "BG-17", + "name": "Razgrad", + "type": "District" + }, + { + "code": "BG-18", + "name": "Ruse", + "type": "District" + }, + { + "code": "BG-19", + "name": "Silistra", + "type": "District" + }, + { + "code": "BG-20", + "name": "Sliven", + "type": "District" + }, + { + "code": "BG-21", + "name": "Smolyan", + "type": "District" + }, + { + "code": "BG-22", + "name": "Sofia (stolitsa)", + "type": "District" + }, + { + "code": "BG-23", + "name": "Sofia", + "type": "District" + }, + { + "code": "BG-24", + "name": "Stara Zagora", + "type": "District" + }, + { + "code": "BG-25", + "name": "Targovishte", + "type": "District" + }, + { + "code": "BG-26", + "name": "Haskovo", + "type": "District" + }, + { + "code": "BG-27", + "name": "Shumen", + "type": "District" + }, + { + "code": "BG-28", + "name": "Yambol", + "type": "District" + }, + { + "code": "BH-13", + "name": "Al ‘Āşimah", + "type": "Governorate" + }, + { + "code": "BH-14", + "name": "Al Janūbīyah", + "type": "Governorate" + }, + { + "code": "BH-15", + "name": "Al Muḩarraq", + "type": "Governorate" + }, + { + "code": "BH-17", + "name": "Ash Shamālīyah", + "type": "Governorate" + }, + { + "code": "BI-BB", + "name": "Bubanza", + "type": "Province" + }, + { + "code": "BI-BL", + "name": "Bujumbura Rural", + "type": "Province" + }, + { + "code": "BI-BM", + "name": "Bujumbura Mairie", + "type": "Province" + }, + { + "code": "BI-BR", + "name": "Bururi", + "type": "Province" + }, + { + "code": "BI-CA", + "name": "Cankuzo", + "type": "Province" + }, + { + "code": "BI-CI", + "name": "Cibitoke", + "type": "Province" + }, + { + "code": "BI-GI", + "name": "Gitega", + "type": "Province" + }, + { + "code": "BI-KI", + "name": "Kirundo", + "type": "Province" + }, + { + "code": "BI-KR", + "name": "Karuzi", + "type": "Province" + }, + { + "code": "BI-KY", + "name": "Kayanza", + "type": "Province" + }, + { + "code": "BI-MA", + "name": "Makamba", + "type": "Province" + }, + { + "code": "BI-MU", + "name": "Muramvya", + "type": "Province" + }, + { + "code": "BI-MW", + "name": "Mwaro", + "type": "Province" + }, + { + "code": "BI-MY", + "name": "Muyinga", + "type": "Province" + }, + { + "code": "BI-NG", + "name": "Ngozi", + "type": "Province" + }, + { + "code": "BI-RM", + "name": "Rumonge", + "type": "Province" + }, + { + "code": "BI-RT", + "name": "Rutana", + "type": "Province" + }, + { + "code": "BI-RY", + "name": "Ruyigi", + "type": "Province" + }, + { + "code": "BJ-AK", + "name": "Atacora", + "type": "Department" + }, + { + "code": "BJ-AL", + "name": "Alibori", + "type": "Department" + }, + { + "code": "BJ-AQ", + "name": "Atlantique", + "type": "Department" + }, + { + "code": "BJ-BO", + "name": "Borgou", + "type": "Department" + }, + { + "code": "BJ-CO", + "name": "Collines", + "type": "Department" + }, + { + "code": "BJ-DO", + "name": "Donga", + "type": "Department" + }, + { + "code": "BJ-KO", + "name": "Couffo", + "type": "Department" + }, + { + "code": "BJ-LI", + "name": "Littoral", + "type": "Department" + }, + { + "code": "BJ-MO", + "name": "Mono", + "type": "Department" + }, + { + "code": "BJ-OU", + "name": "Ouémé", + "type": "Department" + }, + { + "code": "BJ-PL", + "name": "Plateau", + "type": "Department" + }, + { + "code": "BJ-ZO", + "name": "Zou", + "type": "Department" + }, + { + "code": "BN-BE", + "name": "Belait", + "type": "District" + }, + { + "code": "BN-BM", + "name": "Brunei-Muara", + "type": "District" + }, + { + "code": "BN-TE", + "name": "Temburong", + "type": "District" + }, + { + "code": "BN-TU", + "name": "Tutong", + "type": "District" + }, + { + "code": "BO-B", + "name": "El Beni", + "type": "Department" + }, + { + "code": "BO-C", + "name": "Cochabamba", + "type": "Department" + }, + { + "code": "BO-H", + "name": "Chuquisaca", + "type": "Department" + }, + { + "code": "BO-L", + "name": "La Paz", + "type": "Department" + }, + { + "code": "BO-N", + "name": "Pando", + "type": "Department" + }, + { + "code": "BO-O", + "name": "Oruro", + "type": "Department" + }, + { + "code": "BO-P", + "name": "Potosí", + "type": "Department" + }, + { + "code": "BO-S", + "name": "Santa Cruz", + "type": "Department" + }, + { + "code": "BO-T", + "name": "Tarija", + "type": "Department" + }, + { + "code": "BQ-BO", + "name": "Bonaire", + "type": "Special municipality" + }, + { + "code": "BQ-SA", + "name": "Saba", + "type": "Special municipality" + }, + { + "code": "BQ-SE", + "name": "Sint Eustatius", + "type": "Special municipality" + }, + { + "code": "BR-AC", + "name": "Acre", + "type": "State" + }, + { + "code": "BR-AL", + "name": "Alagoas", + "type": "State" + }, + { + "code": "BR-AM", + "name": "Amazonas", + "type": "State" + }, + { + "code": "BR-AP", + "name": "Amapá", + "type": "State" + }, + { + "code": "BR-BA", + "name": "Bahia", + "type": "State" + }, + { + "code": "BR-CE", + "name": "Ceará", + "type": "State" + }, + { + "code": "BR-DF", + "name": "Distrito Federal", + "type": "Federal district" + }, + { + "code": "BR-ES", + "name": "Espírito Santo", + "type": "State" + }, + { + "code": "BR-GO", + "name": "Goiás", + "type": "State" + }, + { + "code": "BR-MA", + "name": "Maranhão", + "type": "State" + }, + { + "code": "BR-MG", + "name": "Minas Gerais", + "type": "State" + }, + { + "code": "BR-MS", + "name": "Mato Grosso do Sul", + "type": "State" + }, + { + "code": "BR-MT", + "name": "Mato Grosso", + "type": "State" + }, + { + "code": "BR-PA", + "name": "Pará", + "type": "State" + }, + { + "code": "BR-PB", + "name": "Paraíba", + "type": "State" + }, + { + "code": "BR-PE", + "name": "Pernambuco", + "type": "State" + }, + { + "code": "BR-PI", + "name": "Piauí", + "type": "State" + }, + { + "code": "BR-PR", + "name": "Paraná", + "type": "State" + }, + { + "code": "BR-RJ", + "name": "Rio de Janeiro", + "type": "State" + }, + { + "code": "BR-RN", + "name": "Rio Grande do Norte", + "type": "State" + }, + { + "code": "BR-RO", + "name": "Rondônia", + "type": "State" + }, + { + "code": "BR-RR", + "name": "Roraima", + "type": "State" + }, + { + "code": "BR-RS", + "name": "Rio Grande do Sul", + "type": "State" + }, + { + "code": "BR-SC", + "name": "Santa Catarina", + "type": "State" + }, + { + "code": "BR-SE", + "name": "Sergipe", + "type": "State" + }, + { + "code": "BR-SP", + "name": "São Paulo", + "type": "State" + }, + { + "code": "BR-TO", + "name": "Tocantins", + "type": "State" + }, + { + "code": "BS-AK", + "name": "Acklins", + "type": "District" + }, + { + "code": "BS-BI", + "name": "Bimini", + "type": "District" + }, + { + "code": "BS-BP", + "name": "Black Point", + "type": "District" + }, + { + "code": "BS-BY", + "name": "Berry Islands", + "type": "District" + }, + { + "code": "BS-CE", + "name": "Central Eleuthera", + "type": "District" + }, + { + "code": "BS-CI", + "name": "Cat Island", + "type": "District" + }, + { + "code": "BS-CK", + "name": "Crooked Island and Long Cay", + "type": "District" + }, + { + "code": "BS-CO", + "name": "Central Abaco", + "type": "District" + }, + { + "code": "BS-CS", + "name": "Central Andros", + "type": "District" + }, + { + "code": "BS-EG", + "name": "East Grand Bahama", + "type": "District" + }, + { + "code": "BS-EX", + "name": "Exuma", + "type": "District" + }, + { + "code": "BS-FP", + "name": "City of Freeport", + "type": "District" + }, + { + "code": "BS-GC", + "name": "Grand Cay", + "type": "District" + }, + { + "code": "BS-HI", + "name": "Harbour Island", + "type": "District" + }, + { + "code": "BS-HT", + "name": "Hope Town", + "type": "District" + }, + { + "code": "BS-IN", + "name": "Inagua", + "type": "District" + }, + { + "code": "BS-LI", + "name": "Long Island", + "type": "District" + }, + { + "code": "BS-MC", + "name": "Mangrove Cay", + "type": "District" + }, + { + "code": "BS-MG", + "name": "Mayaguana", + "type": "District" + }, + { + "code": "BS-MI", + "name": "Moore's Island", + "type": "District" + }, + { + "code": "BS-NE", + "name": "North Eleuthera", + "type": "District" + }, + { + "code": "BS-NO", + "name": "North Abaco", + "type": "District" + }, + { + "code": "BS-NP", + "name": "New Providence", + "type": "Island" + }, + { + "code": "BS-NS", + "name": "North Andros", + "type": "District" + }, + { + "code": "BS-RC", + "name": "Rum Cay", + "type": "District" + }, + { + "code": "BS-RI", + "name": "Ragged Island", + "type": "District" + }, + { + "code": "BS-SA", + "name": "South Andros", + "type": "District" + }, + { + "code": "BS-SE", + "name": "South Eleuthera", + "type": "District" + }, + { + "code": "BS-SO", + "name": "South Abaco", + "type": "District" + }, + { + "code": "BS-SS", + "name": "San Salvador", + "type": "District" + }, + { + "code": "BS-SW", + "name": "Spanish Wells", + "type": "District" + }, + { + "code": "BS-WG", + "name": "West Grand Bahama", + "type": "District" + }, + { + "code": "BT-11", + "name": "Paro", + "type": "District" + }, + { + "code": "BT-12", + "name": "Chhukha", + "type": "District" + }, + { + "code": "BT-13", + "name": "Haa", + "type": "District" + }, + { + "code": "BT-14", + "name": "Samtse", + "type": "District" + }, + { + "code": "BT-15", + "name": "Thimphu", + "type": "District" + }, + { + "code": "BT-21", + "name": "Tsirang", + "type": "District" + }, + { + "code": "BT-22", + "name": "Dagana", + "type": "District" + }, + { + "code": "BT-23", + "name": "Punakha", + "type": "District" + }, + { + "code": "BT-24", + "name": "Wangdue Phodrang", + "type": "District" + }, + { + "code": "BT-31", + "name": "Sarpang", + "type": "District" + }, + { + "code": "BT-32", + "name": "Trongsa", + "type": "District" + }, + { + "code": "BT-33", + "name": "Bumthang", + "type": "District" + }, + { + "code": "BT-34", + "name": "Zhemgang", + "type": "District" + }, + { + "code": "BT-41", + "name": "Trashigang", + "type": "District" + }, + { + "code": "BT-42", + "name": "Monggar", + "type": "District" + }, + { + "code": "BT-43", + "name": "Pema Gatshel", + "type": "District" + }, + { + "code": "BT-44", + "name": "Lhuentse", + "type": "District" + }, + { + "code": "BT-45", + "name": "Samdrup Jongkhar", + "type": "District" + }, + { + "code": "BT-GA", + "name": "Gasa", + "type": "District" + }, + { + "code": "BT-TY", + "name": "Trashi Yangtse", + "type": "District" + }, + { + "code": "BW-CE", + "name": "Central", + "type": "District" + }, + { + "code": "BW-CH", + "name": "Chobe", + "type": "District" + }, + { + "code": "BW-FR", + "name": "Francistown", + "type": "City" + }, + { + "code": "BW-GA", + "name": "Gaborone", + "type": "City" + }, + { + "code": "BW-GH", + "name": "Ghanzi", + "type": "District" + }, + { + "code": "BW-JW", + "name": "Jwaneng", + "type": "Town" + }, + { + "code": "BW-KG", + "name": "Kgalagadi", + "type": "District" + }, + { + "code": "BW-KL", + "name": "Kgatleng", + "type": "District" + }, + { + "code": "BW-KW", + "name": "Kweneng", + "type": "District" + }, + { + "code": "BW-LO", + "name": "Lobatse", + "type": "Town" + }, + { + "code": "BW-NE", + "name": "North East", + "type": "District" + }, + { + "code": "BW-NW", + "name": "North West", + "type": "District" + }, + { + "code": "BW-SE", + "name": "South East", + "type": "District" + }, + { + "code": "BW-SO", + "name": "Southern", + "type": "District" + }, + { + "code": "BW-SP", + "name": "Selibe Phikwe", + "type": "Town" + }, + { + "code": "BW-ST", + "name": "Sowa Town", + "type": "Town" + }, + { + "code": "BY-BR", + "name": "Bresckaja voblasć", + "type": "Oblast" + }, + { + "code": "BY-HM", + "name": "Horad Minsk", + "type": "City" + }, + { + "code": "BY-HO", + "name": "Homieĺskaja voblasć", + "type": "Oblast" + }, + { + "code": "BY-HR", + "name": "Hrodzienskaja voblasć", + "type": "Oblast" + }, + { + "code": "BY-MA", + "name": "Mahilioŭskaja voblasć", + "type": "Oblast" + }, + { + "code": "BY-MI", + "name": "Minskaja voblasć", + "type": "Oblast" + }, + { + "code": "BY-VI", + "name": "Viciebskaja voblasć", + "type": "Oblast" + }, + { + "code": "BZ-BZ", + "name": "Belize", + "type": "District" + }, + { + "code": "BZ-CY", + "name": "Cayo", + "type": "District" + }, + { + "code": "BZ-CZL", + "name": "Corozal", + "type": "District" + }, + { + "code": "BZ-OW", + "name": "Orange Walk", + "type": "District" + }, + { + "code": "BZ-SC", + "name": "Stann Creek", + "type": "District" + }, + { + "code": "BZ-TOL", + "name": "Toledo", + "type": "District" + }, + { + "code": "CA-AB", + "name": "Alberta", + "type": "Province" + }, + { + "code": "CA-BC", + "name": "British Columbia", + "type": "Province" + }, + { + "code": "CA-MB", + "name": "Manitoba", + "type": "Province" + }, + { + "code": "CA-NB", + "name": "New Brunswick", + "type": "Province" + }, + { + "code": "CA-NL", + "name": "Newfoundland and Labrador", + "type": "Province" + }, + { + "code": "CA-NS", + "name": "Nova Scotia", + "type": "Province" + }, + { + "code": "CA-NT", + "name": "Northwest Territories", + "type": "Territory" + }, + { + "code": "CA-NU", + "name": "Nunavut", + "type": "Territory" + }, + { + "code": "CA-ON", + "name": "Ontario", + "type": "Province" + }, + { + "code": "CA-PE", + "name": "Prince Edward Island", + "type": "Province" + }, + { + "code": "CA-QC", + "name": "Quebec", + "type": "Province" + }, + { + "code": "CA-SK", + "name": "Saskatchewan", + "type": "Province" + }, + { + "code": "CA-YT", + "name": "Yukon", + "type": "Territory" + }, + { + "code": "CD-BC", + "name": "Kongo Central", + "type": "Province" + }, + { + "code": "CD-BU", + "name": "Bas-Uélé", + "type": "Province" + }, + { + "code": "CD-EQ", + "name": "Équateur", + "type": "Province" + }, + { + "code": "CD-HK", + "name": "Haut-Katanga", + "type": "Province" + }, + { + "code": "CD-HL", + "name": "Haut-Lomami", + "type": "Province" + }, + { + "code": "CD-HU", + "name": "Haut-Uélé", + "type": "Province" + }, + { + "code": "CD-IT", + "name": "Ituri", + "type": "Province" + }, + { + "code": "CD-KC", + "name": "Kasaï Central", + "type": "Province" + }, + { + "code": "CD-KE", + "name": "Kasaï Oriental", + "type": "Province" + }, + { + "code": "CD-KG", + "name": "Kwango", + "type": "Province" + }, + { + "code": "CD-KL", + "name": "Kwilu", + "type": "Province" + }, + { + "code": "CD-KN", + "name": "Kinshasa", + "type": "City" + }, + { + "code": "CD-KS", + "name": "Kasaï", + "type": "Province" + }, + { + "code": "CD-LO", + "name": "Lomami", + "type": "Province" + }, + { + "code": "CD-LU", + "name": "Lualaba", + "type": "Province" + }, + { + "code": "CD-MA", + "name": "Maniema", + "type": "Province" + }, + { + "code": "CD-MN", + "name": "Mai-Ndombe", + "type": "Province" + }, + { + "code": "CD-MO", + "name": "Mongala", + "type": "Province" + }, + { + "code": "CD-NK", + "name": "Nord-Kivu", + "type": "Province" + }, + { + "code": "CD-NU", + "name": "Nord-Ubangi", + "type": "Province" + }, + { + "code": "CD-SA", + "name": "Sankuru", + "type": "Province" + }, + { + "code": "CD-SK", + "name": "Sud-Kivu", + "type": "Province" + }, + { + "code": "CD-SU", + "name": "Sud-Ubangi", + "type": "Province" + }, + { + "code": "CD-TA", + "name": "Tanganyika", + "type": "Province" + }, + { + "code": "CD-TO", + "name": "Tshopo", + "type": "Province" + }, + { + "code": "CD-TU", + "name": "Tshuapa", + "type": "Province" + }, + { + "code": "CF-AC", + "name": "Ouham", + "type": "Prefecture" + }, + { + "code": "CF-BB", + "name": "Bamingui-Bangoran", + "type": "Prefecture" + }, + { + "code": "CF-BGF", + "name": "Bangui", + "type": "Commune" + }, + { + "code": "CF-BK", + "name": "Basse-Kotto", + "type": "Prefecture" + }, + { + "code": "CF-HK", + "name": "Haute-Kotto", + "type": "Prefecture" + }, + { + "code": "CF-HM", + "name": "Haut-Mbomou", + "type": "Prefecture" + }, + { + "code": "CF-HS", + "name": "Haute-Sangha / Mambéré-Kadéï", + "type": "Prefecture" + }, + { + "code": "CF-KB", + "name": "Gribingui", + "type": "Economic prefecture" + }, + { + "code": "CF-KG", + "name": "Kémo-Gribingui", + "type": "Prefecture" + }, + { + "code": "CF-LB", + "name": "Lobaye", + "type": "Prefecture" + }, + { + "code": "CF-MB", + "name": "Mbomou", + "type": "Prefecture" + }, + { + "code": "CF-MP", + "name": "Ombella-Mpoko", + "type": "Prefecture" + }, + { + "code": "CF-NM", + "name": "Nana-Mambéré", + "type": "Prefecture" + }, + { + "code": "CF-OP", + "name": "Ouham-Pendé", + "type": "Prefecture" + }, + { + "code": "CF-SE", + "name": "Sangha", + "type": "Economic prefecture" + }, + { + "code": "CF-UK", + "name": "Ouaka", + "type": "Prefecture" + }, + { + "code": "CF-VK", + "name": "Vakaga", + "type": "Prefecture" + }, + { + "code": "CG-11", + "name": "Bouenza", + "type": "Department" + }, + { + "code": "CG-12", + "name": "Pool", + "type": "Department" + }, + { + "code": "CG-13", + "name": "Sangha", + "type": "Department" + }, + { + "code": "CG-14", + "name": "Plateaux", + "type": "Department" + }, + { + "code": "CG-15", + "name": "Cuvette-Ouest", + "type": "Department" + }, + { + "code": "CG-16", + "name": "Pointe-Noire", + "type": "Department" + }, + { + "code": "CG-2", + "name": "Lékoumou", + "type": "Department" + }, + { + "code": "CG-5", + "name": "Kouilou", + "type": "Department" + }, + { + "code": "CG-7", + "name": "Likouala", + "type": "Department" + }, + { + "code": "CG-8", + "name": "Cuvette", + "type": "Department" + }, + { + "code": "CG-9", + "name": "Niari", + "type": "Department" + }, + { + "code": "CG-BZV", + "name": "Brazzaville", + "type": "Department" + }, + { + "code": "CH-AG", + "name": "Aargau", + "type": "Canton" + }, + { + "code": "CH-AI", + "name": "Appenzell Innerrhoden", + "type": "Canton" + }, + { + "code": "CH-AR", + "name": "Appenzell Ausserrhoden", + "type": "Canton" + }, + { + "code": "CH-BE", + "name": "Berne", + "type": "Canton" + }, + { + "code": "CH-BL", + "name": "Basel-Landschaft", + "type": "Canton" + }, + { + "code": "CH-BS", + "name": "Basel-Stadt", + "type": "Canton" + }, + { + "code": "CH-FR", + "name": "Fribourg", + "type": "Canton" + }, + { + "code": "CH-GE", + "name": "Genève", + "type": "Canton" + }, + { + "code": "CH-GL", + "name": "Glarus", + "type": "Canton" + }, + { + "code": "CH-GR", + "name": "Graubünden", + "type": "Canton" + }, + { + "code": "CH-JU", + "name": "Jura", + "type": "Canton" + }, + { + "code": "CH-LU", + "name": "Luzern", + "type": "Canton" + }, + { + "code": "CH-NE", + "name": "Neuchâtel", + "type": "Canton" + }, + { + "code": "CH-NW", + "name": "Nidwalden", + "type": "Canton" + }, + { + "code": "CH-OW", + "name": "Obwalden", + "type": "Canton" + }, + { + "code": "CH-SG", + "name": "Sankt Gallen", + "type": "Canton" + }, + { + "code": "CH-SH", + "name": "Schaffhausen", + "type": "Canton" + }, + { + "code": "CH-SO", + "name": "Solothurn", + "type": "Canton" + }, + { + "code": "CH-SZ", + "name": "Schwyz", + "type": "Canton" + }, + { + "code": "CH-TG", + "name": "Thurgau", + "type": "Canton" + }, + { + "code": "CH-TI", + "name": "Ticino", + "type": "Canton" + }, + { + "code": "CH-UR", + "name": "Uri", + "type": "Canton" + }, + { + "code": "CH-VD", + "name": "Vaud", + "type": "Canton" + }, + { + "code": "CH-VS", + "name": "Valais", + "type": "Canton" + }, + { + "code": "CH-ZG", + "name": "Zug", + "type": "Canton" + }, + { + "code": "CH-ZH", + "name": "Zürich", + "type": "Canton" + }, + { + "code": "CI-AB", + "name": "Abidjan", + "type": "Autonomous district" + }, + { + "code": "CI-BS", + "name": "Bas-Sassandra", + "type": "District" + }, + { + "code": "CI-CM", + "name": "Comoé", + "type": "District" + }, + { + "code": "CI-DN", + "name": "Denguélé", + "type": "District" + }, + { + "code": "CI-GD", + "name": "Gôh-Djiboua", + "type": "District" + }, + { + "code": "CI-LC", + "name": "Lacs", + "type": "District" + }, + { + "code": "CI-LG", + "name": "Lagunes", + "type": "District" + }, + { + "code": "CI-MG", + "name": "Montagnes", + "type": "District" + }, + { + "code": "CI-SM", + "name": "Sassandra-Marahoué", + "type": "District" + }, + { + "code": "CI-SV", + "name": "Savanes", + "type": "District" + }, + { + "code": "CI-VB", + "name": "Vallée du Bandama", + "type": "District" + }, + { + "code": "CI-WR", + "name": "Woroba", + "type": "District" + }, + { + "code": "CI-YM", + "name": "Yamoussoukro", + "type": "Autonomous district" + }, + { + "code": "CI-ZZ", + "name": "Zanzan", + "type": "District" + }, + { + "code": "CL-AI", + "name": "Aisén del General Carlos Ibañez del Campo", + "type": "Region" + }, + { + "code": "CL-AN", + "name": "Antofagasta", + "type": "Region" + }, + { + "code": "CL-AP", + "name": "Arica y Parinacota", + "type": "Region" + }, + { + "code": "CL-AR", + "name": "La Araucanía", + "type": "Region" + }, + { + "code": "CL-AT", + "name": "Atacama", + "type": "Region" + }, + { + "code": "CL-BI", + "name": "Biobío", + "type": "Region" + }, + { + "code": "CL-CO", + "name": "Coquimbo", + "type": "Region" + }, + { + "code": "CL-LI", + "name": "Libertador General Bernardo O'Higgins", + "type": "Region" + }, + { + "code": "CL-LL", + "name": "Los Lagos", + "type": "Region" + }, + { + "code": "CL-LR", + "name": "Los Ríos", + "type": "Region" + }, + { + "code": "CL-MA", + "name": "Magallanes", + "type": "Region" + }, + { + "code": "CL-ML", + "name": "Maule", + "type": "Region" + }, + { + "code": "CL-NB", + "name": "Ñuble", + "type": "Region" + }, + { + "code": "CL-RM", + "name": "Región Metropolitana de Santiago", + "type": "Region" + }, + { + "code": "CL-TA", + "name": "Tarapacá", + "type": "Region" + }, + { + "code": "CL-VS", + "name": "Valparaíso", + "type": "Region" + }, + { + "code": "CM-AD", + "name": "Adamaoua", + "type": "Region" + }, + { + "code": "CM-CE", + "name": "Centre", + "type": "Region" + }, + { + "code": "CM-EN", + "name": "Far North", + "type": "Region" + }, + { + "code": "CM-ES", + "name": "East", + "type": "Region" + }, + { + "code": "CM-LT", + "name": "Littoral", + "type": "Region" + }, + { + "code": "CM-NO", + "name": "North", + "type": "Region" + }, + { + "code": "CM-NW", + "name": "North-West", + "type": "Region" + }, + { + "code": "CM-OU", + "name": "West", + "type": "Region" + }, + { + "code": "CM-SU", + "name": "South", + "type": "Region" + }, + { + "code": "CM-SW", + "name": "South-West", + "type": "Region" + }, + { + "code": "CN-AH", + "name": "Anhui Sheng", + "type": "Province" + }, + { + "code": "CN-BJ", + "name": "Beijing Shi", + "type": "Municipality" + }, + { + "code": "CN-CQ", + "name": "Chongqing Shi", + "type": "Municipality" + }, + { + "code": "CN-FJ", + "name": "Fujian Sheng", + "type": "Province" + }, + { + "code": "CN-GD", + "name": "Guangdong Sheng", + "type": "Province" + }, + { + "code": "CN-GS", + "name": "Gansu Sheng", + "type": "Province" + }, + { + "code": "CN-GX", + "name": "Guangxi Zhuangzu Zizhiqu", + "type": "Autonomous region" + }, + { + "code": "CN-GZ", + "name": "Guizhou Sheng", + "type": "Province" + }, + { + "code": "CN-HA", + "name": "Henan Sheng", + "type": "Province" + }, + { + "code": "CN-HB", + "name": "Hubei Sheng", + "type": "Province" + }, + { + "code": "CN-HE", + "name": "Hebei Sheng", + "type": "Province" + }, + { + "code": "CN-HI", + "name": "Hainan Sheng", + "type": "Province" + }, + { + "code": "CN-HK", + "name": "Hong Kong SAR", + "type": "Special administrative region" + }, + { + "code": "CN-HL", + "name": "Heilongjiang Sheng", + "type": "Province" + }, + { + "code": "CN-HN", + "name": "Hunan Sheng", + "type": "Province" + }, + { + "code": "CN-JL", + "name": "Jilin Sheng", + "type": "Province" + }, + { + "code": "CN-JS", + "name": "Jiangsu Sheng", + "type": "Province" + }, + { + "code": "CN-JX", + "name": "Jiangxi Sheng", + "type": "Province" + }, + { + "code": "CN-LN", + "name": "Liaoning Sheng", + "type": "Province" + }, + { + "code": "CN-MO", + "name": "Macao SAR", + "type": "Special administrative region" + }, + { + "code": "CN-NM", + "name": "Nei Mongol Zizhiqu", + "type": "Autonomous region" + }, + { + "code": "CN-NX", + "name": "Ningxia Huizu Zizhiqu", + "type": "Autonomous region" + }, + { + "code": "CN-QH", + "name": "Qinghai Sheng", + "type": "Province" + }, + { + "code": "CN-SC", + "name": "Sichuan Sheng", + "type": "Province" + }, + { + "code": "CN-SD", + "name": "Shandong Sheng", + "type": "Province" + }, + { + "code": "CN-SH", + "name": "Shanghai Shi", + "type": "Municipality" + }, + { + "code": "CN-SN", + "name": "Shaanxi Sheng", + "type": "Province" + }, + { + "code": "CN-SX", + "name": "Shanxi Sheng", + "type": "Province" + }, + { + "code": "CN-TJ", + "name": "Tianjin Shi", + "type": "Municipality" + }, + { + "code": "CN-TW", + "name": "Taiwan Sheng", + "type": "Province" + }, + { + "code": "CN-XJ", + "name": "Xinjiang Uygur Zizhiqu", + "type": "Autonomous region" + }, + { + "code": "CN-XZ", + "name": "Xizang Zizhiqu", + "type": "Autonomous region" + }, + { + "code": "CN-YN", + "name": "Yunnan Sheng", + "type": "Province" + }, + { + "code": "CN-ZJ", + "name": "Zhejiang Sheng", + "type": "Province" + }, + { + "code": "CO-AMA", + "name": "Amazonas", + "type": "Department" + }, + { + "code": "CO-ANT", + "name": "Antioquia", + "type": "Department" + }, + { + "code": "CO-ARA", + "name": "Arauca", + "type": "Department" + }, + { + "code": "CO-ATL", + "name": "Atlántico", + "type": "Department" + }, + { + "code": "CO-BOL", + "name": "Bolívar", + "type": "Department" + }, + { + "code": "CO-BOY", + "name": "Boyacá", + "type": "Department" + }, + { + "code": "CO-CAL", + "name": "Caldas", + "type": "Department" + }, + { + "code": "CO-CAQ", + "name": "Caquetá", + "type": "Department" + }, + { + "code": "CO-CAS", + "name": "Casanare", + "type": "Department" + }, + { + "code": "CO-CAU", + "name": "Cauca", + "type": "Department" + }, + { + "code": "CO-CES", + "name": "Cesar", + "type": "Department" + }, + { + "code": "CO-CHO", + "name": "Chocó", + "type": "Department" + }, + { + "code": "CO-COR", + "name": "Córdoba", + "type": "Department" + }, + { + "code": "CO-CUN", + "name": "Cundinamarca", + "type": "Department" + }, + { + "code": "CO-DC", + "name": "Distrito Capital de Bogotá", + "type": "Capital district" + }, + { + "code": "CO-GUA", + "name": "Guainía", + "type": "Department" + }, + { + "code": "CO-GUV", + "name": "Guaviare", + "type": "Department" + }, + { + "code": "CO-HUI", + "name": "Huila", + "type": "Department" + }, + { + "code": "CO-LAG", + "name": "La Guajira", + "type": "Department" + }, + { + "code": "CO-MAG", + "name": "Magdalena", + "type": "Department" + }, + { + "code": "CO-MET", + "name": "Meta", + "type": "Department" + }, + { + "code": "CO-NAR", + "name": "Nariño", + "type": "Department" + }, + { + "code": "CO-NSA", + "name": "Norte de Santander", + "type": "Department" + }, + { + "code": "CO-PUT", + "name": "Putumayo", + "type": "Department" + }, + { + "code": "CO-QUI", + "name": "Quindío", + "type": "Department" + }, + { + "code": "CO-RIS", + "name": "Risaralda", + "type": "Department" + }, + { + "code": "CO-SAN", + "name": "Santander", + "type": "Department" + }, + { + "code": "CO-SAP", + "name": "San Andrés, Providencia y Santa Catalina", + "type": "Department" + }, + { + "code": "CO-SUC", + "name": "Sucre", + "type": "Department" + }, + { + "code": "CO-TOL", + "name": "Tolima", + "type": "Department" + }, + { + "code": "CO-VAC", + "name": "Valle del Cauca", + "type": "Department" + }, + { + "code": "CO-VAU", + "name": "Vaupés", + "type": "Department" + }, + { + "code": "CO-VID", + "name": "Vichada", + "type": "Department" + }, + { + "code": "CR-A", + "name": "Alajuela", + "type": "Province" + }, + { + "code": "CR-C", + "name": "Cartago", + "type": "Province" + }, + { + "code": "CR-G", + "name": "Guanacaste", + "type": "Province" + }, + { + "code": "CR-H", + "name": "Heredia", + "type": "Province" + }, + { + "code": "CR-L", + "name": "Limón", + "type": "Province" + }, + { + "code": "CR-P", + "name": "Puntarenas", + "type": "Province" + }, + { + "code": "CR-SJ", + "name": "San José", + "type": "Province" + }, + { + "code": "CU-01", + "name": "Pinar del Río", + "type": "Province" + }, + { + "code": "CU-03", + "name": "La Habana", + "type": "Province" + }, + { + "code": "CU-04", + "name": "Matanzas", + "type": "Province" + }, + { + "code": "CU-05", + "name": "Villa Clara", + "type": "Province" + }, + { + "code": "CU-06", + "name": "Cienfuegos", + "type": "Province" + }, + { + "code": "CU-07", + "name": "Sancti Spíritus", + "type": "Province" + }, + { + "code": "CU-08", + "name": "Ciego de Ávila", + "type": "Province" + }, + { + "code": "CU-09", + "name": "Camagüey", + "type": "Province" + }, + { + "code": "CU-10", + "name": "Las Tunas", + "type": "Province" + }, + { + "code": "CU-11", + "name": "Holguín", + "type": "Province" + }, + { + "code": "CU-12", + "name": "Granma", + "type": "Province" + }, + { + "code": "CU-13", + "name": "Santiago de Cuba", + "type": "Province" + }, + { + "code": "CU-14", + "name": "Guantánamo", + "type": "Province" + }, + { + "code": "CU-15", + "name": "Artemisa", + "type": "Province" + }, + { + "code": "CU-16", + "name": "Mayabeque", + "type": "Province" + }, + { + "code": "CU-99", + "name": "Isla de la Juventud", + "type": "Special municipality" + }, + { + "code": "CV-B", + "name": "Ilhas de Barlavento", + "type": "Geographical region" + }, + { + "code": "CV-BR", + "name": "Brava", + "parent": "CV-S", + "type": "Municipality" + }, + { + "code": "CV-BV", + "name": "Boa Vista", + "parent": "CV-B", + "type": "Municipality" + }, + { + "code": "CV-CA", + "name": "Santa Catarina", + "parent": "CV-S", + "type": "Municipality" + }, + { + "code": "CV-CF", + "name": "Santa Catarina do Fogo", + "parent": "CV-S", + "type": "Municipality" + }, + { + "code": "CV-CR", + "name": "Santa Cruz", + "parent": "CV-S", + "type": "Municipality" + }, + { + "code": "CV-MA", + "name": "Maio", + "parent": "CV-S", + "type": "Municipality" + }, + { + "code": "CV-MO", + "name": "Mosteiros", + "parent": "CV-S", + "type": "Municipality" + }, + { + "code": "CV-PA", + "name": "Paul", + "parent": "CV-B", + "type": "Municipality" + }, + { + "code": "CV-PN", + "name": "Porto Novo", + "parent": "CV-B", + "type": "Municipality" + }, + { + "code": "CV-PR", + "name": "Praia", + "parent": "CV-S", + "type": "Municipality" + }, + { + "code": "CV-RB", + "name": "Ribeira Brava", + "parent": "CV-B", + "type": "Municipality" + }, + { + "code": "CV-RG", + "name": "Ribeira Grande", + "parent": "CV-B", + "type": "Municipality" + }, + { + "code": "CV-RS", + "name": "Ribeira Grande de Santiago", + "parent": "CV-S", + "type": "Municipality" + }, + { + "code": "CV-S", + "name": "Ilhas de Sotavento", + "type": "Geographical region" + }, + { + "code": "CV-SD", + "name": "São Domingos", + "parent": "CV-S", + "type": "Municipality" + }, + { + "code": "CV-SF", + "name": "São Filipe", + "parent": "CV-S", + "type": "Municipality" + }, + { + "code": "CV-SL", + "name": "Sal", + "parent": "CV-B", + "type": "Municipality" + }, + { + "code": "CV-SM", + "name": "São Miguel", + "parent": "CV-S", + "type": "Municipality" + }, + { + "code": "CV-SO", + "name": "São Lourenço dos Órgãos", + "parent": "CV-S", + "type": "Municipality" + }, + { + "code": "CV-SS", + "name": "São Salvador do Mundo", + "parent": "CV-S", + "type": "Municipality" + }, + { + "code": "CV-SV", + "name": "São Vicente", + "parent": "CV-B", + "type": "Municipality" + }, + { + "code": "CV-TA", + "name": "Tarrafal", + "parent": "CV-S", + "type": "Municipality" + }, + { + "code": "CV-TS", + "name": "Tarrafal de São Nicolau", + "parent": "CV-B", + "type": "Municipality" + }, + { + "code": "CY-01", + "name": "Lefkosia", + "type": "District" + }, + { + "code": "CY-02", + "name": "Lemesos", + "type": "District" + }, + { + "code": "CY-03", + "name": "Larnaka", + "type": "District" + }, + { + "code": "CY-04", + "name": "Ammochostos", + "type": "District" + }, + { + "code": "CY-05", + "name": "Pafos", + "type": "District" + }, + { + "code": "CY-06", + "name": "Keryneia", + "type": "District" + }, + { + "code": "CZ-10", + "name": "Praha, Hlavní město", + "type": "Capital city" + }, + { + "code": "CZ-20", + "name": "Středočeský kraj", + "type": "Region" + }, + { + "code": "CZ-201", + "name": "Benešov", + "parent": "CZ-20", + "type": "District" + }, + { + "code": "CZ-202", + "name": "Beroun", + "parent": "CZ-20", + "type": "District" + }, + { + "code": "CZ-203", + "name": "Kladno", + "parent": "CZ-20", + "type": "District" + }, + { + "code": "CZ-204", + "name": "Kolín", + "parent": "CZ-20", + "type": "District" + }, + { + "code": "CZ-205", + "name": "Kutná Hora", + "parent": "CZ-20", + "type": "District" + }, + { + "code": "CZ-206", + "name": "Mělník", + "parent": "CZ-20", + "type": "District" + }, + { + "code": "CZ-207", + "name": "Mladá Boleslav", + "parent": "CZ-20", + "type": "District" + }, + { + "code": "CZ-208", + "name": "Nymburk", + "parent": "CZ-20", + "type": "District" + }, + { + "code": "CZ-209", + "name": "Praha-východ", + "parent": "CZ-20", + "type": "District" + }, + { + "code": "CZ-20A", + "name": "Praha-západ", + "parent": "CZ-20", + "type": "District" + }, + { + "code": "CZ-20B", + "name": "Příbram", + "parent": "CZ-20", + "type": "District" + }, + { + "code": "CZ-20C", + "name": "Rakovník", + "parent": "CZ-20", + "type": "District" + }, + { + "code": "CZ-31", + "name": "Jihočeský kraj", + "type": "Region" + }, + { + "code": "CZ-311", + "name": "České Budějovice", + "parent": "CZ-31", + "type": "District" + }, + { + "code": "CZ-312", + "name": "Český Krumlov", + "parent": "CZ-31", + "type": "District" + }, + { + "code": "CZ-313", + "name": "Jindřichův Hradec", + "parent": "CZ-31", + "type": "District" + }, + { + "code": "CZ-314", + "name": "Písek", + "parent": "CZ-31", + "type": "District" + }, + { + "code": "CZ-315", + "name": "Prachatice", + "parent": "CZ-31", + "type": "District" + }, + { + "code": "CZ-316", + "name": "Strakonice", + "parent": "CZ-31", + "type": "District" + }, + { + "code": "CZ-317", + "name": "Tábor", + "parent": "CZ-31", + "type": "District" + }, + { + "code": "CZ-32", + "name": "Plzeňský kraj", + "type": "Region" + }, + { + "code": "CZ-321", + "name": "Domažlice", + "parent": "CZ-32", + "type": "District" + }, + { + "code": "CZ-322", + "name": "Klatovy", + "parent": "CZ-32", + "type": "District" + }, + { + "code": "CZ-323", + "name": "Plzeň-město", + "parent": "CZ-32", + "type": "District" + }, + { + "code": "CZ-324", + "name": "Plzeň-jih", + "parent": "CZ-32", + "type": "District" + }, + { + "code": "CZ-325", + "name": "Plzeň-sever", + "parent": "CZ-32", + "type": "District" + }, + { + "code": "CZ-326", + "name": "Rokycany", + "parent": "CZ-32", + "type": "District" + }, + { + "code": "CZ-327", + "name": "Tachov", + "parent": "CZ-32", + "type": "District" + }, + { + "code": "CZ-41", + "name": "Karlovarský kraj", + "type": "Region" + }, + { + "code": "CZ-411", + "name": "Cheb", + "parent": "CZ-41", + "type": "District" + }, + { + "code": "CZ-412", + "name": "Karlovy Vary", + "parent": "CZ-41", + "type": "District" + }, + { + "code": "CZ-413", + "name": "Sokolov", + "parent": "CZ-41", + "type": "District" + }, + { + "code": "CZ-42", + "name": "Ústecký kraj", + "type": "Region" + }, + { + "code": "CZ-421", + "name": "Děčín", + "parent": "CZ-42", + "type": "District" + }, + { + "code": "CZ-422", + "name": "Chomutov", + "parent": "CZ-42", + "type": "District" + }, + { + "code": "CZ-423", + "name": "Litoměřice", + "parent": "CZ-42", + "type": "District" + }, + { + "code": "CZ-424", + "name": "Louny", + "parent": "CZ-42", + "type": "District" + }, + { + "code": "CZ-425", + "name": "Most", + "parent": "CZ-42", + "type": "District" + }, + { + "code": "CZ-426", + "name": "Teplice", + "parent": "CZ-42", + "type": "District" + }, + { + "code": "CZ-427", + "name": "Ústí nad Labem", + "parent": "CZ-42", + "type": "District" + }, + { + "code": "CZ-51", + "name": "Liberecký kraj", + "type": "Region" + }, + { + "code": "CZ-511", + "name": "Česká Lípa", + "parent": "CZ-51", + "type": "District" + }, + { + "code": "CZ-512", + "name": "Jablonec nad Nisou", + "parent": "CZ-51", + "type": "District" + }, + { + "code": "CZ-513", + "name": "Liberec", + "parent": "CZ-51", + "type": "District" + }, + { + "code": "CZ-514", + "name": "Semily", + "parent": "CZ-51", + "type": "District" + }, + { + "code": "CZ-52", + "name": "Královéhradecký kraj", + "type": "Region" + }, + { + "code": "CZ-521", + "name": "Hradec Králové", + "parent": "CZ-52", + "type": "District" + }, + { + "code": "CZ-522", + "name": "Jičín", + "parent": "CZ-52", + "type": "District" + }, + { + "code": "CZ-523", + "name": "Náchod", + "parent": "CZ-52", + "type": "District" + }, + { + "code": "CZ-524", + "name": "Rychnov nad Kněžnou", + "parent": "CZ-52", + "type": "District" + }, + { + "code": "CZ-525", + "name": "Trutnov", + "parent": "CZ-52", + "type": "District" + }, + { + "code": "CZ-53", + "name": "Pardubický kraj", + "type": "Region" + }, + { + "code": "CZ-531", + "name": "Chrudim", + "parent": "CZ-53", + "type": "District" + }, + { + "code": "CZ-532", + "name": "Pardubice", + "parent": "CZ-53", + "type": "District" + }, + { + "code": "CZ-533", + "name": "Svitavy", + "parent": "CZ-53", + "type": "District" + }, + { + "code": "CZ-534", + "name": "Ústí nad Orlicí", + "parent": "CZ-53", + "type": "District" + }, + { + "code": "CZ-63", + "name": "Kraj Vysočina", + "type": "Region" + }, + { + "code": "CZ-631", + "name": "Havlíčkův Brod", + "parent": "CZ-63", + "type": "District" + }, + { + "code": "CZ-632", + "name": "Jihlava", + "parent": "CZ-63", + "type": "District" + }, + { + "code": "CZ-633", + "name": "Pelhřimov", + "parent": "CZ-63", + "type": "District" + }, + { + "code": "CZ-634", + "name": "Třebíč", + "parent": "CZ-63", + "type": "District" + }, + { + "code": "CZ-635", + "name": "Žďár nad Sázavou", + "parent": "CZ-63", + "type": "District" + }, + { + "code": "CZ-64", + "name": "Jihomoravský kraj", + "type": "Region" + }, + { + "code": "CZ-641", + "name": "Blansko", + "parent": "CZ-64", + "type": "District" + }, + { + "code": "CZ-642", + "name": "Brno-město", + "parent": "CZ-64", + "type": "District" + }, + { + "code": "CZ-643", + "name": "Brno-venkov", + "parent": "CZ-64", + "type": "District" + }, + { + "code": "CZ-644", + "name": "Břeclav", + "parent": "CZ-64", + "type": "District" + }, + { + "code": "CZ-645", + "name": "Hodonín", + "parent": "CZ-64", + "type": "District" + }, + { + "code": "CZ-646", + "name": "Vyškov", + "parent": "CZ-64", + "type": "District" + }, + { + "code": "CZ-647", + "name": "Znojmo", + "parent": "CZ-64", + "type": "District" + }, + { + "code": "CZ-71", + "name": "Olomoucký kraj", + "type": "Region" + }, + { + "code": "CZ-711", + "name": "Jeseník", + "parent": "CZ-71", + "type": "District" + }, + { + "code": "CZ-712", + "name": "Olomouc", + "parent": "CZ-71", + "type": "District" + }, + { + "code": "CZ-713", + "name": "Prostějov", + "parent": "CZ-71", + "type": "District" + }, + { + "code": "CZ-714", + "name": "Přerov", + "parent": "CZ-71", + "type": "District" + }, + { + "code": "CZ-715", + "name": "Šumperk", + "parent": "CZ-71", + "type": "District" + }, + { + "code": "CZ-72", + "name": "Zlínský kraj", + "type": "Region" + }, + { + "code": "CZ-721", + "name": "Kroměříž", + "parent": "CZ-72", + "type": "District" + }, + { + "code": "CZ-722", + "name": "Uherské Hradiště", + "parent": "CZ-72", + "type": "District" + }, + { + "code": "CZ-723", + "name": "Vsetín", + "parent": "CZ-72", + "type": "District" + }, + { + "code": "CZ-724", + "name": "Zlín", + "parent": "CZ-72", + "type": "District" + }, + { + "code": "CZ-80", + "name": "Moravskoslezský kraj", + "type": "Region" + }, + { + "code": "CZ-801", + "name": "Bruntál", + "parent": "CZ-80", + "type": "District" + }, + { + "code": "CZ-802", + "name": "Frýdek-Místek", + "parent": "CZ-80", + "type": "District" + }, + { + "code": "CZ-803", + "name": "Karviná", + "parent": "CZ-80", + "type": "District" + }, + { + "code": "CZ-804", + "name": "Nový Jičín", + "parent": "CZ-80", + "type": "District" + }, + { + "code": "CZ-805", + "name": "Opava", + "parent": "CZ-80", + "type": "District" + }, + { + "code": "CZ-806", + "name": "Ostrava-město", + "parent": "CZ-80", + "type": "District" + }, + { + "code": "DE-BB", + "name": "Brandenburg", + "type": "Land" + }, + { + "code": "DE-BE", + "name": "Berlin", + "type": "Land" + }, + { + "code": "DE-BW", + "name": "Baden-Württemberg", + "type": "Land" + }, + { + "code": "DE-BY", + "name": "Bayern", + "type": "Land" + }, + { + "code": "DE-HB", + "name": "Bremen", + "type": "Land" + }, + { + "code": "DE-HE", + "name": "Hessen", + "type": "Land" + }, + { + "code": "DE-HH", + "name": "Hamburg", + "type": "Land" + }, + { + "code": "DE-MV", + "name": "Mecklenburg-Vorpommern", + "type": "Land" + }, + { + "code": "DE-NI", + "name": "Niedersachsen", + "type": "Land" + }, + { + "code": "DE-NW", + "name": "Nordrhein-Westfalen", + "type": "Land" + }, + { + "code": "DE-RP", + "name": "Rheinland-Pfalz", + "type": "Land" + }, + { + "code": "DE-SH", + "name": "Schleswig-Holstein", + "type": "Land" + }, + { + "code": "DE-SL", + "name": "Saarland", + "type": "Land" + }, + { + "code": "DE-SN", + "name": "Sachsen", + "type": "Land" + }, + { + "code": "DE-ST", + "name": "Sachsen-Anhalt", + "type": "Land" + }, + { + "code": "DE-TH", + "name": "Thüringen", + "type": "Land" + }, + { + "code": "DJ-AR", + "name": "Arta", + "type": "Region" + }, + { + "code": "DJ-AS", + "name": "Ali Sabieh", + "type": "Region" + }, + { + "code": "DJ-DI", + "name": "Dikhil", + "type": "Region" + }, + { + "code": "DJ-DJ", + "name": "Djibouti", + "type": "City" + }, + { + "code": "DJ-OB", + "name": "Obock", + "type": "Region" + }, + { + "code": "DJ-TA", + "name": "Tadjourah", + "type": "Region" + }, + { + "code": "DK-81", + "name": "Nordjylland", + "type": "Region" + }, + { + "code": "DK-82", + "name": "Midtjylland", + "type": "Region" + }, + { + "code": "DK-83", + "name": "Syddanmark", + "type": "Region" + }, + { + "code": "DK-84", + "name": "Hovedstaden", + "type": "Region" + }, + { + "code": "DK-85", + "name": "Sjælland", + "type": "Region" + }, + { + "code": "DM-02", + "name": "Saint Andrew", + "type": "Parish" + }, + { + "code": "DM-03", + "name": "Saint David", + "type": "Parish" + }, + { + "code": "DM-04", + "name": "Saint George", + "type": "Parish" + }, + { + "code": "DM-05", + "name": "Saint John", + "type": "Parish" + }, + { + "code": "DM-06", + "name": "Saint Joseph", + "type": "Parish" + }, + { + "code": "DM-07", + "name": "Saint Luke", + "type": "Parish" + }, + { + "code": "DM-08", + "name": "Saint Mark", + "type": "Parish" + }, + { + "code": "DM-09", + "name": "Saint Patrick", + "type": "Parish" + }, + { + "code": "DM-10", + "name": "Saint Paul", + "type": "Parish" + }, + { + "code": "DM-11", + "name": "Saint Peter", + "type": "Parish" + }, + { + "code": "DO-01", + "name": "Distrito Nacional (Santo Domingo)", + "parent": "DO-40", + "type": "District" + }, + { + "code": "DO-02", + "name": "Azua", + "parent": "DO-41", + "type": "Province" + }, + { + "code": "DO-03", + "name": "Baoruco", + "parent": "DO-38", + "type": "Province" + }, + { + "code": "DO-04", + "name": "Barahona", + "parent": "DO-38", + "type": "Province" + }, + { + "code": "DO-05", + "name": "Dajabón", + "parent": "DO-34", + "type": "Province" + }, + { + "code": "DO-06", + "name": "Duarte", + "parent": "DO-33", + "type": "Province" + }, + { + "code": "DO-07", + "name": "Elías Piña", + "parent": "DO-37", + "type": "Province" + }, + { + "code": "DO-08", + "name": "El Seibo", + "parent": "DO-42", + "type": "Province" + }, + { + "code": "DO-09", + "name": "Espaillat", + "parent": "DO-35", + "type": "Province" + }, + { + "code": "DO-10", + "name": "Independencia", + "parent": "DO-38", + "type": "Province" + }, + { + "code": "DO-11", + "name": "La Altagracia", + "parent": "DO-42", + "type": "Province" + }, + { + "code": "DO-12", + "name": "La Romana", + "parent": "DO-42", + "type": "Province" + }, + { + "code": "DO-13", + "name": "La Vega", + "parent": "DO-36", + "type": "Province" + }, + { + "code": "DO-14", + "name": "María Trinidad Sánchez", + "parent": "DO-33", + "type": "Province" + }, + { + "code": "DO-15", + "name": "Monte Cristi", + "parent": "DO-34", + "type": "Province" + }, + { + "code": "DO-16", + "name": "Pedernales", + "parent": "DO-38", + "type": "Province" + }, + { + "code": "DO-17", + "name": "Peravia", + "parent": "DO-41", + "type": "Province" + }, + { + "code": "DO-18", + "name": "Puerto Plata", + "parent": "DO-35", + "type": "Province" + }, + { + "code": "DO-19", + "name": "Hermanas Mirabal", + "parent": "DO-33", + "type": "Province" + }, + { + "code": "DO-20", + "name": "Samaná", + "parent": "DO-33", + "type": "Province" + }, + { + "code": "DO-21", + "name": "San Cristóbal", + "parent": "DO-41", + "type": "Province" + }, + { + "code": "DO-22", + "name": "San Juan", + "parent": "DO-37", + "type": "Province" + }, + { + "code": "DO-23", + "name": "San Pedro de Macorís", + "parent": "DO-39", + "type": "Province" + }, + { + "code": "DO-24", + "name": "Sánchez Ramírez", + "parent": "DO-36", + "type": "Province" + }, + { + "code": "DO-25", + "name": "Santiago", + "parent": "DO-35", + "type": "Province" + }, + { + "code": "DO-26", + "name": "Santiago Rodríguez", + "parent": "DO-34", + "type": "Province" + }, + { + "code": "DO-27", + "name": "Valverde", + "parent": "DO-34", + "type": "Province" + }, + { + "code": "DO-28", + "name": "Monseñor Nouel", + "parent": "DO-36", + "type": "Province" + }, + { + "code": "DO-29", + "name": "Monte Plata", + "parent": "DO-39", + "type": "Province" + }, + { + "code": "DO-30", + "name": "Hato Mayor", + "parent": "DO-39", + "type": "Province" + }, + { + "code": "DO-31", + "name": "San José de Ocoa", + "parent": "DO-41", + "type": "Province" + }, + { + "code": "DO-32", + "name": "Santo Domingo", + "parent": "DO-40", + "type": "Province" + }, + { + "code": "DO-33", + "name": "Cibao Nordeste", + "type": "Region" + }, + { + "code": "DO-34", + "name": "Cibao Noroeste", + "type": "Region" + }, + { + "code": "DO-35", + "name": "Cibao Norte", + "type": "Region" + }, + { + "code": "DO-36", + "name": "Cibao Sur", + "type": "Region" + }, + { + "code": "DO-37", + "name": "El Valle", + "type": "Region" + }, + { + "code": "DO-38", + "name": "Enriquillo", + "type": "Region" + }, + { + "code": "DO-39", + "name": "Higuamo", + "type": "Region" + }, + { + "code": "DO-40", + "name": "Ozama", + "type": "Region" + }, + { + "code": "DO-41", + "name": "Valdesia", + "type": "Region" + }, + { + "code": "DO-42", + "name": "Yuma", + "type": "Region" + }, + { + "code": "DZ-01", + "name": "Adrar", + "type": "Province" + }, + { + "code": "DZ-02", + "name": "Chlef", + "type": "Province" + }, + { + "code": "DZ-03", + "name": "Laghouat", + "type": "Province" + }, + { + "code": "DZ-04", + "name": "Oum el Bouaghi", + "type": "Province" + }, + { + "code": "DZ-05", + "name": "Batna", + "type": "Province" + }, + { + "code": "DZ-06", + "name": "Béjaïa", + "type": "Province" + }, + { + "code": "DZ-07", + "name": "Biskra", + "type": "Province" + }, + { + "code": "DZ-08", + "name": "Béchar", + "type": "Province" + }, + { + "code": "DZ-09", + "name": "Blida", + "type": "Province" + }, + { + "code": "DZ-10", + "name": "Bouira", + "type": "Province" + }, + { + "code": "DZ-11", + "name": "Tamanrasset", + "type": "Province" + }, + { + "code": "DZ-12", + "name": "Tébessa", + "type": "Province" + }, + { + "code": "DZ-13", + "name": "Tlemcen", + "type": "Province" + }, + { + "code": "DZ-14", + "name": "Tiaret", + "type": "Province" + }, + { + "code": "DZ-15", + "name": "Tizi Ouzou", + "type": "Province" + }, + { + "code": "DZ-16", + "name": "Alger", + "type": "Province" + }, + { + "code": "DZ-17", + "name": "Djelfa", + "type": "Province" + }, + { + "code": "DZ-18", + "name": "Jijel", + "type": "Province" + }, + { + "code": "DZ-19", + "name": "Sétif", + "type": "Province" + }, + { + "code": "DZ-20", + "name": "Saïda", + "type": "Province" + }, + { + "code": "DZ-21", + "name": "Skikda", + "type": "Province" + }, + { + "code": "DZ-22", + "name": "Sidi Bel Abbès", + "type": "Province" + }, + { + "code": "DZ-23", + "name": "Annaba", + "type": "Province" + }, + { + "code": "DZ-24", + "name": "Guelma", + "type": "Province" + }, + { + "code": "DZ-25", + "name": "Constantine", + "type": "Province" + }, + { + "code": "DZ-26", + "name": "Médéa", + "type": "Province" + }, + { + "code": "DZ-27", + "name": "Mostaganem", + "type": "Province" + }, + { + "code": "DZ-28", + "name": "M'sila", + "type": "Province" + }, + { + "code": "DZ-29", + "name": "Mascara", + "type": "Province" + }, + { + "code": "DZ-30", + "name": "Ouargla", + "type": "Province" + }, + { + "code": "DZ-31", + "name": "Oran", + "type": "Province" + }, + { + "code": "DZ-32", + "name": "El Bayadh", + "type": "Province" + }, + { + "code": "DZ-33", + "name": "Illizi", + "type": "Province" + }, + { + "code": "DZ-34", + "name": "Bordj Bou Arréridj", + "type": "Province" + }, + { + "code": "DZ-35", + "name": "Boumerdès", + "type": "Province" + }, + { + "code": "DZ-36", + "name": "El Tarf", + "type": "Province" + }, + { + "code": "DZ-37", + "name": "Tindouf", + "type": "Province" + }, + { + "code": "DZ-38", + "name": "Tissemsilt", + "type": "Province" + }, + { + "code": "DZ-39", + "name": "El Oued", + "type": "Province" + }, + { + "code": "DZ-40", + "name": "Khenchela", + "type": "Province" + }, + { + "code": "DZ-41", + "name": "Souk Ahras", + "type": "Province" + }, + { + "code": "DZ-42", + "name": "Tipaza", + "type": "Province" + }, + { + "code": "DZ-43", + "name": "Mila", + "type": "Province" + }, + { + "code": "DZ-44", + "name": "Aïn Defla", + "type": "Province" + }, + { + "code": "DZ-45", + "name": "Naama", + "type": "Province" + }, + { + "code": "DZ-46", + "name": "Aïn Témouchent", + "type": "Province" + }, + { + "code": "DZ-47", + "name": "Ghardaïa", + "type": "Province" + }, + { + "code": "DZ-48", + "name": "Relizane", + "type": "Province" + }, + { + "code": "DZ-49", + "name": "Timimoun", + "type": "Province" + }, + { + "code": "DZ-50", + "name": "Bordj Badji Mokhtar", + "type": "Province" + }, + { + "code": "DZ-51", + "name": "Ouled Djellal", + "type": "Province" + }, + { + "code": "DZ-52", + "name": "Béni Abbès", + "type": "Province" + }, + { + "code": "DZ-53", + "name": "In Salah", + "type": "Province" + }, + { + "code": "DZ-54", + "name": "In Guezzam", + "type": "Province" + }, + { + "code": "DZ-55", + "name": "Touggourt", + "type": "Province" + }, + { + "code": "DZ-56", + "name": "Djanet", + "type": "Province" + }, + { + "code": "DZ-57", + "name": "El Meghaier", + "type": "Province" + }, + { + "code": "DZ-58", + "name": "El Meniaa", + "type": "Province" + }, + { + "code": "EC-A", + "name": "Azuay", + "type": "Province" + }, + { + "code": "EC-B", + "name": "Bolívar", + "type": "Province" + }, + { + "code": "EC-C", + "name": "Carchi", + "type": "Province" + }, + { + "code": "EC-D", + "name": "Orellana", + "type": "Province" + }, + { + "code": "EC-E", + "name": "Esmeraldas", + "type": "Province" + }, + { + "code": "EC-F", + "name": "Cañar", + "type": "Province" + }, + { + "code": "EC-G", + "name": "Guayas", + "type": "Province" + }, + { + "code": "EC-H", + "name": "Chimborazo", + "type": "Province" + }, + { + "code": "EC-I", + "name": "Imbabura", + "type": "Province" + }, + { + "code": "EC-L", + "name": "Loja", + "type": "Province" + }, + { + "code": "EC-M", + "name": "Manabí", + "type": "Province" + }, + { + "code": "EC-N", + "name": "Napo", + "type": "Province" + }, + { + "code": "EC-O", + "name": "El Oro", + "type": "Province" + }, + { + "code": "EC-P", + "name": "Pichincha", + "type": "Province" + }, + { + "code": "EC-R", + "name": "Los Ríos", + "type": "Province" + }, + { + "code": "EC-S", + "name": "Morona Santiago", + "type": "Province" + }, + { + "code": "EC-SD", + "name": "Santo Domingo de los Tsáchilas", + "type": "Province" + }, + { + "code": "EC-SE", + "name": "Santa Elena", + "type": "Province" + }, + { + "code": "EC-T", + "name": "Tungurahua", + "type": "Province" + }, + { + "code": "EC-U", + "name": "Sucumbíos", + "type": "Province" + }, + { + "code": "EC-W", + "name": "Galápagos", + "type": "Province" + }, + { + "code": "EC-X", + "name": "Cotopaxi", + "type": "Province" + }, + { + "code": "EC-Y", + "name": "Pastaza", + "type": "Province" + }, + { + "code": "EC-Z", + "name": "Zamora Chinchipe", + "type": "Province" + }, + { + "code": "EE-130", + "name": "Alutaguse", + "parent": "EE-45", + "type": "Rural municipality" + }, + { + "code": "EE-141", + "name": "Anija", + "parent": "EE-37", + "type": "Rural municipality" + }, + { + "code": "EE-142", + "name": "Antsla", + "parent": "EE-87", + "type": "Rural municipality" + }, + { + "code": "EE-171", + "name": "Elva", + "parent": "EE-79", + "type": "Rural municipality" + }, + { + "code": "EE-184", + "name": "Haapsalu", + "parent": "EE-56", + "type": "Urban municipality" + }, + { + "code": "EE-191", + "name": "Haljala", + "parent": "EE-60", + "type": "Rural municipality" + }, + { + "code": "EE-198", + "name": "Harku", + "parent": "EE-37", + "type": "Rural municipality" + }, + { + "code": "EE-205", + "name": "Hiiumaa", + "parent": "EE-39", + "type": "Rural municipality" + }, + { + "code": "EE-214", + "name": "Häädemeeste", + "parent": "EE-68", + "type": "Rural municipality" + }, + { + "code": "EE-245", + "name": "Jõelähtme", + "parent": "EE-37", + "type": "Rural municipality" + }, + { + "code": "EE-247", + "name": "Jõgeva", + "parent": "EE-50", + "type": "Rural municipality" + }, + { + "code": "EE-251", + "name": "Jõhvi", + "parent": "EE-45", + "type": "Rural municipality" + }, + { + "code": "EE-255", + "name": "Järva", + "parent": "EE-52", + "type": "Rural municipality" + }, + { + "code": "EE-272", + "name": "Kadrina", + "parent": "EE-60", + "type": "Rural municipality" + }, + { + "code": "EE-283", + "name": "Kambja", + "parent": "EE-79", + "type": "Rural municipality" + }, + { + "code": "EE-284", + "name": "Kanepi", + "parent": "EE-64", + "type": "Rural municipality" + }, + { + "code": "EE-291", + "name": "Kastre", + "parent": "EE-79", + "type": "Rural municipality" + }, + { + "code": "EE-293", + "name": "Kehtna", + "parent": "EE-71", + "type": "Rural municipality" + }, + { + "code": "EE-296", + "name": "Keila", + "parent": "EE-37", + "type": "Urban municipality" + }, + { + "code": "EE-303", + "name": "Kihnu", + "parent": "EE-68", + "type": "Rural municipality" + }, + { + "code": "EE-305", + "name": "Kiili", + "parent": "EE-37", + "type": "Rural municipality" + }, + { + "code": "EE-317", + "name": "Kohila", + "parent": "EE-71", + "type": "Rural municipality" + }, + { + "code": "EE-321", + "name": "Kohtla-Järve", + "parent": "EE-45", + "type": "Urban municipality" + }, + { + "code": "EE-338", + "name": "Kose", + "parent": "EE-37", + "type": "Rural municipality" + }, + { + "code": "EE-353", + "name": "Kuusalu", + "parent": "EE-37", + "type": "Rural municipality" + }, + { + "code": "EE-37", + "name": "Harjumaa", + "type": "County" + }, + { + "code": "EE-39", + "name": "Hiiumaa", + "type": "County" + }, + { + "code": "EE-424", + "name": "Loksa", + "parent": "EE-37", + "type": "Urban municipality" + }, + { + "code": "EE-430", + "name": "Lääneranna", + "parent": "EE-68", + "type": "Rural municipality" + }, + { + "code": "EE-431", + "name": "Lääne-Harju", + "parent": "EE-37", + "type": "Rural municipality" + }, + { + "code": "EE-432", + "name": "Luunja", + "parent": "EE-79", + "type": "Rural municipality" + }, + { + "code": "EE-441", + "name": "Lääne-Nigula", + "parent": "EE-56", + "type": "Rural municipality" + }, + { + "code": "EE-442", + "name": "Lüganuse", + "parent": "EE-45", + "type": "Rural municipality" + }, + { + "code": "EE-446", + "name": "Maardu", + "parent": "EE-37", + "type": "Urban municipality" + }, + { + "code": "EE-45", + "name": "Ida-Virumaa", + "type": "County" + }, + { + "code": "EE-478", + "name": "Muhu", + "parent": "EE-74", + "type": "Rural municipality" + }, + { + "code": "EE-480", + "name": "Mulgi", + "parent": "EE-84", + "type": "Rural municipality" + }, + { + "code": "EE-486", + "name": "Mustvee", + "parent": "EE-50", + "type": "Rural municipality" + }, + { + "code": "EE-50", + "name": "Jõgevamaa", + "type": "County" + }, + { + "code": "EE-503", + "name": "Märjamaa", + "parent": "EE-71", + "type": "Rural municipality" + }, + { + "code": "EE-511", + "name": "Narva", + "parent": "EE-45", + "type": "Urban municipality" + }, + { + "code": "EE-514", + "name": "Narva-Jõesuu", + "parent": "EE-45", + "type": "Urban municipality" + }, + { + "code": "EE-52", + "name": "Järvamaa", + "type": "County" + }, + { + "code": "EE-528", + "name": "Nõo", + "parent": "EE-79", + "type": "Rural municipality" + }, + { + "code": "EE-557", + "name": "Otepää", + "parent": "EE-81", + "type": "Rural municipality" + }, + { + "code": "EE-56", + "name": "Läänemaa", + "type": "County" + }, + { + "code": "EE-567", + "name": "Paide", + "parent": "EE-52", + "type": "Urban municipality" + }, + { + "code": "EE-586", + "name": "Peipsiääre", + "parent": "EE-79", + "type": "Rural municipality" + }, + { + "code": "EE-60", + "name": "Lääne-Virumaa", + "type": "County" + }, + { + "code": "EE-615", + "name": "Põhja-Sakala", + "parent": "EE-84", + "type": "Rural municipality" + }, + { + "code": "EE-618", + "name": "Põltsamaa", + "parent": "EE-50", + "type": "Rural municipality" + }, + { + "code": "EE-622", + "name": "Põlva", + "parent": "EE-64", + "type": "Rural municipality" + }, + { + "code": "EE-624", + "name": "Pärnu", + "parent": "EE-68", + "type": "Urban municipality" + }, + { + "code": "EE-638", + "name": "Põhja-Pärnumaa", + "parent": "EE-68", + "type": "Rural municipality" + }, + { + "code": "EE-64", + "name": "Põlvamaa", + "type": "County" + }, + { + "code": "EE-651", + "name": "Raasiku", + "parent": "EE-37", + "type": "Rural municipality" + }, + { + "code": "EE-653", + "name": "Rae", + "parent": "EE-37", + "type": "Rural municipality" + }, + { + "code": "EE-661", + "name": "Rakvere", + "parent": "EE-60", + "type": "Rural municipality" + }, + { + "code": "EE-663", + "name": "Rakvere", + "parent": "EE-60", + "type": "Urban municipality" + }, + { + "code": "EE-668", + "name": "Rapla", + "parent": "EE-71", + "type": "Rural municipality" + }, + { + "code": "EE-68", + "name": "Pärnumaa", + "type": "County" + }, + { + "code": "EE-689", + "name": "Ruhnu", + "parent": "EE-74", + "type": "Rural municipality" + }, + { + "code": "EE-698", + "name": "Rõuge", + "parent": "EE-87", + "type": "Rural municipality" + }, + { + "code": "EE-708", + "name": "Räpina", + "parent": "EE-64", + "type": "Rural municipality" + }, + { + "code": "EE-71", + "name": "Raplamaa", + "type": "County" + }, + { + "code": "EE-712", + "name": "Saarde", + "parent": "EE-68", + "type": "Rural municipality" + }, + { + "code": "EE-714", + "name": "Saaremaa", + "parent": "EE-74", + "type": "Rural municipality" + }, + { + "code": "EE-719", + "name": "Saku", + "parent": "EE-37", + "type": "Rural municipality" + }, + { + "code": "EE-726", + "name": "Saue", + "parent": "EE-37", + "type": "Rural municipality" + }, + { + "code": "EE-732", + "name": "Setomaa", + "parent": "EE-87", + "type": "Rural municipality" + }, + { + "code": "EE-735", + "name": "Sillamäe", + "parent": "EE-45", + "type": "Urban municipality" + }, + { + "code": "EE-74", + "name": "Saaremaa", + "type": "County" + }, + { + "code": "EE-784", + "name": "Tallinn", + "parent": "EE-37", + "type": "Urban municipality" + }, + { + "code": "EE-79", + "name": "Tartumaa", + "type": "County" + }, + { + "code": "EE-792", + "name": "Tapa", + "parent": "EE-60", + "type": "Rural municipality" + }, + { + "code": "EE-793", + "name": "Tartu", + "parent": "EE-79", + "type": "Urban municipality" + }, + { + "code": "EE-796", + "name": "Tartu", + "parent": "EE-79", + "type": "Rural municipality" + }, + { + "code": "EE-803", + "name": "Toila", + "parent": "EE-45", + "type": "Rural municipality" + }, + { + "code": "EE-809", + "name": "Tori", + "parent": "EE-68", + "type": "Rural municipality" + }, + { + "code": "EE-81", + "name": "Valgamaa", + "type": "County" + }, + { + "code": "EE-824", + "name": "Tõrva", + "parent": "EE-81", + "type": "Rural municipality" + }, + { + "code": "EE-834", + "name": "Türi", + "parent": "EE-52", + "type": "Rural municipality" + }, + { + "code": "EE-84", + "name": "Viljandimaa", + "type": "County" + }, + { + "code": "EE-855", + "name": "Valga", + "parent": "EE-81", + "type": "Rural municipality" + }, + { + "code": "EE-87", + "name": "Võrumaa", + "type": "County" + }, + { + "code": "EE-890", + "name": "Viimsi", + "parent": "EE-37", + "type": "Rural municipality" + }, + { + "code": "EE-897", + "name": "Viljandi", + "parent": "EE-84", + "type": "Urban municipality" + }, + { + "code": "EE-899", + "name": "Viljandi", + "parent": "EE-84", + "type": "Rural municipality" + }, + { + "code": "EE-901", + "name": "Vinni", + "parent": "EE-60", + "type": "Rural municipality" + }, + { + "code": "EE-903", + "name": "Viru-Nigula", + "parent": "EE-60", + "type": "Rural municipality" + }, + { + "code": "EE-907", + "name": "Vormsi", + "parent": "EE-56", + "type": "Rural municipality" + }, + { + "code": "EE-917", + "name": "Võru", + "parent": "EE-87", + "type": "Rural municipality" + }, + { + "code": "EE-919", + "name": "Võru", + "parent": "EE-87", + "type": "Urban municipality" + }, + { + "code": "EE-928", + "name": "Väike-Maarja", + "parent": "EE-60", + "type": "Rural municipality" + }, + { + "code": "EG-ALX", + "name": "Al Iskandarīyah", + "type": "Governorate" + }, + { + "code": "EG-ASN", + "name": "Aswān", + "type": "Governorate" + }, + { + "code": "EG-AST", + "name": "Asyūţ", + "type": "Governorate" + }, + { + "code": "EG-BA", + "name": "Al Baḩr al Aḩmar", + "type": "Governorate" + }, + { + "code": "EG-BH", + "name": "Al Buḩayrah", + "type": "Governorate" + }, + { + "code": "EG-BNS", + "name": "Banī Suwayf", + "type": "Governorate" + }, + { + "code": "EG-C", + "name": "Al Qāhirah", + "type": "Governorate" + }, + { + "code": "EG-DK", + "name": "Ad Daqahlīyah", + "type": "Governorate" + }, + { + "code": "EG-DT", + "name": "Dumyāţ", + "type": "Governorate" + }, + { + "code": "EG-FYM", + "name": "Al Fayyūm", + "type": "Governorate" + }, + { + "code": "EG-GH", + "name": "Al Gharbīyah", + "type": "Governorate" + }, + { + "code": "EG-GZ", + "name": "Al Jīzah", + "type": "Governorate" + }, + { + "code": "EG-IS", + "name": "Al Ismā'īlīyah", + "type": "Governorate" + }, + { + "code": "EG-JS", + "name": "Janūb Sīnā'", + "type": "Governorate" + }, + { + "code": "EG-KB", + "name": "Al Qalyūbīyah", + "type": "Governorate" + }, + { + "code": "EG-KFS", + "name": "Kafr ash Shaykh", + "type": "Governorate" + }, + { + "code": "EG-KN", + "name": "Qinā", + "type": "Governorate" + }, + { + "code": "EG-LX", + "name": "Al Uqşur", + "type": "Governorate" + }, + { + "code": "EG-MN", + "name": "Al Minyā", + "type": "Governorate" + }, + { + "code": "EG-MNF", + "name": "Al Minūfīyah", + "type": "Governorate" + }, + { + "code": "EG-MT", + "name": "Maţrūḩ", + "type": "Governorate" + }, + { + "code": "EG-PTS", + "name": "Būr Sa‘īd", + "type": "Governorate" + }, + { + "code": "EG-SHG", + "name": "Sūhāj", + "type": "Governorate" + }, + { + "code": "EG-SHR", + "name": "Ash Sharqīyah", + "type": "Governorate" + }, + { + "code": "EG-SIN", + "name": "Shamāl Sīnā'", + "type": "Governorate" + }, + { + "code": "EG-SUZ", + "name": "As Suways", + "type": "Governorate" + }, + { + "code": "EG-WAD", + "name": "Al Wādī al Jadīd", + "type": "Governorate" + }, + { + "code": "ER-AN", + "name": "Ansabā", + "type": "Region" + }, + { + "code": "ER-DK", + "name": "Janūbī al Baḩrī al Aḩmar", + "type": "Region" + }, + { + "code": "ER-DU", + "name": "Al Janūbī", + "type": "Region" + }, + { + "code": "ER-GB", + "name": "Qāsh-Barkah", + "type": "Region" + }, + { + "code": "ER-MA", + "name": "Al Awsaţ", + "type": "Region" + }, + { + "code": "ER-SK", + "name": "Shimālī al Baḩrī al Aḩmar", + "type": "Region" + }, + { + "code": "ES-A", + "name": "Alicante", + "parent": "ES-VC", + "type": "Province" + }, + { + "code": "ES-AB", + "name": "Albacete", + "parent": "ES-CM", + "type": "Province" + }, + { + "code": "ES-AL", + "name": "Almería", + "parent": "ES-AN", + "type": "Province" + }, + { + "code": "ES-AN", + "name": "Andalucía", + "type": "Autonomous community" + }, + { + "code": "ES-AR", + "name": "Aragón", + "type": "Autonomous community" + }, + { + "code": "ES-AS", + "name": "Asturias, Principado de", + "type": "Autonomous community" + }, + { + "code": "ES-AV", + "name": "Ávila", + "parent": "ES-CL", + "type": "Province" + }, + { + "code": "ES-B", + "name": "Barcelona [Barcelona]", + "parent": "ES-CT", + "type": "Province" + }, + { + "code": "ES-BA", + "name": "Badajoz", + "parent": "ES-EX", + "type": "Province" + }, + { + "code": "ES-BI", + "name": "Bizkaia", + "parent": "ES-PV", + "type": "Province" + }, + { + "code": "ES-BU", + "name": "Burgos", + "parent": "ES-CL", + "type": "Province" + }, + { + "code": "ES-C", + "name": "A Coruña [La Coruña]", + "parent": "ES-GA", + "type": "Province" + }, + { + "code": "ES-CA", + "name": "Cádiz", + "parent": "ES-AN", + "type": "Province" + }, + { + "code": "ES-CB", + "name": "Cantabria", + "type": "Autonomous community" + }, + { + "code": "ES-CC", + "name": "Cáceres", + "parent": "ES-EX", + "type": "Province" + }, + { + "code": "ES-CE", + "name": "Ceuta", + "type": "Autonomous city in north africa" + }, + { + "code": "ES-CL", + "name": "Castilla y León", + "type": "Autonomous community" + }, + { + "code": "ES-CM", + "name": "Castilla-La Mancha", + "type": "Autonomous community" + }, + { + "code": "ES-CN", + "name": "Canarias", + "type": "Autonomous community" + }, + { + "code": "ES-CO", + "name": "Córdoba", + "parent": "ES-AN", + "type": "Province" + }, + { + "code": "ES-CR", + "name": "Ciudad Real", + "parent": "ES-CM", + "type": "Province" + }, + { + "code": "ES-CS", + "name": "Castellón", + "parent": "ES-VC", + "type": "Province" + }, + { + "code": "ES-CT", + "name": "Catalunya [Cataluña]", + "type": "Autonomous community" + }, + { + "code": "ES-CU", + "name": "Cuenca", + "parent": "ES-CM", + "type": "Province" + }, + { + "code": "ES-EX", + "name": "Extremadura", + "type": "Autonomous community" + }, + { + "code": "ES-GA", + "name": "Galicia [Galicia]", + "type": "Autonomous community" + }, + { + "code": "ES-GC", + "name": "Las Palmas", + "parent": "ES-CN", + "type": "Province" + }, + { + "code": "ES-GI", + "name": "Girona [Gerona]", + "parent": "ES-CT", + "type": "Province" + }, + { + "code": "ES-GR", + "name": "Granada", + "parent": "ES-AN", + "type": "Province" + }, + { + "code": "ES-GU", + "name": "Guadalajara", + "parent": "ES-CM", + "type": "Province" + }, + { + "code": "ES-H", + "name": "Huelva", + "parent": "ES-AN", + "type": "Province" + }, + { + "code": "ES-HU", + "name": "Huesca", + "parent": "ES-AR", + "type": "Province" + }, + { + "code": "ES-IB", + "name": "Illes Balears [Islas Baleares]", + "type": "Autonomous community" + }, + { + "code": "ES-J", + "name": "Jaén", + "parent": "ES-AN", + "type": "Province" + }, + { + "code": "ES-L", + "name": "Lleida [Lérida]", + "parent": "ES-CT", + "type": "Province" + }, + { + "code": "ES-LE", + "name": "León", + "parent": "ES-CL", + "type": "Province" + }, + { + "code": "ES-LO", + "name": "La Rioja", + "parent": "ES-RI", + "type": "Province" + }, + { + "code": "ES-LU", + "name": "Lugo [Lugo]", + "parent": "ES-GA", + "type": "Province" + }, + { + "code": "ES-M", + "name": "Madrid", + "parent": "ES-MD", + "type": "Province" + }, + { + "code": "ES-MA", + "name": "Málaga", + "parent": "ES-AN", + "type": "Province" + }, + { + "code": "ES-MC", + "name": "Murcia, Región de", + "type": "Autonomous community" + }, + { + "code": "ES-MD", + "name": "Madrid, Comunidad de", + "type": "Autonomous community" + }, + { + "code": "ES-ML", + "name": "Melilla", + "type": "Autonomous city in north africa" + }, + { + "code": "ES-MU", + "name": "Murcia", + "parent": "ES-MC", + "type": "Province" + }, + { + "code": "ES-NA", + "name": "Navarra", + "parent": "ES-NC", + "type": "Province" + }, + { + "code": "ES-NC", + "name": "Navarra, Comunidad Foral de", + "type": "Autonomous community" + }, + { + "code": "ES-O", + "name": "Asturias", + "parent": "ES-AS", + "type": "Province" + }, + { + "code": "ES-OR", + "name": "Ourense [Orense]", + "parent": "ES-GA", + "type": "Province" + }, + { + "code": "ES-P", + "name": "Palencia", + "parent": "ES-CL", + "type": "Province" + }, + { + "code": "ES-PM", + "name": "Illes Balears [Islas Baleares]", + "parent": "ES-IB", + "type": "Province" + }, + { + "code": "ES-PO", + "name": "Pontevedra [Pontevedra]", + "parent": "ES-GA", + "type": "Province" + }, + { + "code": "ES-PV", + "name": "País Vasco", + "type": "Autonomous community" + }, + { + "code": "ES-RI", + "name": "La Rioja", + "type": "Autonomous community" + }, + { + "code": "ES-S", + "name": "Cantabria", + "parent": "ES-CB", + "type": "Province" + }, + { + "code": "ES-SA", + "name": "Salamanca", + "parent": "ES-CL", + "type": "Province" + }, + { + "code": "ES-SE", + "name": "Sevilla", + "parent": "ES-AN", + "type": "Province" + }, + { + "code": "ES-SG", + "name": "Segovia", + "parent": "ES-CL", + "type": "Province" + }, + { + "code": "ES-SO", + "name": "Soria", + "parent": "ES-CL", + "type": "Province" + }, + { + "code": "ES-SS", + "name": "Gipuzkoa", + "parent": "ES-PV", + "type": "Province" + }, + { + "code": "ES-T", + "name": "Tarragona [Tarragona]", + "parent": "ES-CT", + "type": "Province" + }, + { + "code": "ES-TE", + "name": "Teruel", + "parent": "ES-AR", + "type": "Province" + }, + { + "code": "ES-TF", + "name": "Santa Cruz de Tenerife", + "parent": "ES-CN", + "type": "Province" + }, + { + "code": "ES-TO", + "name": "Toledo", + "parent": "ES-CM", + "type": "Province" + }, + { + "code": "ES-V", + "name": "Valencia", + "parent": "ES-VC", + "type": "Province" + }, + { + "code": "ES-VA", + "name": "Valladolid", + "parent": "ES-CL", + "type": "Province" + }, + { + "code": "ES-VC", + "name": "Valenciana, Comunidad", + "type": "Autonomous community" + }, + { + "code": "ES-VI", + "name": "Álava", + "parent": "ES-PV", + "type": "Province" + }, + { + "code": "ES-Z", + "name": "Zaragoza", + "parent": "ES-AR", + "type": "Province" + }, + { + "code": "ES-ZA", + "name": "Zamora", + "parent": "ES-CL", + "type": "Province" + }, + { + "code": "ET-AA", + "name": "Addis Ababa", + "type": "Administration" + }, + { + "code": "ET-AF", + "name": "Afar", + "type": "Regional state" + }, + { + "code": "ET-AM", + "name": "Amara", + "type": "Regional state" + }, + { + "code": "ET-BE", + "name": "Benshangul-Gumaz", + "type": "Regional state" + }, + { + "code": "ET-DD", + "name": "Dire Dawa", + "type": "Administration" + }, + { + "code": "ET-GA", + "name": "Gambela Peoples", + "type": "Regional state" + }, + { + "code": "ET-HA", + "name": "Harari People", + "type": "Regional state" + }, + { + "code": "ET-OR", + "name": "Oromia", + "type": "Regional state" + }, + { + "code": "ET-SI", + "name": "Sidama", + "type": "Regional state" + }, + { + "code": "ET-SN", + "name": "Southern Nations, Nationalities and Peoples", + "type": "Regional state" + }, + { + "code": "ET-SO", + "name": "Somali", + "type": "Regional state" + }, + { + "code": "ET-SW", + "name": "Southwest Ethiopia Peoples", + "type": "Regional state" + }, + { + "code": "ET-TI", + "name": "Tigrai", + "type": "Regional state" + }, + { + "code": "FI-01", + "name": "Landskapet Åland", + "type": "Region" + }, + { + "code": "FI-02", + "name": "Etelä-Karjala", + "type": "Region" + }, + { + "code": "FI-03", + "name": "Etelä-Pohjanmaa", + "type": "Region" + }, + { + "code": "FI-04", + "name": "Etelä-Savo", + "type": "Region" + }, + { + "code": "FI-05", + "name": "Kainuu", + "type": "Region" + }, + { + "code": "FI-06", + "name": "Kanta-Häme", + "type": "Region" + }, + { + "code": "FI-07", + "name": "Keski-Pohjanmaa", + "type": "Region" + }, + { + "code": "FI-08", + "name": "Keski-Suomi", + "type": "Region" + }, + { + "code": "FI-09", + "name": "Kymenlaakso", + "type": "Region" + }, + { + "code": "FI-10", + "name": "Lappi", + "type": "Region" + }, + { + "code": "FI-11", + "name": "Pirkanmaa", + "type": "Region" + }, + { + "code": "FI-12", + "name": "Pohjanmaa", + "type": "Region" + }, + { + "code": "FI-13", + "name": "Pohjois-Karjala", + "type": "Region" + }, + { + "code": "FI-14", + "name": "Pohjois-Pohjanmaa", + "type": "Region" + }, + { + "code": "FI-15", + "name": "Pohjois-Savo", + "type": "Region" + }, + { + "code": "FI-16", + "name": "Päijät-Häme", + "type": "Region" + }, + { + "code": "FI-17", + "name": "Satakunta", + "type": "Region" + }, + { + "code": "FI-18", + "name": "Uusimaa", + "type": "Region" + }, + { + "code": "FI-19", + "name": "Varsinais-Suomi", + "type": "Region" + }, + { + "code": "FJ-01", + "name": "Ba", + "parent": "FJ-W", + "type": "Province" + }, + { + "code": "FJ-02", + "name": "Bua", + "parent": "FJ-N", + "type": "Province" + }, + { + "code": "FJ-03", + "name": "Cakaudrove", + "parent": "FJ-N", + "type": "Province" + }, + { + "code": "FJ-04", + "name": "Kadavu", + "parent": "FJ-E", + "type": "Province" + }, + { + "code": "FJ-05", + "name": "Lau", + "parent": "FJ-E", + "type": "Province" + }, + { + "code": "FJ-06", + "name": "Lomaiviti", + "parent": "FJ-E", + "type": "Province" + }, + { + "code": "FJ-07", + "name": "Macuata", + "parent": "FJ-N", + "type": "Province" + }, + { + "code": "FJ-08", + "name": "Nadroga and Navosa", + "parent": "FJ-W", + "type": "Province" + }, + { + "code": "FJ-09", + "name": "Naitasiri", + "parent": "FJ-C", + "type": "Province" + }, + { + "code": "FJ-10", + "name": "Namosi", + "parent": "FJ-C", + "type": "Province" + }, + { + "code": "FJ-11", + "name": "Ra", + "parent": "FJ-W", + "type": "Province" + }, + { + "code": "FJ-12", + "name": "Rewa", + "parent": "FJ-C", + "type": "Province" + }, + { + "code": "FJ-13", + "name": "Serua", + "parent": "FJ-C", + "type": "Province" + }, + { + "code": "FJ-14", + "name": "Tailevu", + "parent": "FJ-C", + "type": "Province" + }, + { + "code": "FJ-C", + "name": "Central", + "type": "Division" + }, + { + "code": "FJ-E", + "name": "Eastern", + "type": "Division" + }, + { + "code": "FJ-N", + "name": "Northern", + "type": "Division" + }, + { + "code": "FJ-R", + "name": "Rotuma", + "type": "Dependency" + }, + { + "code": "FJ-W", + "name": "Western", + "type": "Division" + }, + { + "code": "FM-KSA", + "name": "Kosrae", + "type": "State" + }, + { + "code": "FM-PNI", + "name": "Pohnpei", + "type": "State" + }, + { + "code": "FM-TRK", + "name": "Chuuk", + "type": "State" + }, + { + "code": "FM-YAP", + "name": "Yap", + "type": "State" + }, + { + "code": "FR-01", + "name": "Ain", + "parent": "FR-ARA", + "type": "Metropolitan department" + }, + { + "code": "FR-02", + "name": "Aisne", + "parent": "FR-HDF", + "type": "Metropolitan department" + }, + { + "code": "FR-03", + "name": "Allier", + "parent": "FR-ARA", + "type": "Metropolitan department" + }, + { + "code": "FR-04", + "name": "Alpes-de-Haute-Provence", + "parent": "FR-PAC", + "type": "Metropolitan department" + }, + { + "code": "FR-05", + "name": "Hautes-Alpes", + "parent": "FR-PAC", + "type": "Metropolitan department" + }, + { + "code": "FR-06", + "name": "Alpes-Maritimes", + "parent": "FR-PAC", + "type": "Metropolitan department" + }, + { + "code": "FR-07", + "name": "Ardèche", + "parent": "FR-ARA", + "type": "Metropolitan department" + }, + { + "code": "FR-08", + "name": "Ardennes", + "parent": "FR-GES", + "type": "Metropolitan department" + }, + { + "code": "FR-09", + "name": "Ariège", + "parent": "FR-OCC", + "type": "Metropolitan department" + }, + { + "code": "FR-10", + "name": "Aube", + "parent": "FR-GES", + "type": "Metropolitan department" + }, + { + "code": "FR-11", + "name": "Aude", + "parent": "FR-OCC", + "type": "Metropolitan department" + }, + { + "code": "FR-12", + "name": "Aveyron", + "parent": "FR-OCC", + "type": "Metropolitan department" + }, + { + "code": "FR-13", + "name": "Bouches-du-Rhône", + "parent": "FR-PAC", + "type": "Metropolitan department" + }, + { + "code": "FR-14", + "name": "Calvados", + "parent": "FR-NOR", + "type": "Metropolitan department" + }, + { + "code": "FR-15", + "name": "Cantal", + "parent": "FR-ARA", + "type": "Metropolitan department" + }, + { + "code": "FR-16", + "name": "Charente", + "parent": "FR-NAQ", + "type": "Metropolitan department" + }, + { + "code": "FR-17", + "name": "Charente-Maritime", + "parent": "FR-NAQ", + "type": "Metropolitan department" + }, + { + "code": "FR-18", + "name": "Cher", + "parent": "FR-CVL", + "type": "Metropolitan department" + }, + { + "code": "FR-19", + "name": "Corrèze", + "parent": "FR-NAQ", + "type": "Metropolitan department" + }, + { + "code": "FR-20R", + "name": "Corse", + "type": "Metropolitan collectivity with special status" + }, + { + "code": "FR-21", + "name": "Côte-d'Or", + "parent": "FR-BFC", + "type": "Metropolitan department" + }, + { + "code": "FR-22", + "name": "Côtes-d'Armor", + "parent": "FR-BRE", + "type": "Metropolitan department" + }, + { + "code": "FR-23", + "name": "Creuse", + "parent": "FR-NAQ", + "type": "Metropolitan department" + }, + { + "code": "FR-24", + "name": "Dordogne", + "parent": "FR-NAQ", + "type": "Metropolitan department" + }, + { + "code": "FR-25", + "name": "Doubs", + "parent": "FR-BFC", + "type": "Metropolitan department" + }, + { + "code": "FR-26", + "name": "Drôme", + "parent": "FR-ARA", + "type": "Metropolitan department" + }, + { + "code": "FR-27", + "name": "Eure", + "parent": "FR-NOR", + "type": "Metropolitan department" + }, + { + "code": "FR-28", + "name": "Eure-et-Loir", + "parent": "FR-CVL", + "type": "Metropolitan department" + }, + { + "code": "FR-29", + "name": "Finistère", + "parent": "FR-BRE", + "type": "Metropolitan department" + }, + { + "code": "FR-2A", + "name": "Corse-du-Sud", + "parent": "FR-20R", + "type": "Metropolitan department" + }, + { + "code": "FR-2B", + "name": "Haute-Corse", + "parent": "FR-20R", + "type": "Metropolitan department" + }, + { + "code": "FR-30", + "name": "Gard", + "parent": "FR-OCC", + "type": "Metropolitan department" + }, + { + "code": "FR-31", + "name": "Haute-Garonne", + "parent": "FR-OCC", + "type": "Metropolitan department" + }, + { + "code": "FR-32", + "name": "Gers", + "parent": "FR-OCC", + "type": "Metropolitan department" + }, + { + "code": "FR-33", + "name": "Gironde", + "parent": "FR-NAQ", + "type": "Metropolitan department" + }, + { + "code": "FR-34", + "name": "Hérault", + "parent": "FR-OCC", + "type": "Metropolitan department" + }, + { + "code": "FR-35", + "name": "Ille-et-Vilaine", + "parent": "FR-BRE", + "type": "Metropolitan department" + }, + { + "code": "FR-36", + "name": "Indre", + "parent": "FR-CVL", + "type": "Metropolitan department" + }, + { + "code": "FR-37", + "name": "Indre-et-Loire", + "parent": "FR-CVL", + "type": "Metropolitan department" + }, + { + "code": "FR-38", + "name": "Isère", + "parent": "FR-ARA", + "type": "Metropolitan department" + }, + { + "code": "FR-39", + "name": "Jura", + "parent": "FR-BFC", + "type": "Metropolitan department" + }, + { + "code": "FR-40", + "name": "Landes", + "parent": "FR-NAQ", + "type": "Metropolitan department" + }, + { + "code": "FR-41", + "name": "Loir-et-Cher", + "parent": "FR-CVL", + "type": "Metropolitan department" + }, + { + "code": "FR-42", + "name": "Loire", + "parent": "FR-ARA", + "type": "Metropolitan department" + }, + { + "code": "FR-43", + "name": "Haute-Loire", + "parent": "FR-ARA", + "type": "Metropolitan department" + }, + { + "code": "FR-44", + "name": "Loire-Atlantique", + "parent": "FR-PDL", + "type": "Metropolitan department" + }, + { + "code": "FR-45", + "name": "Loiret", + "parent": "FR-CVL", + "type": "Metropolitan department" + }, + { + "code": "FR-46", + "name": "Lot", + "parent": "FR-OCC", + "type": "Metropolitan department" + }, + { + "code": "FR-47", + "name": "Lot-et-Garonne", + "parent": "FR-NAQ", + "type": "Metropolitan department" + }, + { + "code": "FR-48", + "name": "Lozère", + "parent": "FR-OCC", + "type": "Metropolitan department" + }, + { + "code": "FR-49", + "name": "Maine-et-Loire", + "parent": "FR-PDL", + "type": "Metropolitan department" + }, + { + "code": "FR-50", + "name": "Manche", + "parent": "FR-NOR", + "type": "Metropolitan department" + }, + { + "code": "FR-51", + "name": "Marne", + "parent": "FR-GES", + "type": "Metropolitan department" + }, + { + "code": "FR-52", + "name": "Haute-Marne", + "parent": "FR-GES", + "type": "Metropolitan department" + }, + { + "code": "FR-53", + "name": "Mayenne", + "parent": "FR-PDL", + "type": "Metropolitan department" + }, + { + "code": "FR-54", + "name": "Meurthe-et-Moselle", + "parent": "FR-GES", + "type": "Metropolitan department" + }, + { + "code": "FR-55", + "name": "Meuse", + "parent": "FR-GES", + "type": "Metropolitan department" + }, + { + "code": "FR-56", + "name": "Morbihan", + "parent": "FR-BRE", + "type": "Metropolitan department" + }, + { + "code": "FR-57", + "name": "Moselle", + "parent": "FR-GES", + "type": "Metropolitan department" + }, + { + "code": "FR-58", + "name": "Nièvre", + "parent": "FR-BFC", + "type": "Metropolitan department" + }, + { + "code": "FR-59", + "name": "Nord", + "parent": "FR-HDF", + "type": "Metropolitan department" + }, + { + "code": "FR-60", + "name": "Oise", + "parent": "FR-HDF", + "type": "Metropolitan department" + }, + { + "code": "FR-61", + "name": "Orne", + "parent": "FR-NOR", + "type": "Metropolitan department" + }, + { + "code": "FR-62", + "name": "Pas-de-Calais", + "parent": "FR-HDF", + "type": "Metropolitan department" + }, + { + "code": "FR-63", + "name": "Puy-de-Dôme", + "parent": "FR-ARA", + "type": "Metropolitan department" + }, + { + "code": "FR-64", + "name": "Pyrénées-Atlantiques", + "parent": "FR-NAQ", + "type": "Metropolitan department" + }, + { + "code": "FR-65", + "name": "Hautes-Pyrénées", + "parent": "FR-OCC", + "type": "Metropolitan department" + }, + { + "code": "FR-66", + "name": "Pyrénées-Orientales", + "parent": "FR-OCC", + "type": "Metropolitan department" + }, + { + "code": "FR-67", + "name": "Bas-Rhin", + "parent": "FR-6AE", + "type": "Metropolitan department" + }, + { + "code": "FR-68", + "name": "Haut-Rhin", + "parent": "FR-6AE", + "type": "Metropolitan department" + }, + { + "code": "FR-69", + "name": "Rhône", + "parent": "FR-ARA", + "type": "Metropolitan department" + }, + { + "code": "FR-69M", + "name": "Métropole de Lyon", + "parent": "FR-ARA", + "type": "Metropolitan collectivity with special status" + }, + { + "code": "FR-6AE", + "name": "Alsace", + "parent": "FR-GES", + "type": "European collectivity" + }, + { + "code": "FR-70", + "name": "Haute-Saône", + "parent": "FR-BFC", + "type": "Metropolitan department" + }, + { + "code": "FR-71", + "name": "Saône-et-Loire", + "parent": "FR-BFC", + "type": "Metropolitan department" + }, + { + "code": "FR-72", + "name": "Sarthe", + "parent": "FR-PDL", + "type": "Metropolitan department" + }, + { + "code": "FR-73", + "name": "Savoie", + "parent": "FR-ARA", + "type": "Metropolitan department" + }, + { + "code": "FR-74", + "name": "Haute-Savoie", + "parent": "FR-ARA", + "type": "Metropolitan department" + }, + { + "code": "FR-75C", + "name": "Paris", + "parent": "FR-IDF", + "type": "Metropolitan collectivity with special status" + }, + { + "code": "FR-76", + "name": "Seine-Maritime", + "parent": "FR-NOR", + "type": "Metropolitan department" + }, + { + "code": "FR-77", + "name": "Seine-et-Marne", + "parent": "FR-IDF", + "type": "Metropolitan department" + }, + { + "code": "FR-78", + "name": "Yvelines", + "parent": "FR-IDF", + "type": "Metropolitan department" + }, + { + "code": "FR-79", + "name": "Deux-Sèvres", + "parent": "FR-NAQ", + "type": "Metropolitan department" + }, + { + "code": "FR-80", + "name": "Somme", + "parent": "FR-HDF", + "type": "Metropolitan department" + }, + { + "code": "FR-81", + "name": "Tarn", + "parent": "FR-OCC", + "type": "Metropolitan department" + }, + { + "code": "FR-82", + "name": "Tarn-et-Garonne", + "parent": "FR-OCC", + "type": "Metropolitan department" + }, + { + "code": "FR-83", + "name": "Var", + "parent": "FR-PAC", + "type": "Metropolitan department" + }, + { + "code": "FR-84", + "name": "Vaucluse", + "parent": "FR-PAC", + "type": "Metropolitan department" + }, + { + "code": "FR-85", + "name": "Vendée", + "parent": "FR-PDL", + "type": "Metropolitan department" + }, + { + "code": "FR-86", + "name": "Vienne", + "parent": "FR-NAQ", + "type": "Metropolitan department" + }, + { + "code": "FR-87", + "name": "Haute-Vienne", + "parent": "FR-NAQ", + "type": "Metropolitan department" + }, + { + "code": "FR-88", + "name": "Vosges", + "parent": "FR-GES", + "type": "Metropolitan department" + }, + { + "code": "FR-89", + "name": "Yonne", + "parent": "FR-BFC", + "type": "Metropolitan department" + }, + { + "code": "FR-90", + "name": "Territoire de Belfort", + "parent": "FR-BFC", + "type": "Metropolitan department" + }, + { + "code": "FR-91", + "name": "Essonne", + "parent": "FR-IDF", + "type": "Metropolitan department" + }, + { + "code": "FR-92", + "name": "Hauts-de-Seine", + "parent": "FR-IDF", + "type": "Metropolitan department" + }, + { + "code": "FR-93", + "name": "Seine-Saint-Denis", + "parent": "FR-IDF", + "type": "Metropolitan department" + }, + { + "code": "FR-94", + "name": "Val-de-Marne", + "parent": "FR-IDF", + "type": "Metropolitan department" + }, + { + "code": "FR-95", + "name": "Val-d'Oise", + "parent": "FR-IDF", + "type": "Metropolitan department" + }, + { + "code": "FR-971", + "name": "Guadeloupe", + "type": "Overseas departmental collectivity" + }, + { + "code": "FR-972", + "name": "Martinique", + "type": "Overseas unique territorial collectivity" + }, + { + "code": "FR-973", + "name": "Guyane (française)", + "type": "Overseas unique territorial collectivity" + }, + { + "code": "FR-974", + "name": "La Réunion", + "type": "Overseas departmental collectivity" + }, + { + "code": "FR-976", + "name": "Mayotte", + "type": "Overseas departmental collectivity" + }, + { + "code": "FR-ARA", + "name": "Auvergne-Rhône-Alpes", + "type": "Metropolitan region" + }, + { + "code": "FR-BFC", + "name": "Bourgogne-Franche-Comté", + "type": "Metropolitan region" + }, + { + "code": "FR-BL", + "name": "Saint-Barthélemy", + "type": "Overseas collectivity" + }, + { + "code": "FR-BRE", + "name": "Bretagne", + "type": "Metropolitan region" + }, + { + "code": "FR-CP", + "name": "Clipperton", + "type": "Dependency" + }, + { + "code": "FR-CVL", + "name": "Centre-Val de Loire", + "type": "Metropolitan region" + }, + { + "code": "FR-GES", + "name": "Grand-Est", + "type": "Metropolitan region" + }, + { + "code": "FR-HDF", + "name": "Hauts-de-France", + "type": "Metropolitan region" + }, + { + "code": "FR-IDF", + "name": "Île-de-France", + "type": "Metropolitan region" + }, + { + "code": "FR-MF", + "name": "Saint-Martin", + "type": "Overseas collectivity" + }, + { + "code": "FR-NAQ", + "name": "Nouvelle-Aquitaine", + "type": "Metropolitan region" + }, + { + "code": "FR-NC", + "name": "Nouvelle-Calédonie", + "type": "Overseas collectivity with special status" + }, + { + "code": "FR-NOR", + "name": "Normandie", + "type": "Metropolitan region" + }, + { + "code": "FR-OCC", + "name": "Occitanie", + "type": "Metropolitan region" + }, + { + "code": "FR-PAC", + "name": "Provence-Alpes-Côte-d’Azur", + "type": "Metropolitan region" + }, + { + "code": "FR-PDL", + "name": "Pays-de-la-Loire", + "type": "Metropolitan region" + }, + { + "code": "FR-PF", + "name": "Polynésie française", + "type": "Overseas collectivity" + }, + { + "code": "FR-PM", + "name": "Saint-Pierre-et-Miquelon", + "type": "Overseas collectivity" + }, + { + "code": "FR-TF", + "name": "Terres australes françaises", + "type": "Overseas territory" + }, + { + "code": "FR-WF", + "name": "Wallis-et-Futuna", + "type": "Overseas collectivity" + }, + { + "code": "GA-1", + "name": "Estuaire", + "type": "Province" + }, + { + "code": "GA-2", + "name": "Haut-Ogooué", + "type": "Province" + }, + { + "code": "GA-3", + "name": "Moyen-Ogooué", + "type": "Province" + }, + { + "code": "GA-4", + "name": "Ngounié", + "type": "Province" + }, + { + "code": "GA-5", + "name": "Nyanga", + "type": "Province" + }, + { + "code": "GA-6", + "name": "Ogooué-Ivindo", + "type": "Province" + }, + { + "code": "GA-7", + "name": "Ogooué-Lolo", + "type": "Province" + }, + { + "code": "GA-8", + "name": "Ogooué-Maritime", + "type": "Province" + }, + { + "code": "GA-9", + "name": "Woleu-Ntem", + "type": "Province" + }, + { + "code": "GB-ABC", + "name": "Armagh City, Banbridge and Craigavon", + "parent": "GB-NIR", + "type": "District" + }, + { + "code": "GB-ABD", + "name": "Aberdeenshire", + "parent": "GB-SCT", + "type": "Council area" + }, + { + "code": "GB-ABE", + "name": "Aberdeen City", + "parent": "GB-SCT", + "type": "Council area" + }, + { + "code": "GB-AGB", + "name": "Argyll and Bute", + "parent": "GB-SCT", + "type": "Council area" + }, + { + "code": "GB-AGY", + "name": "Isle of Anglesey [Sir Ynys Môn GB-YNM]", + "parent": "GB-WLS", + "type": "Unitary authority" + }, + { + "code": "GB-AND", + "name": "Ards and North Down", + "parent": "GB-NIR", + "type": "District" + }, + { + "code": "GB-ANN", + "name": "Antrim and Newtownabbey", + "parent": "GB-NIR", + "type": "District" + }, + { + "code": "GB-ANS", + "name": "Angus", + "parent": "GB-SCT", + "type": "Council area" + }, + { + "code": "GB-BAS", + "name": "Bath and North East Somerset", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-BBD", + "name": "Blackburn with Darwen", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-BCP", + "name": "Bournemouth, Christchurch and Poole", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-BDF", + "name": "Bedford", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-BDG", + "name": "Barking and Dagenham", + "parent": "GB-ENG", + "type": "London borough" + }, + { + "code": "GB-BEN", + "name": "Brent", + "parent": "GB-ENG", + "type": "London borough" + }, + { + "code": "GB-BEX", + "name": "Bexley", + "parent": "GB-ENG", + "type": "London borough" + }, + { + "code": "GB-BFS", + "name": "Belfast City", + "parent": "GB-NIR", + "type": "District" + }, + { + "code": "GB-BGE", + "name": "Bridgend [Pen-y-bont ar Ogwr GB-POG]", + "parent": "GB-WLS", + "type": "Unitary authority" + }, + { + "code": "GB-BGW", + "name": "Blaenau Gwent", + "parent": "GB-WLS", + "type": "Unitary authority" + }, + { + "code": "GB-BIR", + "name": "Birmingham", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-BKM", + "name": "Buckinghamshire", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-BNE", + "name": "Barnet", + "parent": "GB-ENG", + "type": "London borough" + }, + { + "code": "GB-BNH", + "name": "Brighton and Hove", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-BNS", + "name": "Barnsley", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-BOL", + "name": "Bolton", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-BPL", + "name": "Blackpool", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-BRC", + "name": "Bracknell Forest", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-BRD", + "name": "Bradford", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-BRY", + "name": "Bromley", + "parent": "GB-ENG", + "type": "London borough" + }, + { + "code": "GB-BST", + "name": "Bristol, City of", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-BUR", + "name": "Bury", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-CAM", + "name": "Cambridgeshire", + "parent": "GB-ENG", + "type": "Two-tier county" + }, + { + "code": "GB-CAY", + "name": "Caerphilly [Caerffili GB-CAF]", + "parent": "GB-WLS", + "type": "Unitary authority" + }, + { + "code": "GB-CBF", + "name": "Central Bedfordshire", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-CCG", + "name": "Causeway Coast and Glens", + "parent": "GB-NIR", + "type": "District" + }, + { + "code": "GB-CGN", + "name": "Ceredigion [Sir Ceredigion]", + "parent": "GB-WLS", + "type": "Unitary authority" + }, + { + "code": "GB-CHE", + "name": "Cheshire East", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-CHW", + "name": "Cheshire West and Chester", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-CLD", + "name": "Calderdale", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-CLK", + "name": "Clackmannanshire", + "parent": "GB-SCT", + "type": "Council area" + }, + { + "code": "GB-CMA", + "name": "Cumbria", + "parent": "GB-ENG", + "type": "Two-tier county" + }, + { + "code": "GB-CMD", + "name": "Camden", + "parent": "GB-ENG", + "type": "London borough" + }, + { + "code": "GB-CMN", + "name": "Carmarthenshire [Sir Gaerfyrddin GB-GFY]", + "parent": "GB-WLS", + "type": "Unitary authority" + }, + { + "code": "GB-CON", + "name": "Cornwall", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-COV", + "name": "Coventry", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-CRF", + "name": "Cardiff [Caerdydd GB-CRD]", + "parent": "GB-WLS", + "type": "Unitary authority" + }, + { + "code": "GB-CRY", + "name": "Croydon", + "parent": "GB-ENG", + "type": "London borough" + }, + { + "code": "GB-CWY", + "name": "Conwy", + "parent": "GB-WLS", + "type": "Unitary authority" + }, + { + "code": "GB-DAL", + "name": "Darlington", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-DBY", + "name": "Derbyshire", + "parent": "GB-ENG", + "type": "Two-tier county" + }, + { + "code": "GB-DEN", + "name": "Denbighshire [Sir Ddinbych GB-DDB]", + "parent": "GB-WLS", + "type": "Unitary authority" + }, + { + "code": "GB-DER", + "name": "Derby", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-DEV", + "name": "Devon", + "parent": "GB-ENG", + "type": "Two-tier county" + }, + { + "code": "GB-DGY", + "name": "Dumfries and Galloway", + "parent": "GB-SCT", + "type": "Council area" + }, + { + "code": "GB-DNC", + "name": "Doncaster", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-DND", + "name": "Dundee City", + "parent": "GB-SCT", + "type": "Council area" + }, + { + "code": "GB-DOR", + "name": "Dorset", + "parent": "GB-ENG", + "type": "Two-tier county" + }, + { + "code": "GB-DRS", + "name": "Derry and Strabane", + "parent": "GB-NIR", + "type": "District" + }, + { + "code": "GB-DUD", + "name": "Dudley", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-DUR", + "name": "Durham, County", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-EAL", + "name": "Ealing", + "parent": "GB-ENG", + "type": "London borough" + }, + { + "code": "GB-EAY", + "name": "East Ayrshire", + "parent": "GB-SCT", + "type": "Council area" + }, + { + "code": "GB-EDH", + "name": "Edinburgh, City of", + "parent": "GB-SCT", + "type": "Council area" + }, + { + "code": "GB-EDU", + "name": "East Dunbartonshire", + "parent": "GB-SCT", + "type": "Council area" + }, + { + "code": "GB-ELN", + "name": "East Lothian", + "parent": "GB-SCT", + "type": "Council area" + }, + { + "code": "GB-ELS", + "name": "Eilean Siar", + "parent": "GB-SCT", + "type": "Council area" + }, + { + "code": "GB-ENF", + "name": "Enfield", + "parent": "GB-ENG", + "type": "London borough" + }, + { + "code": "GB-ENG", + "name": "England", + "type": "Country" + }, + { + "code": "GB-ERW", + "name": "East Renfrewshire", + "parent": "GB-SCT", + "type": "Council area" + }, + { + "code": "GB-ERY", + "name": "East Riding of Yorkshire", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-ESS", + "name": "Essex", + "parent": "GB-ENG", + "type": "Two-tier county" + }, + { + "code": "GB-ESX", + "name": "East Sussex", + "parent": "GB-ENG", + "type": "Two-tier county" + }, + { + "code": "GB-FAL", + "name": "Falkirk", + "parent": "GB-SCT", + "type": "Council area" + }, + { + "code": "GB-FIF", + "name": "Fife", + "parent": "GB-SCT", + "type": "Council area" + }, + { + "code": "GB-FLN", + "name": "Flintshire [Sir y Fflint GB-FFL]", + "parent": "GB-WLS", + "type": "Unitary authority" + }, + { + "code": "GB-FMO", + "name": "Fermanagh and Omagh", + "parent": "GB-NIR", + "type": "District" + }, + { + "code": "GB-GAT", + "name": "Gateshead", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-GLG", + "name": "Glasgow City", + "parent": "GB-SCT", + "type": "Council area" + }, + { + "code": "GB-GLS", + "name": "Gloucestershire", + "parent": "GB-ENG", + "type": "Two-tier county" + }, + { + "code": "GB-GRE", + "name": "Greenwich", + "parent": "GB-ENG", + "type": "London borough" + }, + { + "code": "GB-GWN", + "name": "Gwynedd", + "parent": "GB-WLS", + "type": "Unitary authority" + }, + { + "code": "GB-HAL", + "name": "Halton", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-HAM", + "name": "Hampshire", + "parent": "GB-ENG", + "type": "Two-tier county" + }, + { + "code": "GB-HAV", + "name": "Havering", + "parent": "GB-ENG", + "type": "London borough" + }, + { + "code": "GB-HCK", + "name": "Hackney", + "parent": "GB-ENG", + "type": "London borough" + }, + { + "code": "GB-HEF", + "name": "Herefordshire", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-HIL", + "name": "Hillingdon", + "parent": "GB-ENG", + "type": "London borough" + }, + { + "code": "GB-HLD", + "name": "Highland", + "parent": "GB-SCT", + "type": "Council area" + }, + { + "code": "GB-HMF", + "name": "Hammersmith and Fulham", + "parent": "GB-ENG", + "type": "London borough" + }, + { + "code": "GB-HNS", + "name": "Hounslow", + "parent": "GB-ENG", + "type": "London borough" + }, + { + "code": "GB-HPL", + "name": "Hartlepool", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-HRT", + "name": "Hertfordshire", + "parent": "GB-ENG", + "type": "Two-tier county" + }, + { + "code": "GB-HRW", + "name": "Harrow", + "parent": "GB-ENG", + "type": "London borough" + }, + { + "code": "GB-HRY", + "name": "Haringey", + "parent": "GB-ENG", + "type": "London borough" + }, + { + "code": "GB-IOS", + "name": "Isles of Scilly", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-IOW", + "name": "Isle of Wight", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-ISL", + "name": "Islington", + "parent": "GB-ENG", + "type": "London borough" + }, + { + "code": "GB-IVC", + "name": "Inverclyde", + "parent": "GB-SCT", + "type": "Council area" + }, + { + "code": "GB-KEC", + "name": "Kensington and Chelsea", + "parent": "GB-ENG", + "type": "London borough" + }, + { + "code": "GB-KEN", + "name": "Kent", + "parent": "GB-ENG", + "type": "Two-tier county" + }, + { + "code": "GB-KHL", + "name": "Kingston upon Hull", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-KIR", + "name": "Kirklees", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-KTT", + "name": "Kingston upon Thames", + "parent": "GB-ENG", + "type": "London borough" + }, + { + "code": "GB-KWL", + "name": "Knowsley", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-LAN", + "name": "Lancashire", + "parent": "GB-ENG", + "type": "Two-tier county" + }, + { + "code": "GB-LBC", + "name": "Lisburn and Castlereagh", + "parent": "GB-NIR", + "type": "District" + }, + { + "code": "GB-LBH", + "name": "Lambeth", + "parent": "GB-ENG", + "type": "London borough" + }, + { + "code": "GB-LCE", + "name": "Leicester", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-LDS", + "name": "Leeds", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-LEC", + "name": "Leicestershire", + "parent": "GB-ENG", + "type": "Two-tier county" + }, + { + "code": "GB-LEW", + "name": "Lewisham", + "parent": "GB-ENG", + "type": "London borough" + }, + { + "code": "GB-LIN", + "name": "Lincolnshire", + "parent": "GB-ENG", + "type": "Two-tier county" + }, + { + "code": "GB-LIV", + "name": "Liverpool", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-LND", + "name": "London, City of", + "parent": "GB-ENG", + "type": "City corporation" + }, + { + "code": "GB-LUT", + "name": "Luton", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-MAN", + "name": "Manchester", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-MDB", + "name": "Middlesbrough", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-MDW", + "name": "Medway", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-MEA", + "name": "Mid and East Antrim", + "parent": "GB-NIR", + "type": "District" + }, + { + "code": "GB-MIK", + "name": "Milton Keynes", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-MLN", + "name": "Midlothian", + "parent": "GB-SCT", + "type": "Council area" + }, + { + "code": "GB-MON", + "name": "Monmouthshire [Sir Fynwy GB-FYN]", + "parent": "GB-WLS", + "type": "Unitary authority" + }, + { + "code": "GB-MRT", + "name": "Merton", + "parent": "GB-ENG", + "type": "London borough" + }, + { + "code": "GB-MRY", + "name": "Moray", + "parent": "GB-SCT", + "type": "Council area" + }, + { + "code": "GB-MTY", + "name": "Merthyr Tydfil [Merthyr Tudful GB-MTU]", + "parent": "GB-WLS", + "type": "Unitary authority" + }, + { + "code": "GB-MUL", + "name": "Mid-Ulster", + "parent": "GB-NIR", + "type": "District" + }, + { + "code": "GB-NAY", + "name": "North Ayrshire", + "parent": "GB-SCT", + "type": "Council area" + }, + { + "code": "GB-NBL", + "name": "Northumberland", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-NEL", + "name": "North East Lincolnshire", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-NET", + "name": "Newcastle upon Tyne", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-NFK", + "name": "Norfolk", + "parent": "GB-ENG", + "type": "Two-tier county" + }, + { + "code": "GB-NGM", + "name": "Nottingham", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-NIR", + "name": "Northern Ireland", + "type": "Province" + }, + { + "code": "GB-NLK", + "name": "North Lanarkshire", + "parent": "GB-SCT", + "type": "Council area" + }, + { + "code": "GB-NLN", + "name": "North Lincolnshire", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-NMD", + "name": "Newry, Mourne and Down", + "parent": "GB-NIR", + "type": "District" + }, + { + "code": "GB-NNH", + "name": "North Northamptonshire", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-NSM", + "name": "North Somerset", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-NTL", + "name": "Neath Port Talbot [Castell-nedd Port Talbot GB-CTL]", + "parent": "GB-WLS", + "type": "Unitary authority" + }, + { + "code": "GB-NTT", + "name": "Nottinghamshire", + "parent": "GB-ENG", + "type": "Two-tier county" + }, + { + "code": "GB-NTY", + "name": "North Tyneside", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-NWM", + "name": "Newham", + "parent": "GB-ENG", + "type": "London borough" + }, + { + "code": "GB-NWP", + "name": "Newport [Casnewydd GB-CNW]", + "parent": "GB-WLS", + "type": "Unitary authority" + }, + { + "code": "GB-NYK", + "name": "North Yorkshire", + "parent": "GB-ENG", + "type": "Two-tier county" + }, + { + "code": "GB-OLD", + "name": "Oldham", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-ORK", + "name": "Orkney Islands", + "parent": "GB-SCT", + "type": "Council area" + }, + { + "code": "GB-OXF", + "name": "Oxfordshire", + "parent": "GB-ENG", + "type": "Two-tier county" + }, + { + "code": "GB-PEM", + "name": "Pembrokeshire [Sir Benfro GB-BNF]", + "parent": "GB-WLS", + "type": "Unitary authority" + }, + { + "code": "GB-PKN", + "name": "Perth and Kinross", + "parent": "GB-SCT", + "type": "Council area" + }, + { + "code": "GB-PLY", + "name": "Plymouth", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-POR", + "name": "Portsmouth", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-POW", + "name": "Powys", + "parent": "GB-WLS", + "type": "Unitary authority" + }, + { + "code": "GB-PTE", + "name": "Peterborough", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-RCC", + "name": "Redcar and Cleveland", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-RCH", + "name": "Rochdale", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-RCT", + "name": "Rhondda Cynon Taff [Rhondda CynonTaf]", + "parent": "GB-WLS", + "type": "Unitary authority" + }, + { + "code": "GB-RDB", + "name": "Redbridge", + "parent": "GB-ENG", + "type": "London borough" + }, + { + "code": "GB-RDG", + "name": "Reading", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-RFW", + "name": "Renfrewshire", + "parent": "GB-SCT", + "type": "Council area" + }, + { + "code": "GB-RIC", + "name": "Richmond upon Thames", + "parent": "GB-ENG", + "type": "London borough" + }, + { + "code": "GB-ROT", + "name": "Rotherham", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-RUT", + "name": "Rutland", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-SAW", + "name": "Sandwell", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-SAY", + "name": "South Ayrshire", + "parent": "GB-SCT", + "type": "Council area" + }, + { + "code": "GB-SCB", + "name": "Scottish Borders", + "parent": "GB-SCT", + "type": "Council area" + }, + { + "code": "GB-SCT", + "name": "Scotland", + "type": "Country" + }, + { + "code": "GB-SFK", + "name": "Suffolk", + "parent": "GB-ENG", + "type": "Two-tier county" + }, + { + "code": "GB-SFT", + "name": "Sefton", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-SGC", + "name": "South Gloucestershire", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-SHF", + "name": "Sheffield", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-SHN", + "name": "St. Helens", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-SHR", + "name": "Shropshire", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-SKP", + "name": "Stockport", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-SLF", + "name": "Salford", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-SLG", + "name": "Slough", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-SLK", + "name": "South Lanarkshire", + "parent": "GB-SCT", + "type": "Council area" + }, + { + "code": "GB-SND", + "name": "Sunderland", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-SOL", + "name": "Solihull", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-SOM", + "name": "Somerset", + "parent": "GB-ENG", + "type": "Two-tier county" + }, + { + "code": "GB-SOS", + "name": "Southend-on-Sea", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-SRY", + "name": "Surrey", + "parent": "GB-ENG", + "type": "Two-tier county" + }, + { + "code": "GB-STE", + "name": "Stoke-on-Trent", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-STG", + "name": "Stirling", + "parent": "GB-SCT", + "type": "Council area" + }, + { + "code": "GB-STH", + "name": "Southampton", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-STN", + "name": "Sutton", + "parent": "GB-ENG", + "type": "London borough" + }, + { + "code": "GB-STS", + "name": "Staffordshire", + "parent": "GB-ENG", + "type": "Two-tier county" + }, + { + "code": "GB-STT", + "name": "Stockton-on-Tees", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-STY", + "name": "South Tyneside", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-SWA", + "name": "Swansea [Abertawe GB-ATA]", + "parent": "GB-WLS", + "type": "Unitary authority" + }, + { + "code": "GB-SWD", + "name": "Swindon", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-SWK", + "name": "Southwark", + "parent": "GB-ENG", + "type": "London borough" + }, + { + "code": "GB-TAM", + "name": "Tameside", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-TFW", + "name": "Telford and Wrekin", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-THR", + "name": "Thurrock", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-TOB", + "name": "Torbay", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-TOF", + "name": "Torfaen [Tor-faen]", + "parent": "GB-WLS", + "type": "Unitary authority" + }, + { + "code": "GB-TRF", + "name": "Trafford", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-TWH", + "name": "Tower Hamlets", + "parent": "GB-ENG", + "type": "London borough" + }, + { + "code": "GB-VGL", + "name": "Vale of Glamorgan, The [Bro Morgannwg GB-BMG]", + "parent": "GB-WLS", + "type": "Unitary authority" + }, + { + "code": "GB-WAR", + "name": "Warwickshire", + "parent": "GB-ENG", + "type": "Two-tier county" + }, + { + "code": "GB-WBK", + "name": "West Berkshire", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-WDU", + "name": "West Dunbartonshire", + "parent": "GB-SCT", + "type": "Council area" + }, + { + "code": "GB-WFT", + "name": "Waltham Forest", + "parent": "GB-ENG", + "type": "London borough" + }, + { + "code": "GB-WGN", + "name": "Wigan", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-WIL", + "name": "Wiltshire", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-WKF", + "name": "Wakefield", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-WLL", + "name": "Walsall", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-WLN", + "name": "West Lothian", + "parent": "GB-SCT", + "type": "Council area" + }, + { + "code": "GB-WLS", + "name": "Wales [Cymru GB-CYM]", + "type": "Country" + }, + { + "code": "GB-WLV", + "name": "Wolverhampton", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-WND", + "name": "Wandsworth", + "parent": "GB-ENG", + "type": "London borough" + }, + { + "code": "GB-WNH", + "name": "West Northamptonshire", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-WNM", + "name": "Windsor and Maidenhead", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-WOK", + "name": "Wokingham", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-WOR", + "name": "Worcestershire", + "parent": "GB-ENG", + "type": "Two-tier county" + }, + { + "code": "GB-WRL", + "name": "Wirral", + "parent": "GB-ENG", + "type": "Metropolitan district" + }, + { + "code": "GB-WRT", + "name": "Warrington", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-WRX", + "name": "Wrexham [Wrecsam GB-WRC]", + "parent": "GB-WLS", + "type": "Unitary authority" + }, + { + "code": "GB-WSM", + "name": "Westminster", + "parent": "GB-ENG", + "type": "London borough" + }, + { + "code": "GB-WSX", + "name": "West Sussex", + "parent": "GB-ENG", + "type": "Two-tier county" + }, + { + "code": "GB-YOR", + "name": "York", + "parent": "GB-ENG", + "type": "Unitary authority" + }, + { + "code": "GB-ZET", + "name": "Shetland Islands", + "parent": "GB-SCT", + "type": "Council area" + }, + { + "code": "GD-01", + "name": "Saint Andrew", + "type": "Parish" + }, + { + "code": "GD-02", + "name": "Saint David", + "type": "Parish" + }, + { + "code": "GD-03", + "name": "Saint George", + "type": "Parish" + }, + { + "code": "GD-04", + "name": "Saint John", + "type": "Parish" + }, + { + "code": "GD-05", + "name": "Saint Mark", + "type": "Parish" + }, + { + "code": "GD-06", + "name": "Saint Patrick", + "type": "Parish" + }, + { + "code": "GD-10", + "name": "Southern Grenadine Islands", + "type": "Dependency" + }, + { + "code": "GE-AB", + "name": "Abkhazia", + "type": "Autonomous republic" + }, + { + "code": "GE-AJ", + "name": "Ajaria", + "type": "Autonomous republic" + }, + { + "code": "GE-GU", + "name": "Guria", + "type": "Region" + }, + { + "code": "GE-IM", + "name": "Imereti", + "type": "Region" + }, + { + "code": "GE-KA", + "name": "K'akheti", + "type": "Region" + }, + { + "code": "GE-KK", + "name": "Kvemo Kartli", + "type": "Region" + }, + { + "code": "GE-MM", + "name": "Mtskheta-Mtianeti", + "type": "Region" + }, + { + "code": "GE-RL", + "name": "Rach'a-Lechkhumi-Kvemo Svaneti", + "type": "Region" + }, + { + "code": "GE-SJ", + "name": "Samtskhe-Javakheti", + "type": "Region" + }, + { + "code": "GE-SK", + "name": "Shida Kartli", + "type": "Region" + }, + { + "code": "GE-SZ", + "name": "Samegrelo-Zemo Svaneti", + "type": "Region" + }, + { + "code": "GE-TB", + "name": "Tbilisi", + "type": "City" + }, + { + "code": "GH-AA", + "name": "Greater Accra", + "type": "Region" + }, + { + "code": "GH-AF", + "name": "Ahafo", + "type": "Region" + }, + { + "code": "GH-AH", + "name": "Ashanti", + "type": "Region" + }, + { + "code": "GH-BE", + "name": "Bono East", + "type": "Region" + }, + { + "code": "GH-BO", + "name": "Bono", + "type": "Region" + }, + { + "code": "GH-CP", + "name": "Central", + "type": "Region" + }, + { + "code": "GH-EP", + "name": "Eastern", + "type": "Region" + }, + { + "code": "GH-NE", + "name": "North East", + "type": "Region" + }, + { + "code": "GH-NP", + "name": "Northern", + "type": "Region" + }, + { + "code": "GH-OT", + "name": "Oti", + "type": "Region" + }, + { + "code": "GH-SV", + "name": "Savannah", + "type": "Region" + }, + { + "code": "GH-TV", + "name": "Volta", + "type": "Region" + }, + { + "code": "GH-UE", + "name": "Upper East", + "type": "Region" + }, + { + "code": "GH-UW", + "name": "Upper West", + "type": "Region" + }, + { + "code": "GH-WN", + "name": "Western North", + "type": "Region" + }, + { + "code": "GH-WP", + "name": "Western", + "type": "Region" + }, + { + "code": "GL-AV", + "name": "Avannaata Kommunia", + "type": "Municipality" + }, + { + "code": "GL-KU", + "name": "Kommune Kujalleq", + "type": "Municipality" + }, + { + "code": "GL-QE", + "name": "Qeqqata Kommunia", + "type": "Municipality" + }, + { + "code": "GL-QT", + "name": "Kommune Qeqertalik", + "type": "Municipality" + }, + { + "code": "GL-SM", + "name": "Kommuneqarfik Sermersooq", + "type": "Municipality" + }, + { + "code": "GM-B", + "name": "Banjul", + "type": "City" + }, + { + "code": "GM-L", + "name": "Lower River", + "type": "Division" + }, + { + "code": "GM-M", + "name": "Central River", + "type": "Division" + }, + { + "code": "GM-N", + "name": "North Bank", + "type": "Division" + }, + { + "code": "GM-U", + "name": "Upper River", + "type": "Division" + }, + { + "code": "GM-W", + "name": "Western", + "type": "Division" + }, + { + "code": "GN-B", + "name": "Boké", + "type": "Administrative region" + }, + { + "code": "GN-BE", + "name": "Beyla", + "parent": "GN-N", + "type": "Prefecture" + }, + { + "code": "GN-BF", + "name": "Boffa", + "parent": "GN-B", + "type": "Prefecture" + }, + { + "code": "GN-BK", + "name": "Boké", + "parent": "GN-B", + "type": "Prefecture" + }, + { + "code": "GN-C", + "name": "Conakry", + "type": "Governorate" + }, + { + "code": "GN-CO", + "name": "Coyah", + "parent": "GN-D", + "type": "Prefecture" + }, + { + "code": "GN-D", + "name": "Kindia", + "type": "Administrative region" + }, + { + "code": "GN-DB", + "name": "Dabola", + "parent": "GN-F", + "type": "Prefecture" + }, + { + "code": "GN-DI", + "name": "Dinguiraye", + "parent": "GN-F", + "type": "Prefecture" + }, + { + "code": "GN-DL", + "name": "Dalaba", + "parent": "GN-M", + "type": "Prefecture" + }, + { + "code": "GN-DU", + "name": "Dubréka", + "parent": "GN-D", + "type": "Prefecture" + }, + { + "code": "GN-F", + "name": "Faranah", + "type": "Administrative region" + }, + { + "code": "GN-FA", + "name": "Faranah", + "parent": "GN-F", + "type": "Prefecture" + }, + { + "code": "GN-FO", + "name": "Forécariah", + "parent": "GN-D", + "type": "Prefecture" + }, + { + "code": "GN-FR", + "name": "Fria", + "parent": "GN-B", + "type": "Prefecture" + }, + { + "code": "GN-GA", + "name": "Gaoual", + "parent": "GN-B", + "type": "Prefecture" + }, + { + "code": "GN-GU", + "name": "Guékédou", + "parent": "GN-N", + "type": "Prefecture" + }, + { + "code": "GN-K", + "name": "Kankan", + "type": "Administrative region" + }, + { + "code": "GN-KA", + "name": "Kankan", + "parent": "GN-K", + "type": "Prefecture" + }, + { + "code": "GN-KB", + "name": "Koubia", + "parent": "GN-L", + "type": "Prefecture" + }, + { + "code": "GN-KD", + "name": "Kindia", + "parent": "GN-D", + "type": "Prefecture" + }, + { + "code": "GN-KE", + "name": "Kérouané", + "parent": "GN-K", + "type": "Prefecture" + }, + { + "code": "GN-KN", + "name": "Koundara", + "parent": "GN-B", + "type": "Prefecture" + }, + { + "code": "GN-KO", + "name": "Kouroussa", + "parent": "GN-K", + "type": "Prefecture" + }, + { + "code": "GN-KS", + "name": "Kissidougou", + "parent": "GN-F", + "type": "Prefecture" + }, + { + "code": "GN-L", + "name": "Labé", + "type": "Administrative region" + }, + { + "code": "GN-LA", + "name": "Labé", + "parent": "GN-L", + "type": "Prefecture" + }, + { + "code": "GN-LE", + "name": "Lélouma", + "parent": "GN-L", + "type": "Prefecture" + }, + { + "code": "GN-LO", + "name": "Lola", + "parent": "GN-N", + "type": "Prefecture" + }, + { + "code": "GN-M", + "name": "Mamou", + "type": "Administrative region" + }, + { + "code": "GN-MC", + "name": "Macenta", + "parent": "GN-N", + "type": "Prefecture" + }, + { + "code": "GN-MD", + "name": "Mandiana", + "parent": "GN-K", + "type": "Prefecture" + }, + { + "code": "GN-ML", + "name": "Mali", + "parent": "GN-L", + "type": "Prefecture" + }, + { + "code": "GN-MM", + "name": "Mamou", + "parent": "GN-M", + "type": "Prefecture" + }, + { + "code": "GN-N", + "name": "Nzérékoré", + "type": "Administrative region" + }, + { + "code": "GN-NZ", + "name": "Nzérékoré", + "parent": "GN-N", + "type": "Prefecture" + }, + { + "code": "GN-PI", + "name": "Pita", + "parent": "GN-M", + "type": "Prefecture" + }, + { + "code": "GN-SI", + "name": "Siguiri", + "parent": "GN-K", + "type": "Prefecture" + }, + { + "code": "GN-TE", + "name": "Télimélé", + "parent": "GN-D", + "type": "Prefecture" + }, + { + "code": "GN-TO", + "name": "Tougué", + "parent": "GN-L", + "type": "Prefecture" + }, + { + "code": "GN-YO", + "name": "Yomou", + "parent": "GN-N", + "type": "Prefecture" + }, + { + "code": "GQ-AN", + "name": "Annobon", + "parent": "GQ-I", + "type": "Province" + }, + { + "code": "GQ-BN", + "name": "Bioko Nord", + "parent": "GQ-I", + "type": "Province" + }, + { + "code": "GQ-BS", + "name": "Bioko Sud", + "parent": "GQ-I", + "type": "Province" + }, + { + "code": "GQ-C", + "name": "Région Continentale", + "type": "Region" + }, + { + "code": "GQ-CS", + "name": "Centro Sud", + "parent": "GQ-C", + "type": "Province" + }, + { + "code": "GQ-DJ", + "name": "Djibloho", + "parent": "GQ-C", + "type": "Province" + }, + { + "code": "GQ-I", + "name": "Région Insulaire", + "type": "Region" + }, + { + "code": "GQ-KN", + "name": "Kié-Ntem", + "parent": "GQ-C", + "type": "Province" + }, + { + "code": "GQ-LI", + "name": "Littoral", + "parent": "GQ-C", + "type": "Province" + }, + { + "code": "GQ-WN", + "name": "Wele-Nzas", + "parent": "GQ-C", + "type": "Province" + }, + { + "code": "GR-69", + "name": "Ágion Óros", + "type": "Self-governed part" + }, + { + "code": "GR-A", + "name": "Anatolikí Makedonía kai Thráki", + "type": "Administrative region" + }, + { + "code": "GR-B", + "name": "Kentrikí Makedonía", + "type": "Administrative region" + }, + { + "code": "GR-C", + "name": "Dytikí Makedonía", + "type": "Administrative region" + }, + { + "code": "GR-D", + "name": "Ípeiros", + "type": "Administrative region" + }, + { + "code": "GR-E", + "name": "Thessalía", + "type": "Administrative region" + }, + { + "code": "GR-F", + "name": "Ionía Nísia", + "type": "Administrative region" + }, + { + "code": "GR-G", + "name": "Dytikí Elláda", + "type": "Administrative region" + }, + { + "code": "GR-H", + "name": "Stereá Elláda", + "type": "Administrative region" + }, + { + "code": "GR-I", + "name": "Attikí", + "type": "Administrative region" + }, + { + "code": "GR-J", + "name": "Pelopónnisos", + "type": "Administrative region" + }, + { + "code": "GR-K", + "name": "Vóreio Aigaío", + "type": "Administrative region" + }, + { + "code": "GR-L", + "name": "Nótio Aigaío", + "type": "Administrative region" + }, + { + "code": "GR-M", + "name": "Kríti", + "type": "Administrative region" + }, + { + "code": "GT-01", + "name": "Guatemala", + "type": "Department" + }, + { + "code": "GT-02", + "name": "El Progreso", + "type": "Department" + }, + { + "code": "GT-03", + "name": "Sacatepéquez", + "type": "Department" + }, + { + "code": "GT-04", + "name": "Chimaltenango", + "type": "Department" + }, + { + "code": "GT-05", + "name": "Escuintla", + "type": "Department" + }, + { + "code": "GT-06", + "name": "Santa Rosa", + "type": "Department" + }, + { + "code": "GT-07", + "name": "Sololá", + "type": "Department" + }, + { + "code": "GT-08", + "name": "Totonicapán", + "type": "Department" + }, + { + "code": "GT-09", + "name": "Quetzaltenango", + "type": "Department" + }, + { + "code": "GT-10", + "name": "Suchitepéquez", + "type": "Department" + }, + { + "code": "GT-11", + "name": "Retalhuleu", + "type": "Department" + }, + { + "code": "GT-12", + "name": "San Marcos", + "type": "Department" + }, + { + "code": "GT-13", + "name": "Huehuetenango", + "type": "Department" + }, + { + "code": "GT-14", + "name": "Quiché", + "type": "Department" + }, + { + "code": "GT-15", + "name": "Baja Verapaz", + "type": "Department" + }, + { + "code": "GT-16", + "name": "Alta Verapaz", + "type": "Department" + }, + { + "code": "GT-17", + "name": "Petén", + "type": "Department" + }, + { + "code": "GT-18", + "name": "Izabal", + "type": "Department" + }, + { + "code": "GT-19", + "name": "Zacapa", + "type": "Department" + }, + { + "code": "GT-20", + "name": "Chiquimula", + "type": "Department" + }, + { + "code": "GT-21", + "name": "Jalapa", + "type": "Department" + }, + { + "code": "GT-22", + "name": "Jutiapa", + "type": "Department" + }, + { + "code": "GW-BA", + "name": "Bafatá", + "parent": "GW-L", + "type": "Region" + }, + { + "code": "GW-BL", + "name": "Bolama / Bijagós", + "parent": "GW-S", + "type": "Region" + }, + { + "code": "GW-BM", + "name": "Biombo", + "parent": "GW-N", + "type": "Region" + }, + { + "code": "GW-BS", + "name": "Bissau", + "type": "Autonomous sector" + }, + { + "code": "GW-CA", + "name": "Cacheu", + "parent": "GW-N", + "type": "Region" + }, + { + "code": "GW-GA", + "name": "Gabú", + "parent": "GW-L", + "type": "Region" + }, + { + "code": "GW-L", + "name": "Leste", + "type": "Province" + }, + { + "code": "GW-N", + "name": "Norte", + "type": "Province" + }, + { + "code": "GW-OI", + "name": "Oio", + "parent": "GW-N", + "type": "Region" + }, + { + "code": "GW-QU", + "name": "Quinara", + "parent": "GW-S", + "type": "Region" + }, + { + "code": "GW-S", + "name": "Sul", + "type": "Province" + }, + { + "code": "GW-TO", + "name": "Tombali", + "parent": "GW-S", + "type": "Region" + }, + { + "code": "GY-BA", + "name": "Barima-Waini", + "type": "Region" + }, + { + "code": "GY-CU", + "name": "Cuyuni-Mazaruni", + "type": "Region" + }, + { + "code": "GY-DE", + "name": "Demerara-Mahaica", + "type": "Region" + }, + { + "code": "GY-EB", + "name": "East Berbice-Corentyne", + "type": "Region" + }, + { + "code": "GY-ES", + "name": "Essequibo Islands-West Demerara", + "type": "Region" + }, + { + "code": "GY-MA", + "name": "Mahaica-Berbice", + "type": "Region" + }, + { + "code": "GY-PM", + "name": "Pomeroon-Supenaam", + "type": "Region" + }, + { + "code": "GY-PT", + "name": "Potaro-Siparuni", + "type": "Region" + }, + { + "code": "GY-UD", + "name": "Upper Demerara-Berbice", + "type": "Region" + }, + { + "code": "GY-UT", + "name": "Upper Takutu-Upper Essequibo", + "type": "Region" + }, + { + "code": "HN-AT", + "name": "Atlántida", + "type": "Department" + }, + { + "code": "HN-CH", + "name": "Choluteca", + "type": "Department" + }, + { + "code": "HN-CL", + "name": "Colón", + "type": "Department" + }, + { + "code": "HN-CM", + "name": "Comayagua", + "type": "Department" + }, + { + "code": "HN-CP", + "name": "Copán", + "type": "Department" + }, + { + "code": "HN-CR", + "name": "Cortés", + "type": "Department" + }, + { + "code": "HN-EP", + "name": "El Paraíso", + "type": "Department" + }, + { + "code": "HN-FM", + "name": "Francisco Morazán", + "type": "Department" + }, + { + "code": "HN-GD", + "name": "Gracias a Dios", + "type": "Department" + }, + { + "code": "HN-IB", + "name": "Islas de la Bahía", + "type": "Department" + }, + { + "code": "HN-IN", + "name": "Intibucá", + "type": "Department" + }, + { + "code": "HN-LE", + "name": "Lempira", + "type": "Department" + }, + { + "code": "HN-LP", + "name": "La Paz", + "type": "Department" + }, + { + "code": "HN-OC", + "name": "Ocotepeque", + "type": "Department" + }, + { + "code": "HN-OL", + "name": "Olancho", + "type": "Department" + }, + { + "code": "HN-SB", + "name": "Santa Bárbara", + "type": "Department" + }, + { + "code": "HN-VA", + "name": "Valle", + "type": "Department" + }, + { + "code": "HN-YO", + "name": "Yoro", + "type": "Department" + }, + { + "code": "HR-01", + "name": "Zagrebačka županija", + "type": "County" + }, + { + "code": "HR-02", + "name": "Krapinsko-zagorska županija", + "type": "County" + }, + { + "code": "HR-03", + "name": "Sisačko-moslavačka županija", + "type": "County" + }, + { + "code": "HR-04", + "name": "Karlovačka županija", + "type": "County" + }, + { + "code": "HR-05", + "name": "Varaždinska županija", + "type": "County" + }, + { + "code": "HR-06", + "name": "Koprivničko-križevačka županija", + "type": "County" + }, + { + "code": "HR-07", + "name": "Bjelovarsko-bilogorska županija", + "type": "County" + }, + { + "code": "HR-08", + "name": "Primorsko-goranska županija", + "type": "County" + }, + { + "code": "HR-09", + "name": "Ličko-senjska županija", + "type": "County" + }, + { + "code": "HR-10", + "name": "Virovitičko-podravska županija", + "type": "County" + }, + { + "code": "HR-11", + "name": "Požeško-slavonska županija", + "type": "County" + }, + { + "code": "HR-12", + "name": "Brodsko-posavska županija", + "type": "County" + }, + { + "code": "HR-13", + "name": "Zadarska županija", + "type": "County" + }, + { + "code": "HR-14", + "name": "Osječko-baranjska županija", + "type": "County" + }, + { + "code": "HR-15", + "name": "Šibensko-kninska županija", + "type": "County" + }, + { + "code": "HR-16", + "name": "Vukovarsko-srijemska županija", + "type": "County" + }, + { + "code": "HR-17", + "name": "Splitsko-dalmatinska županija", + "type": "County" + }, + { + "code": "HR-18", + "name": "Istarska županija", + "type": "County" + }, + { + "code": "HR-19", + "name": "Dubrovačko-neretvanska županija", + "type": "County" + }, + { + "code": "HR-20", + "name": "Međimurska županija", + "type": "County" + }, + { + "code": "HR-21", + "name": "Grad Zagreb", + "type": "City" + }, + { + "code": "HT-AR", + "name": "Artibonite", + "type": "Department" + }, + { + "code": "HT-CE", + "name": "Centre", + "type": "Department" + }, + { + "code": "HT-GA", + "name": "Grande’Anse", + "type": "Department" + }, + { + "code": "HT-ND", + "name": "Nord", + "type": "Department" + }, + { + "code": "HT-NE", + "name": "Nord-Est", + "type": "Department" + }, + { + "code": "HT-NI", + "name": "Nippes", + "type": "Department" + }, + { + "code": "HT-NO", + "name": "Nord-Ouest", + "type": "Department" + }, + { + "code": "HT-OU", + "name": "Ouest", + "type": "Department" + }, + { + "code": "HT-SD", + "name": "Sud", + "type": "Department" + }, + { + "code": "HT-SE", + "name": "Sud-Est", + "type": "Department" + }, + { + "code": "HU-BA", + "name": "Baranya", + "type": "County" + }, + { + "code": "HU-BC", + "name": "Békéscsaba", + "type": "City with county rights" + }, + { + "code": "HU-BE", + "name": "Békés", + "type": "County" + }, + { + "code": "HU-BK", + "name": "Bács-Kiskun", + "type": "County" + }, + { + "code": "HU-BU", + "name": "Budapest", + "type": "Capital city" + }, + { + "code": "HU-BZ", + "name": "Borsod-Abaúj-Zemplén", + "type": "County" + }, + { + "code": "HU-CS", + "name": "Csongrád-Csanád", + "type": "County" + }, + { + "code": "HU-DE", + "name": "Debrecen", + "type": "City with county rights" + }, + { + "code": "HU-DU", + "name": "Dunaújváros", + "type": "City with county rights" + }, + { + "code": "HU-EG", + "name": "Eger", + "type": "City with county rights" + }, + { + "code": "HU-ER", + "name": "Érd", + "type": "City with county rights" + }, + { + "code": "HU-FE", + "name": "Fejér", + "type": "County" + }, + { + "code": "HU-GS", + "name": "Győr-Moson-Sopron", + "type": "County" + }, + { + "code": "HU-GY", + "name": "Győr", + "type": "City with county rights" + }, + { + "code": "HU-HB", + "name": "Hajdú-Bihar", + "type": "County" + }, + { + "code": "HU-HE", + "name": "Heves", + "type": "County" + }, + { + "code": "HU-HV", + "name": "Hódmezővásárhely", + "type": "City with county rights" + }, + { + "code": "HU-JN", + "name": "Jász-Nagykun-Szolnok", + "type": "County" + }, + { + "code": "HU-KE", + "name": "Komárom-Esztergom", + "type": "County" + }, + { + "code": "HU-KM", + "name": "Kecskemét", + "type": "City with county rights" + }, + { + "code": "HU-KV", + "name": "Kaposvár", + "type": "City with county rights" + }, + { + "code": "HU-MI", + "name": "Miskolc", + "type": "City with county rights" + }, + { + "code": "HU-NK", + "name": "Nagykanizsa", + "type": "City with county rights" + }, + { + "code": "HU-NO", + "name": "Nógrád", + "type": "County" + }, + { + "code": "HU-NY", + "name": "Nyíregyháza", + "type": "City with county rights" + }, + { + "code": "HU-PE", + "name": "Pest", + "type": "County" + }, + { + "code": "HU-PS", + "name": "Pécs", + "type": "City with county rights" + }, + { + "code": "HU-SD", + "name": "Szeged", + "type": "City with county rights" + }, + { + "code": "HU-SF", + "name": "Székesfehérvár", + "type": "City with county rights" + }, + { + "code": "HU-SH", + "name": "Szombathely", + "type": "City with county rights" + }, + { + "code": "HU-SK", + "name": "Szolnok", + "type": "City with county rights" + }, + { + "code": "HU-SN", + "name": "Sopron", + "type": "City with county rights" + }, + { + "code": "HU-SO", + "name": "Somogy", + "type": "County" + }, + { + "code": "HU-SS", + "name": "Szekszárd", + "type": "City with county rights" + }, + { + "code": "HU-ST", + "name": "Salgótarján", + "type": "City with county rights" + }, + { + "code": "HU-SZ", + "name": "Szabolcs-Szatmár-Bereg", + "type": "County" + }, + { + "code": "HU-TB", + "name": "Tatabánya", + "type": "City with county rights" + }, + { + "code": "HU-TO", + "name": "Tolna", + "type": "County" + }, + { + "code": "HU-VA", + "name": "Vas", + "type": "County" + }, + { + "code": "HU-VE", + "name": "Veszprém", + "type": "County" + }, + { + "code": "HU-VM", + "name": "Veszprém", + "type": "City with county rights" + }, + { + "code": "HU-ZA", + "name": "Zala", + "type": "County" + }, + { + "code": "HU-ZE", + "name": "Zalaegerszeg", + "type": "City with county rights" + }, + { + "code": "ID-AC", + "name": "Aceh", + "parent": "ID-SM", + "type": "Province" + }, + { + "code": "ID-BA", + "name": "Bali", + "parent": "ID-NU", + "type": "Province" + }, + { + "code": "ID-BB", + "name": "Kepulauan Bangka Belitung", + "parent": "ID-SM", + "type": "Province" + }, + { + "code": "ID-BE", + "name": "Bengkulu", + "parent": "ID-SM", + "type": "Province" + }, + { + "code": "ID-BT", + "name": "Banten", + "parent": "ID-JW", + "type": "Province" + }, + { + "code": "ID-GO", + "name": "Gorontalo", + "parent": "ID-SL", + "type": "Province" + }, + { + "code": "ID-JA", + "name": "Jambi", + "parent": "ID-SM", + "type": "Province" + }, + { + "code": "ID-JB", + "name": "Jawa Barat", + "parent": "ID-JW", + "type": "Province" + }, + { + "code": "ID-JI", + "name": "Jawa Timur", + "parent": "ID-JW", + "type": "Province" + }, + { + "code": "ID-JK", + "name": "Jakarta Raya", + "parent": "ID-JW", + "type": "Capital district" + }, + { + "code": "ID-JT", + "name": "Jawa Tengah", + "parent": "ID-JW", + "type": "Province" + }, + { + "code": "ID-JW", + "name": "Jawa", + "type": "Geographical unit" + }, + { + "code": "ID-KA", + "name": "Kalimantan", + "type": "Geographical unit" + }, + { + "code": "ID-KB", + "name": "Kalimantan Barat", + "parent": "ID-KA", + "type": "Province" + }, + { + "code": "ID-KI", + "name": "Kalimantan Timur", + "parent": "ID-KA", + "type": "Province" + }, + { + "code": "ID-KR", + "name": "Kepulauan Riau", + "parent": "ID-SM", + "type": "Province" + }, + { + "code": "ID-KS", + "name": "Kalimantan Selatan", + "parent": "ID-KA", + "type": "Province" + }, + { + "code": "ID-KT", + "name": "Kalimantan Tengah", + "parent": "ID-KA", + "type": "Province" + }, + { + "code": "ID-KU", + "name": "Kalimantan Utara", + "parent": "ID-KA", + "type": "Province" + }, + { + "code": "ID-LA", + "name": "Lampung", + "parent": "ID-SM", + "type": "Province" + }, + { + "code": "ID-MA", + "name": "Maluku", + "parent": "ID-ML", + "type": "Province" + }, + { + "code": "ID-ML", + "name": "Maluku", + "type": "Geographical unit" + }, + { + "code": "ID-MU", + "name": "Maluku Utara", + "parent": "ID-ML", + "type": "Province" + }, + { + "code": "ID-NB", + "name": "Nusa Tenggara Barat", + "parent": "ID-NU", + "type": "Province" + }, + { + "code": "ID-NT", + "name": "Nusa Tenggara Timur", + "parent": "ID-NU", + "type": "Province" + }, + { + "code": "ID-NU", + "name": "Nusa Tenggara", + "type": "Geographical unit" + }, + { + "code": "ID-PA", + "name": "Papua", + "parent": "ID-PP", + "type": "Province" + }, + { + "code": "ID-PB", + "name": "Papua Barat", + "parent": "ID-PP", + "type": "Province" + }, + { + "code": "ID-PD", + "name": "Papua Barat Daya", + "parent": "ID-PP", + "type": "Province" + }, + { + "code": "ID-PE", + "name": "Papua Pengunungan", + "parent": "ID-PP", + "type": "Province" + }, + { + "code": "ID-PP", + "name": "Papua", + "type": "Geographical unit" + }, + { + "code": "ID-PS", + "name": "Papua Selatan", + "parent": "ID-PP", + "type": "Province" + }, + { + "code": "ID-PT", + "name": "Papua Tengah", + "parent": "ID-PP", + "type": "Province" + }, + { + "code": "ID-RI", + "name": "Riau", + "parent": "ID-SM", + "type": "Province" + }, + { + "code": "ID-SA", + "name": "Sulawesi Utara", + "parent": "ID-SL", + "type": "Province" + }, + { + "code": "ID-SB", + "name": "Sumatera Barat", + "parent": "ID-SM", + "type": "Province" + }, + { + "code": "ID-SG", + "name": "Sulawesi Tenggara", + "parent": "ID-SL", + "type": "Province" + }, + { + "code": "ID-SL", + "name": "Sulawesi", + "type": "Geographical unit" + }, + { + "code": "ID-SM", + "name": "Sumatera", + "type": "Geographical unit" + }, + { + "code": "ID-SN", + "name": "Sulawesi Selatan", + "parent": "ID-SL", + "type": "Province" + }, + { + "code": "ID-SR", + "name": "Sulawesi Barat", + "parent": "ID-SL", + "type": "Province" + }, + { + "code": "ID-SS", + "name": "Sumatera Selatan", + "parent": "ID-SM", + "type": "Province" + }, + { + "code": "ID-ST", + "name": "Sulawesi Tengah", + "parent": "ID-SL", + "type": "Province" + }, + { + "code": "ID-SU", + "name": "Sumatera Utara", + "parent": "ID-SM", + "type": "Province" + }, + { + "code": "ID-YO", + "name": "Yogyakarta", + "parent": "ID-JW", + "type": "Special region" + }, + { + "code": "IE-C", + "name": "Connaught", + "type": "Province" + }, + { + "code": "IE-CE", + "name": "Clare", + "parent": "IE-M", + "type": "County" + }, + { + "code": "IE-CN", + "name": "Cavan", + "parent": "IE-U", + "type": "County" + }, + { + "code": "IE-CO", + "name": "Cork", + "parent": "IE-M", + "type": "County" + }, + { + "code": "IE-CW", + "name": "Carlow", + "parent": "IE-L", + "type": "County" + }, + { + "code": "IE-D", + "name": "Dublin", + "parent": "IE-L", + "type": "County" + }, + { + "code": "IE-DL", + "name": "Donegal", + "parent": "IE-U", + "type": "County" + }, + { + "code": "IE-G", + "name": "Galway", + "parent": "IE-C", + "type": "County" + }, + { + "code": "IE-KE", + "name": "Kildare", + "parent": "IE-L", + "type": "County" + }, + { + "code": "IE-KK", + "name": "Kilkenny", + "parent": "IE-L", + "type": "County" + }, + { + "code": "IE-KY", + "name": "Kerry", + "parent": "IE-M", + "type": "County" + }, + { + "code": "IE-L", + "name": "Leinster", + "type": "Province" + }, + { + "code": "IE-LD", + "name": "Longford", + "parent": "IE-L", + "type": "County" + }, + { + "code": "IE-LH", + "name": "Louth", + "parent": "IE-L", + "type": "County" + }, + { + "code": "IE-LK", + "name": "Limerick", + "parent": "IE-M", + "type": "County" + }, + { + "code": "IE-LM", + "name": "Leitrim", + "parent": "IE-C", + "type": "County" + }, + { + "code": "IE-LS", + "name": "Laois", + "parent": "IE-L", + "type": "County" + }, + { + "code": "IE-M", + "name": "Munster", + "type": "Province" + }, + { + "code": "IE-MH", + "name": "Meath", + "parent": "IE-L", + "type": "County" + }, + { + "code": "IE-MN", + "name": "Monaghan", + "parent": "IE-U", + "type": "County" + }, + { + "code": "IE-MO", + "name": "Mayo", + "parent": "IE-C", + "type": "County" + }, + { + "code": "IE-OY", + "name": "Offaly", + "parent": "IE-L", + "type": "County" + }, + { + "code": "IE-RN", + "name": "Roscommon", + "parent": "IE-C", + "type": "County" + }, + { + "code": "IE-SO", + "name": "Sligo", + "parent": "IE-C", + "type": "County" + }, + { + "code": "IE-TA", + "name": "Tipperary", + "parent": "IE-M", + "type": "County" + }, + { + "code": "IE-U", + "name": "Ulster", + "type": "Province" + }, + { + "code": "IE-WD", + "name": "Waterford", + "parent": "IE-M", + "type": "County" + }, + { + "code": "IE-WH", + "name": "Westmeath", + "parent": "IE-L", + "type": "County" + }, + { + "code": "IE-WW", + "name": "Wicklow", + "parent": "IE-L", + "type": "County" + }, + { + "code": "IE-WX", + "name": "Wexford", + "parent": "IE-L", + "type": "County" + }, + { + "code": "IL-D", + "name": "Al Janūbī", + "type": "District" + }, + { + "code": "IL-HA", + "name": "Ḩayfā", + "type": "District" + }, + { + "code": "IL-JM", + "name": "Al Quds", + "type": "District" + }, + { + "code": "IL-M", + "name": "Al Awsaţ", + "type": "District" + }, + { + "code": "IL-TA", + "name": "Tall Abīb", + "type": "District" + }, + { + "code": "IL-Z", + "name": "Ash Shamālī", + "type": "District" + }, + { + "code": "IN-AN", + "name": "Andaman and Nicobar Islands", + "type": "Union territory" + }, + { + "code": "IN-AP", + "name": "Andhra Pradesh", + "type": "State" + }, + { + "code": "IN-AR", + "name": "Arunāchal Pradesh", + "type": "State" + }, + { + "code": "IN-AS", + "name": "Assam", + "type": "State" + }, + { + "code": "IN-BR", + "name": "Bihār", + "type": "State" + }, + { + "code": "IN-CG", + "name": "Chhattīsgarh", + "type": "State" + }, + { + "code": "IN-CH", + "name": "Chandīgarh", + "type": "Union territory" + }, + { + "code": "IN-DH", + "name": "Dādra and Nagar Haveli and Damān and Diu", + "type": "Union territory" + }, + { + "code": "IN-DL", + "name": "Delhi", + "type": "Union territory" + }, + { + "code": "IN-GA", + "name": "Goa", + "type": "State" + }, + { + "code": "IN-GJ", + "name": "Gujarāt", + "type": "State" + }, + { + "code": "IN-HP", + "name": "Himāchal Pradesh", + "type": "State" + }, + { + "code": "IN-HR", + "name": "Haryāna", + "type": "State" + }, + { + "code": "IN-JH", + "name": "Jhārkhand", + "type": "State" + }, + { + "code": "IN-JK", + "name": "Jammu and Kashmīr", + "type": "Union territory" + }, + { + "code": "IN-KA", + "name": "Karnātaka", + "type": "State" + }, + { + "code": "IN-KL", + "name": "Kerala", + "type": "State" + }, + { + "code": "IN-LA", + "name": "Ladākh", + "type": "Union territory" + }, + { + "code": "IN-LD", + "name": "Lakshadweep", + "type": "Union territory" + }, + { + "code": "IN-MH", + "name": "Mahārāshtra", + "type": "State" + }, + { + "code": "IN-ML", + "name": "Meghālaya", + "type": "State" + }, + { + "code": "IN-MN", + "name": "Manipur", + "type": "State" + }, + { + "code": "IN-MP", + "name": "Madhya Pradesh", + "type": "State" + }, + { + "code": "IN-MZ", + "name": "Mizoram", + "type": "State" + }, + { + "code": "IN-NL", + "name": "Nāgāland", + "type": "State" + }, + { + "code": "IN-OD", + "name": "Odisha", + "type": "State" + }, + { + "code": "IN-PB", + "name": "Punjab", + "type": "State" + }, + { + "code": "IN-PY", + "name": "Puducherry", + "type": "Union territory" + }, + { + "code": "IN-RJ", + "name": "Rājasthān", + "type": "State" + }, + { + "code": "IN-SK", + "name": "Sikkim", + "type": "State" + }, + { + "code": "IN-TN", + "name": "Tamil Nādu", + "type": "State" + }, + { + "code": "IN-TR", + "name": "Tripura", + "type": "State" + }, + { + "code": "IN-TS", + "name": "Telangāna", + "type": "State" + }, + { + "code": "IN-UK", + "name": "Uttarākhand", + "type": "State" + }, + { + "code": "IN-UP", + "name": "Uttar Pradesh", + "type": "State" + }, + { + "code": "IN-WB", + "name": "West Bengal", + "type": "State" + }, + { + "code": "IQ-AN", + "name": "Al Anbār", + "type": "Governorate" + }, + { + "code": "IQ-AR", + "name": "Arbīl", + "parent": "IQ-KR", + "type": "Governorate" + }, + { + "code": "IQ-BA", + "name": "Al Başrah", + "type": "Governorate" + }, + { + "code": "IQ-BB", + "name": "Bābil", + "type": "Governorate" + }, + { + "code": "IQ-BG", + "name": "Baghdād", + "type": "Governorate" + }, + { + "code": "IQ-DA", + "name": "Dahūk", + "parent": "IQ-KR", + "type": "Governorate" + }, + { + "code": "IQ-DI", + "name": "Diyālá", + "type": "Governorate" + }, + { + "code": "IQ-DQ", + "name": "Dhī Qār", + "type": "Governorate" + }, + { + "code": "IQ-KA", + "name": "Karbalā’", + "type": "Governorate" + }, + { + "code": "IQ-KI", + "name": "Kirkūk", + "type": "Governorate" + }, + { + "code": "IQ-KR", + "name": "Iqlīm Kūrdistān", + "type": "Region" + }, + { + "code": "IQ-MA", + "name": "Maysān", + "type": "Governorate" + }, + { + "code": "IQ-MU", + "name": "Al Muthanná", + "type": "Governorate" + }, + { + "code": "IQ-NA", + "name": "An Najaf", + "type": "Governorate" + }, + { + "code": "IQ-NI", + "name": "Nīnawá", + "type": "Governorate" + }, + { + "code": "IQ-QA", + "name": "Al Qādisīyah", + "type": "Governorate" + }, + { + "code": "IQ-SD", + "name": "Şalāḩ ad Dīn", + "type": "Governorate" + }, + { + "code": "IQ-SU", + "name": "As Sulaymānīyah", + "parent": "IQ-KR", + "type": "Governorate" + }, + { + "code": "IQ-WA", + "name": "Wāsiţ", + "type": "Governorate" + }, + { + "code": "IR-00", + "name": "Markazī", + "type": "Province" + }, + { + "code": "IR-01", + "name": "Gīlān", + "type": "Province" + }, + { + "code": "IR-02", + "name": "Māzandarān", + "type": "Province" + }, + { + "code": "IR-03", + "name": "Āz̄ārbāyjān-e Shārqī", + "type": "Province" + }, + { + "code": "IR-04", + "name": "Āz̄ārbāyjān-e Ghārbī", + "type": "Province" + }, + { + "code": "IR-05", + "name": "Kermānshāh", + "type": "Province" + }, + { + "code": "IR-06", + "name": "Khūzestān", + "type": "Province" + }, + { + "code": "IR-07", + "name": "Fārs", + "type": "Province" + }, + { + "code": "IR-08", + "name": "Kermān", + "type": "Province" + }, + { + "code": "IR-09", + "name": "Khorāsān-e Raẕavī", + "type": "Province" + }, + { + "code": "IR-10", + "name": "Eşfahān", + "type": "Province" + }, + { + "code": "IR-11", + "name": "Sīstān va Balūchestān", + "type": "Province" + }, + { + "code": "IR-12", + "name": "Kordestān", + "type": "Province" + }, + { + "code": "IR-13", + "name": "Hamadān", + "type": "Province" + }, + { + "code": "IR-14", + "name": "Chahār Maḩāl va Bakhtīārī", + "type": "Province" + }, + { + "code": "IR-15", + "name": "Lorestān", + "type": "Province" + }, + { + "code": "IR-16", + "name": "Īlām", + "type": "Province" + }, + { + "code": "IR-17", + "name": "Kohgīlūyeh va Bowyer Aḩmad", + "type": "Province" + }, + { + "code": "IR-18", + "name": "Būshehr", + "type": "Province" + }, + { + "code": "IR-19", + "name": "Zanjān", + "type": "Province" + }, + { + "code": "IR-20", + "name": "Semnān", + "type": "Province" + }, + { + "code": "IR-21", + "name": "Yazd", + "type": "Province" + }, + { + "code": "IR-22", + "name": "Hormozgān", + "type": "Province" + }, + { + "code": "IR-23", + "name": "Tehrān", + "type": "Province" + }, + { + "code": "IR-24", + "name": "Ardabīl", + "type": "Province" + }, + { + "code": "IR-25", + "name": "Qom", + "type": "Province" + }, + { + "code": "IR-26", + "name": "Qazvīn", + "type": "Province" + }, + { + "code": "IR-27", + "name": "Golestān", + "type": "Province" + }, + { + "code": "IR-28", + "name": "Khorāsān-e Shomālī", + "type": "Province" + }, + { + "code": "IR-29", + "name": "Khorāsān-e Jonūbī", + "type": "Province" + }, + { + "code": "IR-30", + "name": "Alborz", + "type": "Province" + }, + { + "code": "IS-1", + "name": "Höfuðborgarsvæði", + "type": "Region" + }, + { + "code": "IS-2", + "name": "Suðurnes", + "type": "Region" + }, + { + "code": "IS-3", + "name": "Vesturland", + "type": "Region" + }, + { + "code": "IS-4", + "name": "Vestfirðir", + "type": "Region" + }, + { + "code": "IS-5", + "name": "Norðurland vestra", + "type": "Region" + }, + { + "code": "IS-6", + "name": "Norðurland eystra", + "type": "Region" + }, + { + "code": "IS-7", + "name": "Austurland", + "type": "Region" + }, + { + "code": "IS-8", + "name": "Suðurland", + "type": "Region" + }, + { + "code": "IS-AKN", + "name": "Akraneskaupstaður", + "parent": "IS-3", + "type": "Municipality" + }, + { + "code": "IS-AKU", + "name": "Akureyrarbær", + "parent": "IS-6", + "type": "Municipality" + }, + { + "code": "IS-ARN", + "name": "Árneshreppur", + "parent": "IS-4", + "type": "Municipality" + }, + { + "code": "IS-ASA", + "name": "Ásahreppur", + "parent": "IS-8", + "type": "Municipality" + }, + { + "code": "IS-BLA", + "name": "Bláskógabyggð", + "parent": "IS-8", + "type": "Municipality" + }, + { + "code": "IS-BOG", + "name": "Borgarbyggð", + "parent": "IS-3", + "type": "Municipality" + }, + { + "code": "IS-BOL", + "name": "Bolungarvíkurkaupstaður", + "parent": "IS-4", + "type": "Municipality" + }, + { + "code": "IS-DAB", + "name": "Dalabyggð", + "parent": "IS-3", + "type": "Municipality" + }, + { + "code": "IS-DAV", + "name": "Dalvíkurbyggð", + "parent": "IS-6", + "type": "Municipality" + }, + { + "code": "IS-EOM", + "name": "Eyja- og Miklaholtshreppur", + "parent": "IS-3", + "type": "Municipality" + }, + { + "code": "IS-EYF", + "name": "Eyjafjarðarsveit", + "parent": "IS-6", + "type": "Municipality" + }, + { + "code": "IS-FJD", + "name": "Fjarðabyggð", + "parent": "IS-7", + "type": "Municipality" + }, + { + "code": "IS-FJL", + "name": "Fjallabyggð", + "parent": "IS-6", + "type": "Municipality" + }, + { + "code": "IS-FLA", + "name": "Flóahreppur", + "parent": "IS-8", + "type": "Municipality" + }, + { + "code": "IS-FLR", + "name": "Fljótsdalshreppur", + "parent": "IS-7", + "type": "Municipality" + }, + { + "code": "IS-GAR", + "name": "Garðabær", + "parent": "IS-1", + "type": "Municipality" + }, + { + "code": "IS-GOG", + "name": "Grímsnes- og Grafningshreppur", + "parent": "IS-8", + "type": "Municipality" + }, + { + "code": "IS-GRN", + "name": "Grindavíkurbær", + "parent": "IS-2", + "type": "Municipality" + }, + { + "code": "IS-GRU", + "name": "Grundarfjarðarbær", + "parent": "IS-3", + "type": "Municipality" + }, + { + "code": "IS-GRY", + "name": "Grýtubakkahreppur", + "parent": "IS-6", + "type": "Municipality" + }, + { + "code": "IS-HAF", + "name": "Hafnarfjarðarkaupstaður", + "parent": "IS-1", + "type": "Municipality" + }, + { + "code": "IS-HRG", + "name": "Hörgársveit", + "parent": "IS-6", + "type": "Municipality" + }, + { + "code": "IS-HRU", + "name": "Hrunamannahreppur", + "parent": "IS-8", + "type": "Municipality" + }, + { + "code": "IS-HUG", + "name": "Húnabyggð", + "parent": "IS-5", + "type": "Municipality" + }, + { + "code": "IS-HUV", + "name": "Húnaþing vestra", + "parent": "IS-5", + "type": "Municipality" + }, + { + "code": "IS-HVA", + "name": "Hvalfjarðarsveit", + "parent": "IS-3", + "type": "Municipality" + }, + { + "code": "IS-HVE", + "name": "Hveragerðisbær", + "parent": "IS-8", + "type": "Municipality" + }, + { + "code": "IS-ISA", + "name": "Ísafjarðarbær", + "parent": "IS-4", + "type": "Municipality" + }, + { + "code": "IS-KAL", + "name": "Kaldrananeshreppur", + "parent": "IS-4", + "type": "Municipality" + }, + { + "code": "IS-KJO", + "name": "Kjósarhreppur", + "parent": "IS-1", + "type": "Municipality" + }, + { + "code": "IS-KOP", + "name": "Kópavogsbær", + "parent": "IS-1", + "type": "Municipality" + }, + { + "code": "IS-LAN", + "name": "Langanesbyggð", + "parent": "IS-6", + "type": "Municipality" + }, + { + "code": "IS-MOS", + "name": "Mosfellsbær", + "parent": "IS-1", + "type": "Municipality" + }, + { + "code": "IS-MUL", + "name": "Múlaþing", + "parent": "IS-7", + "type": "Municipality" + }, + { + "code": "IS-MYR", + "name": "Mýrdalshreppur", + "parent": "IS-8", + "type": "Municipality" + }, + { + "code": "IS-NOR", + "name": "Norðurþing", + "parent": "IS-6", + "type": "Municipality" + }, + { + "code": "IS-RGE", + "name": "Rangárþing eystra", + "parent": "IS-8", + "type": "Municipality" + }, + { + "code": "IS-RGY", + "name": "Rangárþing ytra", + "parent": "IS-8", + "type": "Municipality" + }, + { + "code": "IS-RHH", + "name": "Reykhólahreppur", + "parent": "IS-4", + "type": "Municipality" + }, + { + "code": "IS-RKN", + "name": "Reykjanesbær", + "parent": "IS-2", + "type": "Municipality" + }, + { + "code": "IS-RKV", + "name": "Reykjavíkurborg", + "parent": "IS-1", + "type": "Municipality" + }, + { + "code": "IS-SBT", + "name": "Svalbarðsstrandarhreppur", + "parent": "IS-6", + "type": "Municipality" + }, + { + "code": "IS-SDN", + "name": "Suðurnesjabær", + "parent": "IS-2", + "type": "Municipality" + }, + { + "code": "IS-SDV", + "name": "Súðavíkurhreppur", + "parent": "IS-4", + "type": "Municipality" + }, + { + "code": "IS-SEL", + "name": "Seltjarnarnesbær", + "parent": "IS-1", + "type": "Municipality" + }, + { + "code": "IS-SFA", + "name": "Sveitarfélagið Árborg", + "parent": "IS-8", + "type": "Municipality" + }, + { + "code": "IS-SHF", + "name": "Sveitarfélagið Hornafjörður", + "parent": "IS-7", + "type": "Municipality" + }, + { + "code": "IS-SKF", + "name": "Skaftárhreppur", + "parent": "IS-8", + "type": "Municipality" + }, + { + "code": "IS-SKG", + "name": "Skagabyggð", + "parent": "IS-5", + "type": "Municipality" + }, + { + "code": "IS-SKO", + "name": "Skorradalshreppur", + "parent": "IS-3", + "type": "Municipality" + }, + { + "code": "IS-SKR", + "name": "Skagafjörður", + "parent": "IS-5", + "type": "Municipality" + }, + { + "code": "IS-SNF", + "name": "Snæfellsbær", + "parent": "IS-3", + "type": "Municipality" + }, + { + "code": "IS-SOG", + "name": "Skeiða- og Gnúpverjahreppur", + "parent": "IS-8", + "type": "Municipality" + }, + { + "code": "IS-SOL", + "name": "Sveitarfélagið Ölfus", + "parent": "IS-8", + "type": "Municipality" + }, + { + "code": "IS-SSS", + "name": "Sveitarfélagið Skagaströnd", + "parent": "IS-5", + "type": "Municipality" + }, + { + "code": "IS-STR", + "name": "Strandabyggð", + "parent": "IS-4", + "type": "Municipality" + }, + { + "code": "IS-STY", + "name": "Stykkishólmsbær", + "parent": "IS-3", + "type": "Municipality" + }, + { + "code": "IS-SVG", + "name": "Sveitarfélagið Vogar", + "parent": "IS-2", + "type": "Municipality" + }, + { + "code": "IS-TAL", + "name": "Tálknafjarðarhreppur", + "parent": "IS-4", + "type": "Municipality" + }, + { + "code": "IS-THG", + "name": "Þingeyjarsveit", + "parent": "IS-6", + "type": "Municipality" + }, + { + "code": "IS-TJO", + "name": "Tjörneshreppur", + "parent": "IS-6", + "type": "Municipality" + }, + { + "code": "IS-VEM", + "name": "Vestmannaeyjabær", + "parent": "IS-8", + "type": "Municipality" + }, + { + "code": "IS-VER", + "name": "Vesturbyggð", + "parent": "IS-4", + "type": "Municipality" + }, + { + "code": "IS-VOP", + "name": "Vopnafjarðarhreppur", + "parent": "IS-7", + "type": "Municipality" + }, + { + "code": "IT-21", + "name": "Piemonte", + "type": "Region" + }, + { + "code": "IT-23", + "name": "Valle d'Aosta", + "type": "Autonomous region" + }, + { + "code": "IT-25", + "name": "Lombardia", + "type": "Region" + }, + { + "code": "IT-32", + "name": "Trentino-Alto Adige", + "type": "Autonomous region" + }, + { + "code": "IT-34", + "name": "Veneto", + "type": "Region" + }, + { + "code": "IT-36", + "name": "Friuli Venezia Giulia", + "type": "Autonomous region" + }, + { + "code": "IT-42", + "name": "Liguria", + "type": "Region" + }, + { + "code": "IT-45", + "name": "Emilia-Romagna", + "type": "Region" + }, + { + "code": "IT-52", + "name": "Toscana", + "type": "Region" + }, + { + "code": "IT-55", + "name": "Umbria", + "type": "Region" + }, + { + "code": "IT-57", + "name": "Marche", + "type": "Region" + }, + { + "code": "IT-62", + "name": "Lazio", + "type": "Region" + }, + { + "code": "IT-65", + "name": "Abruzzo", + "type": "Region" + }, + { + "code": "IT-67", + "name": "Molise", + "type": "Region" + }, + { + "code": "IT-72", + "name": "Campania", + "type": "Region" + }, + { + "code": "IT-75", + "name": "Puglia", + "type": "Region" + }, + { + "code": "IT-77", + "name": "Basilicata", + "type": "Region" + }, + { + "code": "IT-78", + "name": "Calabria", + "type": "Region" + }, + { + "code": "IT-82", + "name": "Sicilia", + "type": "Autonomous region" + }, + { + "code": "IT-88", + "name": "Sardegna", + "type": "Autonomous region" + }, + { + "code": "IT-AG", + "name": "Agrigento", + "parent": "IT-82", + "type": "Free municipal consortium" + }, + { + "code": "IT-AL", + "name": "Alessandria", + "parent": "IT-21", + "type": "Province" + }, + { + "code": "IT-AN", + "name": "Ancona", + "parent": "IT-57", + "type": "Province" + }, + { + "code": "IT-AP", + "name": "Ascoli Piceno", + "parent": "IT-57", + "type": "Province" + }, + { + "code": "IT-AQ", + "name": "L'Aquila", + "parent": "IT-65", + "type": "Province" + }, + { + "code": "IT-AR", + "name": "Arezzo", + "parent": "IT-52", + "type": "Province" + }, + { + "code": "IT-AT", + "name": "Asti", + "parent": "IT-21", + "type": "Province" + }, + { + "code": "IT-AV", + "name": "Avellino", + "parent": "IT-72", + "type": "Province" + }, + { + "code": "IT-BA", + "name": "Bari", + "parent": "IT-75", + "type": "Metropolitan city" + }, + { + "code": "IT-BG", + "name": "Bergamo", + "parent": "IT-25", + "type": "Province" + }, + { + "code": "IT-BI", + "name": "Biella", + "parent": "IT-21", + "type": "Province" + }, + { + "code": "IT-BL", + "name": "Belluno", + "parent": "IT-34", + "type": "Province" + }, + { + "code": "IT-BN", + "name": "Benevento", + "parent": "IT-72", + "type": "Province" + }, + { + "code": "IT-BO", + "name": "Bologna", + "parent": "IT-45", + "type": "Metropolitan city" + }, + { + "code": "IT-BR", + "name": "Brindisi", + "parent": "IT-75", + "type": "Province" + }, + { + "code": "IT-BS", + "name": "Brescia", + "parent": "IT-25", + "type": "Province" + }, + { + "code": "IT-BT", + "name": "Barletta-Andria-Trani", + "parent": "IT-75", + "type": "Province" + }, + { + "code": "IT-BZ", + "name": "Bolzano", + "parent": "IT-32", + "type": "Autonomous province" + }, + { + "code": "IT-CA", + "name": "Cagliari", + "parent": "IT-88", + "type": "Metropolitan city" + }, + { + "code": "IT-CB", + "name": "Campobasso", + "parent": "IT-67", + "type": "Province" + }, + { + "code": "IT-CE", + "name": "Caserta", + "parent": "IT-72", + "type": "Province" + }, + { + "code": "IT-CH", + "name": "Chieti", + "parent": "IT-65", + "type": "Province" + }, + { + "code": "IT-CL", + "name": "Caltanissetta", + "parent": "IT-82", + "type": "Free municipal consortium" + }, + { + "code": "IT-CN", + "name": "Cuneo", + "parent": "IT-21", + "type": "Province" + }, + { + "code": "IT-CO", + "name": "Como", + "parent": "IT-25", + "type": "Province" + }, + { + "code": "IT-CR", + "name": "Cremona", + "parent": "IT-25", + "type": "Province" + }, + { + "code": "IT-CS", + "name": "Cosenza", + "parent": "IT-78", + "type": "Province" + }, + { + "code": "IT-CT", + "name": "Catania", + "parent": "IT-82", + "type": "Metropolitan city" + }, + { + "code": "IT-CZ", + "name": "Catanzaro", + "parent": "IT-78", + "type": "Province" + }, + { + "code": "IT-EN", + "name": "Enna", + "parent": "IT-82", + "type": "Free municipal consortium" + }, + { + "code": "IT-FC", + "name": "Forlì-Cesena", + "parent": "IT-45", + "type": "Province" + }, + { + "code": "IT-FE", + "name": "Ferrara", + "parent": "IT-45", + "type": "Province" + }, + { + "code": "IT-FG", + "name": "Foggia", + "parent": "IT-75", + "type": "Province" + }, + { + "code": "IT-FI", + "name": "Firenze", + "parent": "IT-52", + "type": "Metropolitan city" + }, + { + "code": "IT-FM", + "name": "Fermo", + "parent": "IT-57", + "type": "Province" + }, + { + "code": "IT-FR", + "name": "Frosinone", + "parent": "IT-62", + "type": "Province" + }, + { + "code": "IT-GE", + "name": "Genova", + "parent": "IT-42", + "type": "Metropolitan city" + }, + { + "code": "IT-GO", + "name": "Gorizia", + "parent": "IT-36", + "type": "Decentralized regional entity" + }, + { + "code": "IT-GR", + "name": "Grosseto", + "parent": "IT-52", + "type": "Province" + }, + { + "code": "IT-IM", + "name": "Imperia", + "parent": "IT-42", + "type": "Province" + }, + { + "code": "IT-IS", + "name": "Isernia", + "parent": "IT-67", + "type": "Province" + }, + { + "code": "IT-KR", + "name": "Crotone", + "parent": "IT-78", + "type": "Province" + }, + { + "code": "IT-LC", + "name": "Lecco", + "parent": "IT-25", + "type": "Province" + }, + { + "code": "IT-LE", + "name": "Lecce", + "parent": "IT-75", + "type": "Province" + }, + { + "code": "IT-LI", + "name": "Livorno", + "parent": "IT-52", + "type": "Province" + }, + { + "code": "IT-LO", + "name": "Lodi", + "parent": "IT-25", + "type": "Province" + }, + { + "code": "IT-LT", + "name": "Latina", + "parent": "IT-62", + "type": "Province" + }, + { + "code": "IT-LU", + "name": "Lucca", + "parent": "IT-52", + "type": "Province" + }, + { + "code": "IT-MB", + "name": "Monza e Brianza", + "parent": "IT-25", + "type": "Province" + }, + { + "code": "IT-MC", + "name": "Macerata", + "parent": "IT-57", + "type": "Province" + }, + { + "code": "IT-ME", + "name": "Messina", + "parent": "IT-82", + "type": "Metropolitan city" + }, + { + "code": "IT-MI", + "name": "Milano", + "parent": "IT-25", + "type": "Metropolitan city" + }, + { + "code": "IT-MN", + "name": "Mantova", + "parent": "IT-25", + "type": "Province" + }, + { + "code": "IT-MO", + "name": "Modena", + "parent": "IT-45", + "type": "Province" + }, + { + "code": "IT-MS", + "name": "Massa-Carrara", + "parent": "IT-52", + "type": "Province" + }, + { + "code": "IT-MT", + "name": "Matera", + "parent": "IT-77", + "type": "Province" + }, + { + "code": "IT-NA", + "name": "Napoli", + "parent": "IT-72", + "type": "Metropolitan city" + }, + { + "code": "IT-NO", + "name": "Novara", + "parent": "IT-21", + "type": "Province" + }, + { + "code": "IT-NU", + "name": "Nuoro", + "parent": "IT-88", + "type": "Province" + }, + { + "code": "IT-OR", + "name": "Oristano", + "parent": "IT-88", + "type": "Province" + }, + { + "code": "IT-PA", + "name": "Palermo", + "parent": "IT-82", + "type": "Metropolitan city" + }, + { + "code": "IT-PC", + "name": "Piacenza", + "parent": "IT-45", + "type": "Province" + }, + { + "code": "IT-PD", + "name": "Padova", + "parent": "IT-34", + "type": "Province" + }, + { + "code": "IT-PE", + "name": "Pescara", + "parent": "IT-65", + "type": "Province" + }, + { + "code": "IT-PG", + "name": "Perugia", + "parent": "IT-55", + "type": "Province" + }, + { + "code": "IT-PI", + "name": "Pisa", + "parent": "IT-52", + "type": "Province" + }, + { + "code": "IT-PN", + "name": "Pordenone", + "parent": "IT-36", + "type": "Decentralized regional entity" + }, + { + "code": "IT-PO", + "name": "Prato", + "parent": "IT-52", + "type": "Province" + }, + { + "code": "IT-PR", + "name": "Parma", + "parent": "IT-45", + "type": "Province" + }, + { + "code": "IT-PT", + "name": "Pistoia", + "parent": "IT-52", + "type": "Province" + }, + { + "code": "IT-PU", + "name": "Pesaro e Urbino", + "parent": "IT-57", + "type": "Province" + }, + { + "code": "IT-PV", + "name": "Pavia", + "parent": "IT-25", + "type": "Province" + }, + { + "code": "IT-PZ", + "name": "Potenza", + "parent": "IT-77", + "type": "Province" + }, + { + "code": "IT-RA", + "name": "Ravenna", + "parent": "IT-45", + "type": "Province" + }, + { + "code": "IT-RC", + "name": "Reggio Calabria", + "parent": "IT-78", + "type": "Metropolitan city" + }, + { + "code": "IT-RE", + "name": "Reggio Emilia", + "parent": "IT-45", + "type": "Province" + }, + { + "code": "IT-RG", + "name": "Ragusa", + "parent": "IT-82", + "type": "Free municipal consortium" + }, + { + "code": "IT-RI", + "name": "Rieti", + "parent": "IT-62", + "type": "Province" + }, + { + "code": "IT-RM", + "name": "Roma", + "parent": "IT-62", + "type": "Metropolitan city" + }, + { + "code": "IT-RN", + "name": "Rimini", + "parent": "IT-45", + "type": "Province" + }, + { + "code": "IT-RO", + "name": "Rovigo", + "parent": "IT-34", + "type": "Province" + }, + { + "code": "IT-SA", + "name": "Salerno", + "parent": "IT-72", + "type": "Province" + }, + { + "code": "IT-SI", + "name": "Siena", + "parent": "IT-52", + "type": "Province" + }, + { + "code": "IT-SO", + "name": "Sondrio", + "parent": "IT-25", + "type": "Province" + }, + { + "code": "IT-SP", + "name": "La Spezia", + "parent": "IT-42", + "type": "Province" + }, + { + "code": "IT-SR", + "name": "Siracusa", + "parent": "IT-82", + "type": "Free municipal consortium" + }, + { + "code": "IT-SS", + "name": "Sassari", + "parent": "IT-88", + "type": "Province" + }, + { + "code": "IT-SU", + "name": "Sud Sardegna", + "parent": "IT-88", + "type": "Province" + }, + { + "code": "IT-SV", + "name": "Savona", + "parent": "IT-42", + "type": "Province" + }, + { + "code": "IT-TA", + "name": "Taranto", + "parent": "IT-75", + "type": "Province" + }, + { + "code": "IT-TE", + "name": "Teramo", + "parent": "IT-65", + "type": "Province" + }, + { + "code": "IT-TN", + "name": "Trento", + "parent": "IT-32", + "type": "Autonomous province" + }, + { + "code": "IT-TO", + "name": "Torino", + "parent": "IT-21", + "type": "Metropolitan city" + }, + { + "code": "IT-TP", + "name": "Trapani", + "parent": "IT-82", + "type": "Free municipal consortium" + }, + { + "code": "IT-TR", + "name": "Terni", + "parent": "IT-55", + "type": "Province" + }, + { + "code": "IT-TS", + "name": "Trieste", + "parent": "IT-36", + "type": "Decentralized regional entity" + }, + { + "code": "IT-TV", + "name": "Treviso", + "parent": "IT-34", + "type": "Province" + }, + { + "code": "IT-UD", + "name": "Udine", + "parent": "IT-36", + "type": "Decentralized regional entity" + }, + { + "code": "IT-VA", + "name": "Varese", + "parent": "IT-25", + "type": "Province" + }, + { + "code": "IT-VB", + "name": "Verbano-Cusio-Ossola", + "parent": "IT-21", + "type": "Province" + }, + { + "code": "IT-VC", + "name": "Vercelli", + "parent": "IT-21", + "type": "Province" + }, + { + "code": "IT-VE", + "name": "Venezia", + "parent": "IT-34", + "type": "Metropolitan city" + }, + { + "code": "IT-VI", + "name": "Vicenza", + "parent": "IT-34", + "type": "Province" + }, + { + "code": "IT-VR", + "name": "Verona", + "parent": "IT-34", + "type": "Province" + }, + { + "code": "IT-VT", + "name": "Viterbo", + "parent": "IT-62", + "type": "Province" + }, + { + "code": "IT-VV", + "name": "Vibo Valentia", + "parent": "IT-78", + "type": "Province" + }, + { + "code": "JM-01", + "name": "Kingston", + "type": "Parish" + }, + { + "code": "JM-02", + "name": "Saint Andrew", + "type": "Parish" + }, + { + "code": "JM-03", + "name": "Saint Thomas", + "type": "Parish" + }, + { + "code": "JM-04", + "name": "Portland", + "type": "Parish" + }, + { + "code": "JM-05", + "name": "Saint Mary", + "type": "Parish" + }, + { + "code": "JM-06", + "name": "Saint Ann", + "type": "Parish" + }, + { + "code": "JM-07", + "name": "Trelawny", + "type": "Parish" + }, + { + "code": "JM-08", + "name": "Saint James", + "type": "Parish" + }, + { + "code": "JM-09", + "name": "Hanover", + "type": "Parish" + }, + { + "code": "JM-10", + "name": "Westmoreland", + "type": "Parish" + }, + { + "code": "JM-11", + "name": "Saint Elizabeth", + "type": "Parish" + }, + { + "code": "JM-12", + "name": "Manchester", + "type": "Parish" + }, + { + "code": "JM-13", + "name": "Clarendon", + "type": "Parish" + }, + { + "code": "JM-14", + "name": "Saint Catherine", + "type": "Parish" + }, + { + "code": "JO-AJ", + "name": "‘Ajlūn", + "type": "Governorate" + }, + { + "code": "JO-AM", + "name": "Al ‘A̅şimah", + "type": "Governorate" + }, + { + "code": "JO-AQ", + "name": "Al ‘Aqabah", + "type": "Governorate" + }, + { + "code": "JO-AT", + "name": "Aţ Ţafīlah", + "type": "Governorate" + }, + { + "code": "JO-AZ", + "name": "Az Zarqā’", + "type": "Governorate" + }, + { + "code": "JO-BA", + "name": "Al Balqā’", + "type": "Governorate" + }, + { + "code": "JO-IR", + "name": "Irbid", + "type": "Governorate" + }, + { + "code": "JO-JA", + "name": "Jarash", + "type": "Governorate" + }, + { + "code": "JO-KA", + "name": "Al Karak", + "type": "Governorate" + }, + { + "code": "JO-MA", + "name": "Al Mafraq", + "type": "Governorate" + }, + { + "code": "JO-MD", + "name": "Mādabā", + "type": "Governorate" + }, + { + "code": "JO-MN", + "name": "Ma‘ān", + "type": "Governorate" + }, + { + "code": "JP-01", + "name": "Hokkaido", + "type": "Prefecture" + }, + { + "code": "JP-02", + "name": "Aomori", + "type": "Prefecture" + }, + { + "code": "JP-03", + "name": "Iwate", + "type": "Prefecture" + }, + { + "code": "JP-04", + "name": "Miyagi", + "type": "Prefecture" + }, + { + "code": "JP-05", + "name": "Akita", + "type": "Prefecture" + }, + { + "code": "JP-06", + "name": "Yamagata", + "type": "Prefecture" + }, + { + "code": "JP-07", + "name": "Fukushima", + "type": "Prefecture" + }, + { + "code": "JP-08", + "name": "Ibaraki", + "type": "Prefecture" + }, + { + "code": "JP-09", + "name": "Tochigi", + "type": "Prefecture" + }, + { + "code": "JP-10", + "name": "Gunma", + "type": "Prefecture" + }, + { + "code": "JP-11", + "name": "Saitama", + "type": "Prefecture" + }, + { + "code": "JP-12", + "name": "Chiba", + "type": "Prefecture" + }, + { + "code": "JP-13", + "name": "Tokyo", + "type": "Prefecture" + }, + { + "code": "JP-14", + "name": "Kanagawa", + "type": "Prefecture" + }, + { + "code": "JP-15", + "name": "Niigata", + "type": "Prefecture" + }, + { + "code": "JP-16", + "name": "Toyama", + "type": "Prefecture" + }, + { + "code": "JP-17", + "name": "Ishikawa", + "type": "Prefecture" + }, + { + "code": "JP-18", + "name": "Fukui", + "type": "Prefecture" + }, + { + "code": "JP-19", + "name": "Yamanashi", + "type": "Prefecture" + }, + { + "code": "JP-20", + "name": "Nagano", + "type": "Prefecture" + }, + { + "code": "JP-21", + "name": "Gifu", + "type": "Prefecture" + }, + { + "code": "JP-22", + "name": "Shizuoka", + "type": "Prefecture" + }, + { + "code": "JP-23", + "name": "Aichi", + "type": "Prefecture" + }, + { + "code": "JP-24", + "name": "Mie", + "type": "Prefecture" + }, + { + "code": "JP-25", + "name": "Shiga", + "type": "Prefecture" + }, + { + "code": "JP-26", + "name": "Kyoto", + "type": "Prefecture" + }, + { + "code": "JP-27", + "name": "Osaka", + "type": "Prefecture" + }, + { + "code": "JP-28", + "name": "Hyogo", + "type": "Prefecture" + }, + { + "code": "JP-29", + "name": "Nara", + "type": "Prefecture" + }, + { + "code": "JP-30", + "name": "Wakayama", + "type": "Prefecture" + }, + { + "code": "JP-31", + "name": "Tottori", + "type": "Prefecture" + }, + { + "code": "JP-32", + "name": "Shimane", + "type": "Prefecture" + }, + { + "code": "JP-33", + "name": "Okayama", + "type": "Prefecture" + }, + { + "code": "JP-34", + "name": "Hiroshima", + "type": "Prefecture" + }, + { + "code": "JP-35", + "name": "Yamaguchi", + "type": "Prefecture" + }, + { + "code": "JP-36", + "name": "Tokushima", + "type": "Prefecture" + }, + { + "code": "JP-37", + "name": "Kagawa", + "type": "Prefecture" + }, + { + "code": "JP-38", + "name": "Ehime", + "type": "Prefecture" + }, + { + "code": "JP-39", + "name": "Kochi", + "type": "Prefecture" + }, + { + "code": "JP-40", + "name": "Fukuoka", + "type": "Prefecture" + }, + { + "code": "JP-41", + "name": "Saga", + "type": "Prefecture" + }, + { + "code": "JP-42", + "name": "Nagasaki", + "type": "Prefecture" + }, + { + "code": "JP-43", + "name": "Kumamoto", + "type": "Prefecture" + }, + { + "code": "JP-44", + "name": "Oita", + "type": "Prefecture" + }, + { + "code": "JP-45", + "name": "Miyazaki", + "type": "Prefecture" + }, + { + "code": "JP-46", + "name": "Kagoshima", + "type": "Prefecture" + }, + { + "code": "JP-47", + "name": "Okinawa", + "type": "Prefecture" + }, + { + "code": "KE-01", + "name": "Baringo", + "type": "County" + }, + { + "code": "KE-02", + "name": "Bomet", + "type": "County" + }, + { + "code": "KE-03", + "name": "Bungoma", + "type": "County" + }, + { + "code": "KE-04", + "name": "Busia", + "type": "County" + }, + { + "code": "KE-05", + "name": "Elgeyo/Marakwet", + "type": "County" + }, + { + "code": "KE-06", + "name": "Embu", + "type": "County" + }, + { + "code": "KE-07", + "name": "Garissa", + "type": "County" + }, + { + "code": "KE-08", + "name": "Homa Bay", + "type": "County" + }, + { + "code": "KE-09", + "name": "Isiolo", + "type": "County" + }, + { + "code": "KE-10", + "name": "Kajiado", + "type": "County" + }, + { + "code": "KE-11", + "name": "Kakamega", + "type": "County" + }, + { + "code": "KE-12", + "name": "Kericho", + "type": "County" + }, + { + "code": "KE-13", + "name": "Kiambu", + "type": "County" + }, + { + "code": "KE-14", + "name": "Kilifi", + "type": "County" + }, + { + "code": "KE-15", + "name": "Kirinyaga", + "type": "County" + }, + { + "code": "KE-16", + "name": "Kisii", + "type": "County" + }, + { + "code": "KE-17", + "name": "Kisumu", + "type": "County" + }, + { + "code": "KE-18", + "name": "Kitui", + "type": "County" + }, + { + "code": "KE-19", + "name": "Kwale", + "type": "County" + }, + { + "code": "KE-20", + "name": "Laikipia", + "type": "County" + }, + { + "code": "KE-21", + "name": "Lamu", + "type": "County" + }, + { + "code": "KE-22", + "name": "Machakos", + "type": "County" + }, + { + "code": "KE-23", + "name": "Makueni", + "type": "County" + }, + { + "code": "KE-24", + "name": "Mandera", + "type": "County" + }, + { + "code": "KE-25", + "name": "Marsabit", + "type": "County" + }, + { + "code": "KE-26", + "name": "Meru", + "type": "County" + }, + { + "code": "KE-27", + "name": "Migori", + "type": "County" + }, + { + "code": "KE-28", + "name": "Mombasa", + "type": "County" + }, + { + "code": "KE-29", + "name": "Murang'a", + "type": "County" + }, + { + "code": "KE-30", + "name": "Nairobi City", + "type": "County" + }, + { + "code": "KE-31", + "name": "Nakuru", + "type": "County" + }, + { + "code": "KE-32", + "name": "Nandi", + "type": "County" + }, + { + "code": "KE-33", + "name": "Narok", + "type": "County" + }, + { + "code": "KE-34", + "name": "Nyamira", + "type": "County" + }, + { + "code": "KE-35", + "name": "Nyandarua", + "type": "County" + }, + { + "code": "KE-36", + "name": "Nyeri", + "type": "County" + }, + { + "code": "KE-37", + "name": "Samburu", + "type": "County" + }, + { + "code": "KE-38", + "name": "Siaya", + "type": "County" + }, + { + "code": "KE-39", + "name": "Taita/Taveta", + "type": "County" + }, + { + "code": "KE-40", + "name": "Tana River", + "type": "County" + }, + { + "code": "KE-41", + "name": "Tharaka-Nithi", + "type": "County" + }, + { + "code": "KE-42", + "name": "Trans Nzoia", + "type": "County" + }, + { + "code": "KE-43", + "name": "Turkana", + "type": "County" + }, + { + "code": "KE-44", + "name": "Uasin Gishu", + "type": "County" + }, + { + "code": "KE-45", + "name": "Vihiga", + "type": "County" + }, + { + "code": "KE-46", + "name": "Wajir", + "type": "County" + }, + { + "code": "KE-47", + "name": "West Pokot", + "type": "County" + }, + { + "code": "KG-B", + "name": "Batken", + "type": "Region" + }, + { + "code": "KG-C", + "name": "Chüy", + "type": "Region" + }, + { + "code": "KG-GB", + "name": "Bishkek Shaary", + "type": "City" + }, + { + "code": "KG-GO", + "name": "Osh Shaary", + "type": "City" + }, + { + "code": "KG-J", + "name": "Jalal-Abad", + "type": "Region" + }, + { + "code": "KG-N", + "name": "Naryn", + "type": "Region" + }, + { + "code": "KG-O", + "name": "Osh", + "type": "Region" + }, + { + "code": "KG-T", + "name": "Talas", + "type": "Region" + }, + { + "code": "KG-Y", + "name": "Ysyk-Köl", + "type": "Region" + }, + { + "code": "KH-1", + "name": "Banteay Mean Choăy", + "type": "Province" + }, + { + "code": "KH-10", + "name": "Kracheh", + "type": "Province" + }, + { + "code": "KH-11", + "name": "Mondol Kiri", + "type": "Province" + }, + { + "code": "KH-12", + "name": "Phnom Penh", + "type": "Autonomous municipality" + }, + { + "code": "KH-13", + "name": "Preah Vihear", + "type": "Province" + }, + { + "code": "KH-14", + "name": "Prey Veaeng", + "type": "Province" + }, + { + "code": "KH-15", + "name": "Pousaat", + "type": "Province" + }, + { + "code": "KH-16", + "name": "Rotanak Kiri", + "type": "Province" + }, + { + "code": "KH-17", + "name": "Siem Reab", + "type": "Province" + }, + { + "code": "KH-18", + "name": "Preah Sihanouk", + "type": "Province" + }, + { + "code": "KH-19", + "name": "Stueng Traeng", + "type": "Province" + }, + { + "code": "KH-2", + "name": "Baat Dambang", + "type": "Province" + }, + { + "code": "KH-20", + "name": "Svaay Rieng", + "type": "Province" + }, + { + "code": "KH-21", + "name": "Taakaev", + "type": "Province" + }, + { + "code": "KH-22", + "name": "Otdar Mean Chey", + "type": "Province" + }, + { + "code": "KH-23", + "name": "Kaeb", + "type": "Province" + }, + { + "code": "KH-24", + "name": "Pailin", + "type": "Province" + }, + { + "code": "KH-25", + "name": "Tbong Khmum", + "type": "Province" + }, + { + "code": "KH-3", + "name": "Kampong Chaam", + "type": "Province" + }, + { + "code": "KH-4", + "name": "Kampong Chhnang", + "type": "Province" + }, + { + "code": "KH-5", + "name": "Kampong Spueu", + "type": "Province" + }, + { + "code": "KH-6", + "name": "Kampong Thum", + "type": "Province" + }, + { + "code": "KH-7", + "name": "Kampot", + "type": "Province" + }, + { + "code": "KH-8", + "name": "Kandaal", + "type": "Province" + }, + { + "code": "KH-9", + "name": "Kaoh Kong", + "type": "Province" + }, + { + "code": "KI-G", + "name": "Gilbert Islands", + "type": "Group of islands (20 inhabited islands)" + }, + { + "code": "KI-L", + "name": "Line Islands", + "type": "Group of islands (20 inhabited islands)" + }, + { + "code": "KI-P", + "name": "Phoenix Islands", + "type": "Group of islands (20 inhabited islands)" + }, + { + "code": "KM-A", + "name": "Anjouan", + "type": "Island" + }, + { + "code": "KM-G", + "name": "Grande Comore", + "type": "Island" + }, + { + "code": "KM-M", + "name": "Mohéli", + "type": "Island" + }, + { + "code": "KN-01", + "name": "Christ Church Nichola Town", + "parent": "KN-K", + "type": "Parish" + }, + { + "code": "KN-02", + "name": "Saint Anne Sandy Point", + "parent": "KN-K", + "type": "Parish" + }, + { + "code": "KN-03", + "name": "Saint George Basseterre", + "parent": "KN-K", + "type": "Parish" + }, + { + "code": "KN-04", + "name": "Saint George Gingerland", + "parent": "KN-N", + "type": "Parish" + }, + { + "code": "KN-05", + "name": "Saint James Windward", + "parent": "KN-N", + "type": "Parish" + }, + { + "code": "KN-06", + "name": "Saint John Capisterre", + "parent": "KN-K", + "type": "Parish" + }, + { + "code": "KN-07", + "name": "Saint John Figtree", + "parent": "KN-N", + "type": "Parish" + }, + { + "code": "KN-08", + "name": "Saint Mary Cayon", + "parent": "KN-K", + "type": "Parish" + }, + { + "code": "KN-09", + "name": "Saint Paul Capisterre", + "parent": "KN-K", + "type": "Parish" + }, + { + "code": "KN-10", + "name": "Saint Paul Charlestown", + "parent": "KN-N", + "type": "Parish" + }, + { + "code": "KN-11", + "name": "Saint Peter Basseterre", + "parent": "KN-K", + "type": "Parish" + }, + { + "code": "KN-12", + "name": "Saint Thomas Lowland", + "parent": "KN-N", + "type": "Parish" + }, + { + "code": "KN-13", + "name": "Saint Thomas Middle Island", + "parent": "KN-K", + "type": "Parish" + }, + { + "code": "KN-15", + "name": "Trinity Palmetto Point", + "parent": "KN-K", + "type": "Parish" + }, + { + "code": "KN-K", + "name": "Saint Kitts", + "type": "State" + }, + { + "code": "KN-N", + "name": "Nevis", + "type": "State" + }, + { + "code": "KP-01", + "name": "Phyeongyang", + "type": "Capital city" + }, + { + "code": "KP-02", + "name": "Phyeongannamto", + "type": "Province" + }, + { + "code": "KP-03", + "name": "Phyeonganpukto", + "type": "Province" + }, + { + "code": "KP-04", + "name": "Jakangto", + "type": "Province" + }, + { + "code": "KP-05", + "name": "Hwanghainamto", + "type": "Province" + }, + { + "code": "KP-06", + "name": "Hwanghaipukto", + "type": "Province" + }, + { + "code": "KP-07", + "name": "Kangweonto", + "type": "Province" + }, + { + "code": "KP-08", + "name": "Hamkyeongnamto", + "type": "Province" + }, + { + "code": "KP-09", + "name": "Hamkyeongpukto", + "type": "Province" + }, + { + "code": "KP-10", + "name": "Ryangkangto", + "type": "Province" + }, + { + "code": "KP-13", + "name": "Raseon", + "type": "Special city" + }, + { + "code": "KP-14", + "name": "Nampho", + "type": "Metropolitan city" + }, + { + "code": "KP-15", + "name": "Kaeseong", + "type": "Metropolitan city" + }, + { + "code": "KR-11", + "name": "Seoul-teukbyeolsi", + "type": "Special city" + }, + { + "code": "KR-26", + "name": "Busan-gwangyeoksi", + "type": "Metropolitan city" + }, + { + "code": "KR-27", + "name": "Daegu-gwangyeoksi", + "type": "Metropolitan city" + }, + { + "code": "KR-28", + "name": "Incheon-gwangyeoksi", + "type": "Metropolitan city" + }, + { + "code": "KR-29", + "name": "Gwangju-gwangyeoksi", + "type": "Metropolitan city" + }, + { + "code": "KR-30", + "name": "Daejeon-gwangyeoksi", + "type": "Metropolitan city" + }, + { + "code": "KR-31", + "name": "Ulsan-gwangyeoksi", + "type": "Metropolitan city" + }, + { + "code": "KR-41", + "name": "Gyeonggi-do", + "type": "Province" + }, + { + "code": "KR-42", + "name": "Gangwon-teukbyeoljachido", + "type": "Special self-governing province" + }, + { + "code": "KR-43", + "name": "Chungcheongbuk-do", + "type": "Province" + }, + { + "code": "KR-44", + "name": "Chungcheongnam-do", + "type": "Province" + }, + { + "code": "KR-45", + "name": "Jeollabuk-do", + "type": "Province" + }, + { + "code": "KR-46", + "name": "Jeollanam-do", + "type": "Province" + }, + { + "code": "KR-47", + "name": "Gyeongsangbuk-do", + "type": "Province" + }, + { + "code": "KR-48", + "name": "Gyeongsangnam-do", + "type": "Province" + }, + { + "code": "KR-49", + "name": "Jeju-teukbyeoljachido", + "type": "Special self-governing province" + }, + { + "code": "KR-50", + "name": "Sejong", + "type": "Special self-governing city" + }, + { + "code": "KW-AH", + "name": "Al Aḩmadī", + "type": "Governorate" + }, + { + "code": "KW-FA", + "name": "Al Farwānīyah", + "type": "Governorate" + }, + { + "code": "KW-HA", + "name": "Ḩawallī", + "type": "Governorate" + }, + { + "code": "KW-JA", + "name": "Al Jahrā’", + "type": "Governorate" + }, + { + "code": "KW-KU", + "name": "Al ‘Āşimah", + "type": "Governorate" + }, + { + "code": "KW-MU", + "name": "Mubārak al Kabīr", + "type": "Governorate" + }, + { + "code": "KZ-10", + "name": "Abay oblysy", + "type": "Region" + }, + { + "code": "KZ-11", + "name": "Aqmola oblysy", + "type": "Region" + }, + { + "code": "KZ-15", + "name": "Aqtöbe oblysy", + "type": "Region" + }, + { + "code": "KZ-19", + "name": "Almaty oblysy", + "type": "Region" + }, + { + "code": "KZ-23", + "name": "Atyraū oblysy", + "type": "Region" + }, + { + "code": "KZ-27", + "name": "Batys Qazaqstan oblysy", + "type": "Region" + }, + { + "code": "KZ-31", + "name": "Zhambyl oblysy", + "type": "Region" + }, + { + "code": "KZ-33", + "name": "Zhetisū oblysy", + "type": "Region" + }, + { + "code": "KZ-35", + "name": "Qaraghandy oblysy", + "type": "Region" + }, + { + "code": "KZ-39", + "name": "Qostanay oblysy", + "type": "Region" + }, + { + "code": "KZ-43", + "name": "Qyzylorda oblysy", + "type": "Region" + }, + { + "code": "KZ-47", + "name": "Mangghystaū oblysy", + "type": "Region" + }, + { + "code": "KZ-55", + "name": "Pavlodar oblysy", + "type": "Region" + }, + { + "code": "KZ-59", + "name": "Soltüstik Qazaqstan oblysy", + "type": "Region" + }, + { + "code": "KZ-61", + "name": "Türkistan oblysy", + "type": "Region" + }, + { + "code": "KZ-62", + "name": "Ulytaū oblysy", + "type": "Region" + }, + { + "code": "KZ-63", + "name": "Shyghys Qazaqstan oblysy", + "type": "Region" + }, + { + "code": "KZ-71", + "name": "Astana", + "type": "City" + }, + { + "code": "KZ-75", + "name": "Almaty", + "type": "City" + }, + { + "code": "KZ-79", + "name": "Shymkent", + "type": "City" + }, + { + "code": "LA-AT", + "name": "Attapu", + "type": "Province" + }, + { + "code": "LA-BK", + "name": "Bokèo", + "type": "Province" + }, + { + "code": "LA-BL", + "name": "Bolikhamxai", + "type": "Province" + }, + { + "code": "LA-CH", + "name": "Champasak", + "type": "Province" + }, + { + "code": "LA-HO", + "name": "Houaphan", + "type": "Province" + }, + { + "code": "LA-KH", + "name": "Khammouan", + "type": "Province" + }, + { + "code": "LA-LM", + "name": "Louang Namtha", + "type": "Province" + }, + { + "code": "LA-LP", + "name": "Louangphabang", + "type": "Province" + }, + { + "code": "LA-OU", + "name": "Oudômxai", + "type": "Province" + }, + { + "code": "LA-PH", + "name": "Phôngsali", + "type": "Province" + }, + { + "code": "LA-SL", + "name": "Salavan", + "type": "Province" + }, + { + "code": "LA-SV", + "name": "Savannakhét", + "type": "Province" + }, + { + "code": "LA-VI", + "name": "Viangchan", + "type": "Province" + }, + { + "code": "LA-VT", + "name": "Viangchan", + "type": "Prefecture" + }, + { + "code": "LA-XA", + "name": "Xaignabouli", + "type": "Province" + }, + { + "code": "LA-XE", + "name": "Xékong", + "type": "Province" + }, + { + "code": "LA-XI", + "name": "Xiangkhouang", + "type": "Province" + }, + { + "code": "LA-XS", + "name": "Xaisômboun", + "type": "Province" + }, + { + "code": "LB-AK", + "name": "‘Akkār", + "type": "Governorate" + }, + { + "code": "LB-AS", + "name": "Ash Shimāl", + "type": "Governorate" + }, + { + "code": "LB-BA", + "name": "Bayrūt", + "type": "Governorate" + }, + { + "code": "LB-BH", + "name": "B‘alabak-Al Hirmil", + "type": "Governorate" + }, + { + "code": "LB-BI", + "name": "Al Biqā‘", + "type": "Governorate" + }, + { + "code": "LB-JA", + "name": "Al Janūb", + "type": "Governorate" + }, + { + "code": "LB-JL", + "name": "Jabal Lubnān", + "type": "Governorate" + }, + { + "code": "LB-NA", + "name": "An Nabaţīyah", + "type": "Governorate" + }, + { + "code": "LC-01", + "name": "Anse la Raye", + "type": "District" + }, + { + "code": "LC-02", + "name": "Castries", + "type": "District" + }, + { + "code": "LC-03", + "name": "Choiseul", + "type": "District" + }, + { + "code": "LC-05", + "name": "Dennery", + "type": "District" + }, + { + "code": "LC-06", + "name": "Gros Islet", + "type": "District" + }, + { + "code": "LC-07", + "name": "Laborie", + "type": "District" + }, + { + "code": "LC-08", + "name": "Micoud", + "type": "District" + }, + { + "code": "LC-10", + "name": "Soufrière", + "type": "District" + }, + { + "code": "LC-11", + "name": "Vieux Fort", + "type": "District" + }, + { + "code": "LC-12", + "name": "Canaries", + "type": "District" + }, + { + "code": "LI-01", + "name": "Balzers", + "type": "Commune" + }, + { + "code": "LI-02", + "name": "Eschen", + "type": "Commune" + }, + { + "code": "LI-03", + "name": "Gamprin", + "type": "Commune" + }, + { + "code": "LI-04", + "name": "Mauren", + "type": "Commune" + }, + { + "code": "LI-05", + "name": "Planken", + "type": "Commune" + }, + { + "code": "LI-06", + "name": "Ruggell", + "type": "Commune" + }, + { + "code": "LI-07", + "name": "Schaan", + "type": "Commune" + }, + { + "code": "LI-08", + "name": "Schellenberg", + "type": "Commune" + }, + { + "code": "LI-09", + "name": "Triesen", + "type": "Commune" + }, + { + "code": "LI-10", + "name": "Triesenberg", + "type": "Commune" + }, + { + "code": "LI-11", + "name": "Vaduz", + "type": "Commune" + }, + { + "code": "LK-1", + "name": "Western Province", + "type": "Province" + }, + { + "code": "LK-11", + "name": "Colombo", + "parent": "LK-1", + "type": "District" + }, + { + "code": "LK-12", + "name": "Gampaha", + "parent": "LK-1", + "type": "District" + }, + { + "code": "LK-13", + "name": "Kalutara", + "parent": "LK-1", + "type": "District" + }, + { + "code": "LK-2", + "name": "Central Province", + "type": "Province" + }, + { + "code": "LK-21", + "name": "Kandy", + "parent": "LK-2", + "type": "District" + }, + { + "code": "LK-22", + "name": "Matale", + "parent": "LK-2", + "type": "District" + }, + { + "code": "LK-23", + "name": "Nuwara Eliya", + "parent": "LK-2", + "type": "District" + }, + { + "code": "LK-3", + "name": "Southern Province", + "type": "Province" + }, + { + "code": "LK-31", + "name": "Galle", + "parent": "LK-3", + "type": "District" + }, + { + "code": "LK-32", + "name": "Matara", + "parent": "LK-3", + "type": "District" + }, + { + "code": "LK-33", + "name": "Hambantota", + "parent": "LK-3", + "type": "District" + }, + { + "code": "LK-4", + "name": "Northern Province", + "type": "Province" + }, + { + "code": "LK-41", + "name": "Jaffna", + "parent": "LK-4", + "type": "District" + }, + { + "code": "LK-42", + "name": "Kilinochchi", + "parent": "LK-4", + "type": "District" + }, + { + "code": "LK-43", + "name": "Mannar", + "parent": "LK-4", + "type": "District" + }, + { + "code": "LK-44", + "name": "Vavuniya", + "parent": "LK-4", + "type": "District" + }, + { + "code": "LK-45", + "name": "Mullaittivu", + "parent": "LK-4", + "type": "District" + }, + { + "code": "LK-5", + "name": "Eastern Province", + "type": "Province" + }, + { + "code": "LK-51", + "name": "Batticaloa", + "parent": "LK-5", + "type": "District" + }, + { + "code": "LK-52", + "name": "Ampara", + "parent": "LK-5", + "type": "District" + }, + { + "code": "LK-53", + "name": "Trincomalee", + "parent": "LK-5", + "type": "District" + }, + { + "code": "LK-6", + "name": "North Western Province", + "type": "Province" + }, + { + "code": "LK-61", + "name": "Kurunegala", + "parent": "LK-6", + "type": "District" + }, + { + "code": "LK-62", + "name": "Puttalam", + "parent": "LK-6", + "type": "District" + }, + { + "code": "LK-7", + "name": "North Central Province", + "type": "Province" + }, + { + "code": "LK-71", + "name": "Anuradhapura", + "parent": "LK-7", + "type": "District" + }, + { + "code": "LK-72", + "name": "Polonnaruwa", + "parent": "LK-7", + "type": "District" + }, + { + "code": "LK-8", + "name": "Uva Province", + "type": "Province" + }, + { + "code": "LK-81", + "name": "Badulla", + "parent": "LK-8", + "type": "District" + }, + { + "code": "LK-82", + "name": "Monaragala", + "parent": "LK-8", + "type": "District" + }, + { + "code": "LK-9", + "name": "Sabaragamuwa Province", + "type": "Province" + }, + { + "code": "LK-91", + "name": "Ratnapura", + "parent": "LK-9", + "type": "District" + }, + { + "code": "LK-92", + "name": "Kegalla", + "parent": "LK-9", + "type": "District" + }, + { + "code": "LR-BG", + "name": "Bong", + "type": "County" + }, + { + "code": "LR-BM", + "name": "Bomi", + "type": "County" + }, + { + "code": "LR-CM", + "name": "Grand Cape Mount", + "type": "County" + }, + { + "code": "LR-GB", + "name": "Grand Bassa", + "type": "County" + }, + { + "code": "LR-GG", + "name": "Grand Gedeh", + "type": "County" + }, + { + "code": "LR-GK", + "name": "Grand Kru", + "type": "County" + }, + { + "code": "LR-GP", + "name": "Gbarpolu", + "type": "County" + }, + { + "code": "LR-LO", + "name": "Lofa", + "type": "County" + }, + { + "code": "LR-MG", + "name": "Margibi", + "type": "County" + }, + { + "code": "LR-MO", + "name": "Montserrado", + "type": "County" + }, + { + "code": "LR-MY", + "name": "Maryland", + "type": "County" + }, + { + "code": "LR-NI", + "name": "Nimba", + "type": "County" + }, + { + "code": "LR-RG", + "name": "River Gee", + "type": "County" + }, + { + "code": "LR-RI", + "name": "River Cess", + "type": "County" + }, + { + "code": "LR-SI", + "name": "Sinoe", + "type": "County" + }, + { + "code": "LS-A", + "name": "Maseru", + "type": "District" + }, + { + "code": "LS-B", + "name": "Botha-Bothe", + "type": "District" + }, + { + "code": "LS-C", + "name": "Leribe", + "type": "District" + }, + { + "code": "LS-D", + "name": "Berea", + "type": "District" + }, + { + "code": "LS-E", + "name": "Mafeteng", + "type": "District" + }, + { + "code": "LS-F", + "name": "Mohale's Hoek", + "type": "District" + }, + { + "code": "LS-G", + "name": "Quthing", + "type": "District" + }, + { + "code": "LS-H", + "name": "Qacha's Nek", + "type": "District" + }, + { + "code": "LS-J", + "name": "Mokhotlong", + "type": "District" + }, + { + "code": "LS-K", + "name": "Thaba-Tseka", + "type": "District" + }, + { + "code": "LT-01", + "name": "Akmenė", + "parent": "LT-SA", + "type": "District municipality" + }, + { + "code": "LT-02", + "name": "Alytaus miestas", + "parent": "LT-AL", + "type": "City municipality" + }, + { + "code": "LT-03", + "name": "Alytus", + "parent": "LT-AL", + "type": "District municipality" + }, + { + "code": "LT-04", + "name": "Anykščiai", + "parent": "LT-UT", + "type": "District municipality" + }, + { + "code": "LT-05", + "name": "Birštonas", + "parent": "LT-KU", + "type": "Municipality" + }, + { + "code": "LT-06", + "name": "Biržai", + "parent": "LT-PN", + "type": "District municipality" + }, + { + "code": "LT-07", + "name": "Druskininkai", + "parent": "LT-AL", + "type": "Municipality" + }, + { + "code": "LT-08", + "name": "Elektrėnai", + "parent": "LT-VL", + "type": "Municipality" + }, + { + "code": "LT-09", + "name": "Ignalina", + "parent": "LT-UT", + "type": "District municipality" + }, + { + "code": "LT-10", + "name": "Jonava", + "parent": "LT-KU", + "type": "District municipality" + }, + { + "code": "LT-11", + "name": "Joniškis", + "parent": "LT-SA", + "type": "District municipality" + }, + { + "code": "LT-12", + "name": "Jurbarkas", + "parent": "LT-TA", + "type": "District municipality" + }, + { + "code": "LT-13", + "name": "Kaišiadorys", + "parent": "LT-KU", + "type": "District municipality" + }, + { + "code": "LT-14", + "name": "Kalvarija", + "parent": "LT-MR", + "type": "Municipality" + }, + { + "code": "LT-15", + "name": "Kauno miestas", + "parent": "LT-KU", + "type": "City municipality" + }, + { + "code": "LT-16", + "name": "Kaunas", + "parent": "LT-KU", + "type": "District municipality" + }, + { + "code": "LT-17", + "name": "Kazlų Rūdos", + "parent": "LT-MR", + "type": "Municipality" + }, + { + "code": "LT-18", + "name": "Kėdainiai", + "parent": "LT-KU", + "type": "District municipality" + }, + { + "code": "LT-19", + "name": "Kelmė", + "parent": "LT-SA", + "type": "District municipality" + }, + { + "code": "LT-20", + "name": "Klaipėdos miestas", + "parent": "LT-KL", + "type": "City municipality" + }, + { + "code": "LT-21", + "name": "Klaipėda", + "parent": "LT-KL", + "type": "District municipality" + }, + { + "code": "LT-22", + "name": "Kretinga", + "parent": "LT-KL", + "type": "District municipality" + }, + { + "code": "LT-23", + "name": "Kupiškis", + "parent": "LT-PN", + "type": "District municipality" + }, + { + "code": "LT-24", + "name": "Lazdijai", + "parent": "LT-AL", + "type": "District municipality" + }, + { + "code": "LT-25", + "name": "Marijampolė", + "parent": "LT-MR", + "type": "District municipality" + }, + { + "code": "LT-26", + "name": "Mažeikiai", + "parent": "LT-TE", + "type": "District municipality" + }, + { + "code": "LT-27", + "name": "Molėtai", + "parent": "LT-UT", + "type": "District municipality" + }, + { + "code": "LT-28", + "name": "Neringa", + "parent": "LT-KL", + "type": "Municipality" + }, + { + "code": "LT-29", + "name": "Pagėgiai", + "parent": "LT-TA", + "type": "Municipality" + }, + { + "code": "LT-30", + "name": "Pakruojis", + "parent": "LT-SA", + "type": "District municipality" + }, + { + "code": "LT-31", + "name": "Palangos miestas", + "parent": "LT-KL", + "type": "City municipality" + }, + { + "code": "LT-32", + "name": "Panevėžio miestas", + "parent": "LT-PN", + "type": "City municipality" + }, + { + "code": "LT-33", + "name": "Panevėžys", + "parent": "LT-PN", + "type": "District municipality" + }, + { + "code": "LT-34", + "name": "Pasvalys", + "parent": "LT-PN", + "type": "District municipality" + }, + { + "code": "LT-35", + "name": "Plungė", + "parent": "LT-TE", + "type": "District municipality" + }, + { + "code": "LT-36", + "name": "Prienai", + "parent": "LT-KU", + "type": "District municipality" + }, + { + "code": "LT-37", + "name": "Radviliškis", + "parent": "LT-SA", + "type": "District municipality" + }, + { + "code": "LT-38", + "name": "Raseiniai", + "parent": "LT-KU", + "type": "District municipality" + }, + { + "code": "LT-39", + "name": "Rietavas", + "parent": "LT-TE", + "type": "Municipality" + }, + { + "code": "LT-40", + "name": "Rokiškis", + "parent": "LT-PN", + "type": "District municipality" + }, + { + "code": "LT-41", + "name": "Šakiai", + "parent": "LT-MR", + "type": "District municipality" + }, + { + "code": "LT-42", + "name": "Šalčininkai", + "parent": "LT-VL", + "type": "District municipality" + }, + { + "code": "LT-43", + "name": "Šiaulių miestas", + "parent": "LT-SA", + "type": "City municipality" + }, + { + "code": "LT-44", + "name": "Šiauliai", + "parent": "LT-SA", + "type": "District municipality" + }, + { + "code": "LT-45", + "name": "Šilalė", + "parent": "LT-TA", + "type": "District municipality" + }, + { + "code": "LT-46", + "name": "Šilutė", + "parent": "LT-KL", + "type": "District municipality" + }, + { + "code": "LT-47", + "name": "Širvintos", + "parent": "LT-VL", + "type": "District municipality" + }, + { + "code": "LT-48", + "name": "Skuodas", + "parent": "LT-KL", + "type": "District municipality" + }, + { + "code": "LT-49", + "name": "Švenčionys", + "parent": "LT-VL", + "type": "District municipality" + }, + { + "code": "LT-50", + "name": "Tauragė", + "parent": "LT-TA", + "type": "District municipality" + }, + { + "code": "LT-51", + "name": "Telšiai", + "parent": "LT-TE", + "type": "District municipality" + }, + { + "code": "LT-52", + "name": "Trakai", + "parent": "LT-VL", + "type": "District municipality" + }, + { + "code": "LT-53", + "name": "Ukmergė", + "parent": "LT-VL", + "type": "District municipality" + }, + { + "code": "LT-54", + "name": "Utena", + "parent": "LT-UT", + "type": "District municipality" + }, + { + "code": "LT-55", + "name": "Varėna", + "parent": "LT-AL", + "type": "District municipality" + }, + { + "code": "LT-56", + "name": "Vilkaviškis", + "parent": "LT-MR", + "type": "District municipality" + }, + { + "code": "LT-57", + "name": "Vilniaus miestas", + "parent": "LT-VL", + "type": "City municipality" + }, + { + "code": "LT-58", + "name": "Vilnius", + "parent": "LT-VL", + "type": "District municipality" + }, + { + "code": "LT-59", + "name": "Visaginas", + "parent": "LT-UT", + "type": "Municipality" + }, + { + "code": "LT-60", + "name": "Zarasai", + "parent": "LT-UT", + "type": "District municipality" + }, + { + "code": "LT-AL", + "name": "Alytaus apskritis", + "type": "County" + }, + { + "code": "LT-KL", + "name": "Klaipėdos apskritis", + "type": "County" + }, + { + "code": "LT-KU", + "name": "Kauno apskritis", + "type": "County" + }, + { + "code": "LT-MR", + "name": "Marijampolės apskritis", + "type": "County" + }, + { + "code": "LT-PN", + "name": "Panevėžio apskritis", + "type": "County" + }, + { + "code": "LT-SA", + "name": "Šiaulių apskritis", + "type": "County" + }, + { + "code": "LT-TA", + "name": "Tauragės apskritis", + "type": "County" + }, + { + "code": "LT-TE", + "name": "Telšių apskritis", + "type": "County" + }, + { + "code": "LT-UT", + "name": "Utenos apskritis", + "type": "County" + }, + { + "code": "LT-VL", + "name": "Vilniaus apskritis", + "type": "County" + }, + { + "code": "LU-CA", + "name": "Capellen", + "type": "Canton" + }, + { + "code": "LU-CL", + "name": "Clervaux", + "type": "Canton" + }, + { + "code": "LU-DI", + "name": "Diekirch", + "type": "Canton" + }, + { + "code": "LU-EC", + "name": "Echternach", + "type": "Canton" + }, + { + "code": "LU-ES", + "name": "Esch-sur-Alzette", + "type": "Canton" + }, + { + "code": "LU-GR", + "name": "Grevenmacher", + "type": "Canton" + }, + { + "code": "LU-LU", + "name": "Luxembourg", + "type": "Canton" + }, + { + "code": "LU-ME", + "name": "Mersch", + "type": "Canton" + }, + { + "code": "LU-RD", + "name": "Redange", + "type": "Canton" + }, + { + "code": "LU-RM", + "name": "Remich", + "type": "Canton" + }, + { + "code": "LU-VD", + "name": "Vianden", + "type": "Canton" + }, + { + "code": "LU-WI", + "name": "Wiltz", + "type": "Canton" + }, + { + "code": "LV-002", + "name": "Aizkraukles novads", + "type": "Municipality" + }, + { + "code": "LV-007", + "name": "Alūksnes novads", + "type": "Municipality" + }, + { + "code": "LV-011", + "name": "Ādažu novads", + "type": "Municipality" + }, + { + "code": "LV-015", + "name": "Balvu novads", + "type": "Municipality" + }, + { + "code": "LV-016", + "name": "Bauskas novads", + "type": "Municipality" + }, + { + "code": "LV-022", + "name": "Cēsu novads", + "type": "Municipality" + }, + { + "code": "LV-026", + "name": "Dobeles novads", + "type": "Municipality" + }, + { + "code": "LV-033", + "name": "Gulbenes novads", + "type": "Municipality" + }, + { + "code": "LV-041", + "name": "Jelgavas novads", + "type": "Municipality" + }, + { + "code": "LV-042", + "name": "Jēkabpils novads", + "type": "Municipality" + }, + { + "code": "LV-047", + "name": "Krāslavas novads", + "type": "Municipality" + }, + { + "code": "LV-050", + "name": "Kuldīgas novads", + "type": "Municipality" + }, + { + "code": "LV-052", + "name": "Ķekavas novads", + "type": "Municipality" + }, + { + "code": "LV-054", + "name": "Limbažu novads", + "type": "Municipality" + }, + { + "code": "LV-056", + "name": "Līvānu novads", + "type": "Municipality" + }, + { + "code": "LV-058", + "name": "Ludzas novads", + "type": "Municipality" + }, + { + "code": "LV-059", + "name": "Madonas novads", + "type": "Municipality" + }, + { + "code": "LV-062", + "name": "Mārupes novads", + "type": "Municipality" + }, + { + "code": "LV-067", + "name": "Ogres novads", + "type": "Municipality" + }, + { + "code": "LV-068", + "name": "Olaines novads", + "type": "Municipality" + }, + { + "code": "LV-073", + "name": "Preiļu novads", + "type": "Municipality" + }, + { + "code": "LV-077", + "name": "Rēzeknes novads", + "type": "Municipality" + }, + { + "code": "LV-080", + "name": "Ropažu novads", + "type": "Municipality" + }, + { + "code": "LV-087", + "name": "Salaspils novads", + "type": "Municipality" + }, + { + "code": "LV-088", + "name": "Saldus novads", + "type": "Municipality" + }, + { + "code": "LV-089", + "name": "Saulkrastu novads", + "type": "Municipality" + }, + { + "code": "LV-091", + "name": "Siguldas novads", + "type": "Municipality" + }, + { + "code": "LV-094", + "name": "Smiltenes novads", + "type": "Municipality" + }, + { + "code": "LV-097", + "name": "Talsu novads", + "type": "Municipality" + }, + { + "code": "LV-099", + "name": "Tukuma novads", + "type": "Municipality" + }, + { + "code": "LV-101", + "name": "Valkas novads", + "type": "Municipality" + }, + { + "code": "LV-102", + "name": "Varakļānu novads", + "type": "Municipality" + }, + { + "code": "LV-106", + "name": "Ventspils novads", + "type": "Municipality" + }, + { + "code": "LV-111", + "name": "Augšdaugavas novads", + "type": "Municipality" + }, + { + "code": "LV-112", + "name": "Dienvidkurzemes Novads", + "type": "Municipality" + }, + { + "code": "LV-113", + "name": "Valmieras Novads", + "type": "Municipality" + }, + { + "code": "LV-DGV", + "name": "Daugavpils", + "type": "State city" + }, + { + "code": "LV-JEL", + "name": "Jelgava", + "type": "State city" + }, + { + "code": "LV-JUR", + "name": "Jūrmala", + "type": "State city" + }, + { + "code": "LV-LPX", + "name": "Liepāja", + "type": "State city" + }, + { + "code": "LV-REZ", + "name": "Rēzekne", + "type": "State city" + }, + { + "code": "LV-RIX", + "name": "Rīga", + "type": "State city" + }, + { + "code": "LV-VEN", + "name": "Ventspils", + "type": "State city" + }, + { + "code": "LY-BA", + "name": "Banghāzī", + "type": "Popularate" + }, + { + "code": "LY-BU", + "name": "Al Buţnān", + "type": "Popularate" + }, + { + "code": "LY-DR", + "name": "Darnah", + "type": "Popularate" + }, + { + "code": "LY-GT", + "name": "Ghāt", + "type": "Popularate" + }, + { + "code": "LY-JA", + "name": "Al Jabal al Akhḑar", + "type": "Popularate" + }, + { + "code": "LY-JG", + "name": "Al Jabal al Gharbī", + "type": "Popularate" + }, + { + "code": "LY-JI", + "name": "Al Jafārah", + "type": "Popularate" + }, + { + "code": "LY-JU", + "name": "Al Jufrah", + "type": "Popularate" + }, + { + "code": "LY-KF", + "name": "Al Kufrah", + "type": "Popularate" + }, + { + "code": "LY-MB", + "name": "Al Marqab", + "type": "Popularate" + }, + { + "code": "LY-MI", + "name": "Mişrātah", + "type": "Popularate" + }, + { + "code": "LY-MJ", + "name": "Al Marj", + "type": "Popularate" + }, + { + "code": "LY-MQ", + "name": "Murzuq", + "type": "Popularate" + }, + { + "code": "LY-NL", + "name": "Nālūt", + "type": "Popularate" + }, + { + "code": "LY-NQ", + "name": "An Nuqāţ al Khams", + "type": "Popularate" + }, + { + "code": "LY-SB", + "name": "Sabhā", + "type": "Popularate" + }, + { + "code": "LY-SR", + "name": "Surt", + "type": "Popularate" + }, + { + "code": "LY-TB", + "name": "Ţarābulus", + "type": "Popularate" + }, + { + "code": "LY-WA", + "name": "Al Wāḩāt", + "type": "Popularate" + }, + { + "code": "LY-WD", + "name": "Wādī al Ḩayāt", + "type": "Popularate" + }, + { + "code": "LY-WS", + "name": "Wādī ash Shāţi’", + "type": "Popularate" + }, + { + "code": "LY-ZA", + "name": "Az Zāwiyah", + "type": "Popularate" + }, + { + "code": "MA-01", + "name": "Tanger-Tétouan-Al Hoceïma", + "type": "Region" + }, + { + "code": "MA-02", + "name": "L'Oriental", + "type": "Region" + }, + { + "code": "MA-03", + "name": "Fès-Meknès", + "type": "Region" + }, + { + "code": "MA-04", + "name": "Rabat-Salé-Kénitra", + "type": "Region" + }, + { + "code": "MA-05", + "name": "Béni Mellal-Khénifra", + "type": "Region" + }, + { + "code": "MA-06", + "name": "Casablanca-Settat", + "type": "Region" + }, + { + "code": "MA-07", + "name": "Marrakech-Safi", + "type": "Region" + }, + { + "code": "MA-08", + "name": "Drâa-Tafilalet", + "type": "Region" + }, + { + "code": "MA-09", + "name": "Souss-Massa", + "type": "Region" + }, + { + "code": "MA-10", + "name": "Guelmim-Oued Noun (EH-partial)", + "type": "Region" + }, + { + "code": "MA-11", + "name": "Laâyoune-Sakia El Hamra (EH-partial)", + "type": "Region" + }, + { + "code": "MA-12", + "name": "Dakhla-Oued Ed-Dahab (EH)", + "type": "Region" + }, + { + "code": "MA-AGD", + "name": "Agadir-Ida-Ou-Tanane", + "parent": "MA-09", + "type": "Prefecture" + }, + { + "code": "MA-AOU", + "name": "Aousserd (EH)", + "parent": "MA-12", + "type": "Province" + }, + { + "code": "MA-ASZ", + "name": "Assa-Zag (EH-partial)", + "parent": "MA-10", + "type": "Province" + }, + { + "code": "MA-AZI", + "name": "Azilal", + "parent": "MA-05", + "type": "Province" + }, + { + "code": "MA-BEM", + "name": "Béni Mellal", + "parent": "MA-05", + "type": "Province" + }, + { + "code": "MA-BER", + "name": "Berkane", + "parent": "MA-02", + "type": "Province" + }, + { + "code": "MA-BES", + "name": "Benslimane", + "parent": "MA-06", + "type": "Province" + }, + { + "code": "MA-BOD", + "name": "Boujdour (EH)", + "parent": "MA-11", + "type": "Province" + }, + { + "code": "MA-BOM", + "name": "Boulemane", + "parent": "MA-03", + "type": "Province" + }, + { + "code": "MA-BRR", + "name": "Berrechid", + "parent": "MA-06", + "type": "Province" + }, + { + "code": "MA-CAS", + "name": "Casablanca", + "parent": "MA-06", + "type": "Prefecture" + }, + { + "code": "MA-CHE", + "name": "Chefchaouen", + "parent": "MA-01", + "type": "Province" + }, + { + "code": "MA-CHI", + "name": "Chichaoua", + "parent": "MA-07", + "type": "Province" + }, + { + "code": "MA-CHT", + "name": "Chtouka-Ait Baha", + "parent": "MA-06", + "type": "Province" + }, + { + "code": "MA-DRI", + "name": "Driouch", + "parent": "MA-02", + "type": "Province" + }, + { + "code": "MA-ERR", + "name": "Errachidia", + "parent": "MA-08", + "type": "Province" + }, + { + "code": "MA-ESI", + "name": "Essaouira", + "parent": "MA-07", + "type": "Province" + }, + { + "code": "MA-ESM", + "name": "Es-Semara (EH-partial)", + "parent": "MA-11", + "type": "Province" + }, + { + "code": "MA-FAH", + "name": "Fahs-Anjra", + "parent": "MA-01", + "type": "Province" + }, + { + "code": "MA-FES", + "name": "Fès", + "parent": "MA-03", + "type": "Prefecture" + }, + { + "code": "MA-FIG", + "name": "Figuig", + "parent": "MA-02", + "type": "Province" + }, + { + "code": "MA-FQH", + "name": "Fquih Ben Salah", + "parent": "MA-05", + "type": "Province" + }, + { + "code": "MA-GUE", + "name": "Guelmim", + "parent": "MA-10", + "type": "Province" + }, + { + "code": "MA-GUF", + "name": "Guercif", + "parent": "MA-02", + "type": "Province" + }, + { + "code": "MA-HAJ", + "name": "El Hajeb", + "parent": "MA-03", + "type": "Province" + }, + { + "code": "MA-HAO", + "name": "Al Haouz", + "parent": "MA-07", + "type": "Province" + }, + { + "code": "MA-HOC", + "name": "Al Hoceïma", + "parent": "MA-01", + "type": "Province" + }, + { + "code": "MA-IFR", + "name": "Ifrane", + "parent": "MA-03", + "type": "Province" + }, + { + "code": "MA-INE", + "name": "Inezgane-Ait Melloul", + "parent": "MA-09", + "type": "Prefecture" + }, + { + "code": "MA-JDI", + "name": "El Jadida", + "parent": "MA-06", + "type": "Province" + }, + { + "code": "MA-JRA", + "name": "Jerada", + "parent": "MA-02", + "type": "Province" + }, + { + "code": "MA-KEN", + "name": "Kénitra", + "parent": "MA-04", + "type": "Province" + }, + { + "code": "MA-KES", + "name": "El Kelâa des Sraghna", + "parent": "MA-07", + "type": "Province" + }, + { + "code": "MA-KHE", + "name": "Khémisset", + "parent": "MA-04", + "type": "Province" + }, + { + "code": "MA-KHN", + "name": "Khénifra", + "parent": "MA-05", + "type": "Province" + }, + { + "code": "MA-KHO", + "name": "Khouribga", + "parent": "MA-05", + "type": "Province" + }, + { + "code": "MA-LAA", + "name": "Laâyoune (EH)", + "parent": "MA-11", + "type": "Province" + }, + { + "code": "MA-LAR", + "name": "Larache", + "parent": "MA-01", + "type": "Province" + }, + { + "code": "MA-MAR", + "name": "Marrakech", + "parent": "MA-07", + "type": "Prefecture" + }, + { + "code": "MA-MDF", + "name": "M’diq-Fnideq", + "parent": "MA-01", + "type": "Prefecture" + }, + { + "code": "MA-MED", + "name": "Médiouna", + "parent": "MA-06", + "type": "Province" + }, + { + "code": "MA-MEK", + "name": "Meknès", + "parent": "MA-03", + "type": "Prefecture" + }, + { + "code": "MA-MID", + "name": "Midelt", + "parent": "MA-08", + "type": "Province" + }, + { + "code": "MA-MOH", + "name": "Mohammadia", + "parent": "MA-06", + "type": "Prefecture" + }, + { + "code": "MA-MOU", + "name": "Moulay Yacoub", + "parent": "MA-03", + "type": "Province" + }, + { + "code": "MA-NAD", + "name": "Nador", + "parent": "MA-02", + "type": "Province" + }, + { + "code": "MA-NOU", + "name": "Nouaceur", + "parent": "MA-04", + "type": "Province" + }, + { + "code": "MA-OUA", + "name": "Ouarzazate", + "parent": "MA-08", + "type": "Province" + }, + { + "code": "MA-OUD", + "name": "Oued Ed-Dahab (EH)", + "parent": "MA-12", + "type": "Province" + }, + { + "code": "MA-OUJ", + "name": "Oujda-Angad", + "parent": "MA-02", + "type": "Prefecture" + }, + { + "code": "MA-OUZ", + "name": "Ouezzane", + "parent": "MA-01", + "type": "Province" + }, + { + "code": "MA-RAB", + "name": "Rabat", + "parent": "MA-04", + "type": "Prefecture" + }, + { + "code": "MA-REH", + "name": "Rehamna", + "parent": "MA-07", + "type": "Province" + }, + { + "code": "MA-SAF", + "name": "Safi", + "parent": "MA-07", + "type": "Province" + }, + { + "code": "MA-SAL", + "name": "Salé", + "parent": "MA-04", + "type": "Prefecture" + }, + { + "code": "MA-SEF", + "name": "Sefrou", + "parent": "MA-03", + "type": "Province" + }, + { + "code": "MA-SET", + "name": "Settat", + "parent": "MA-06", + "type": "Province" + }, + { + "code": "MA-SIB", + "name": "Sidi Bennour", + "parent": "MA-06", + "type": "Province" + }, + { + "code": "MA-SIF", + "name": "Sidi Ifni", + "parent": "MA-10", + "type": "Province" + }, + { + "code": "MA-SIK", + "name": "Sidi Kacem", + "parent": "MA-04", + "type": "Province" + }, + { + "code": "MA-SIL", + "name": "Sidi Slimane", + "parent": "MA-04", + "type": "Province" + }, + { + "code": "MA-SKH", + "name": "Skhirate-Témara", + "parent": "MA-04", + "type": "Prefecture" + }, + { + "code": "MA-TAF", + "name": "Tarfaya (EH-partial)", + "parent": "MA-11", + "type": "Province" + }, + { + "code": "MA-TAI", + "name": "Taourirt", + "parent": "MA-02", + "type": "Province" + }, + { + "code": "MA-TAO", + "name": "Taounate", + "parent": "MA-03", + "type": "Province" + }, + { + "code": "MA-TAR", + "name": "Taroudannt", + "parent": "MA-09", + "type": "Province" + }, + { + "code": "MA-TAT", + "name": "Tata", + "parent": "MA-09", + "type": "Province" + }, + { + "code": "MA-TAZ", + "name": "Taza", + "parent": "MA-03", + "type": "Province" + }, + { + "code": "MA-TET", + "name": "Tétouan", + "parent": "MA-01", + "type": "Province" + }, + { + "code": "MA-TIN", + "name": "Tinghir", + "parent": "MA-08", + "type": "Province" + }, + { + "code": "MA-TIZ", + "name": "Tiznit", + "parent": "MA-09", + "type": "Province" + }, + { + "code": "MA-TNG", + "name": "Tanger-Assilah", + "parent": "MA-01", + "type": "Prefecture" + }, + { + "code": "MA-TNT", + "name": "Tan-Tan (EH-partial)", + "parent": "MA-10", + "type": "Province" + }, + { + "code": "MA-YUS", + "name": "Youssoufia", + "parent": "MA-07", + "type": "Province" + }, + { + "code": "MA-ZAG", + "name": "Zagora", + "parent": "MA-08", + "type": "Province" + }, + { + "code": "MC-CL", + "name": "La Colle", + "type": "Quarter" + }, + { + "code": "MC-CO", + "name": "La Condamine", + "type": "Quarter" + }, + { + "code": "MC-FO", + "name": "Fontvieille", + "type": "Quarter" + }, + { + "code": "MC-GA", + "name": "La Gare", + "type": "Quarter" + }, + { + "code": "MC-JE", + "name": "Jardin Exotique", + "type": "Quarter" + }, + { + "code": "MC-LA", + "name": "Larvotto", + "type": "Quarter" + }, + { + "code": "MC-MA", + "name": "Malbousquet", + "type": "Quarter" + }, + { + "code": "MC-MC", + "name": "Monte-Carlo", + "type": "Quarter" + }, + { + "code": "MC-MG", + "name": "Moneghetti", + "type": "Quarter" + }, + { + "code": "MC-MO", + "name": "Monaco-Ville", + "type": "Quarter" + }, + { + "code": "MC-MU", + "name": "Moulins", + "type": "Quarter" + }, + { + "code": "MC-PH", + "name": "Port-Hercule", + "type": "Quarter" + }, + { + "code": "MC-SD", + "name": "Sainte-Dévote", + "type": "Quarter" + }, + { + "code": "MC-SO", + "name": "La Source", + "type": "Quarter" + }, + { + "code": "MC-SP", + "name": "Spélugues", + "type": "Quarter" + }, + { + "code": "MC-SR", + "name": "Saint-Roman", + "type": "Quarter" + }, + { + "code": "MC-VR", + "name": "Vallon de la Rousse", + "type": "Quarter" + }, + { + "code": "MD-AN", + "name": "Anenii Noi", + "type": "District" + }, + { + "code": "MD-BA", + "name": "Bălți", + "type": "City" + }, + { + "code": "MD-BD", + "name": "Bender [Tighina]", + "type": "City" + }, + { + "code": "MD-BR", + "name": "Briceni", + "type": "District" + }, + { + "code": "MD-BS", + "name": "Basarabeasca", + "type": "District" + }, + { + "code": "MD-CA", + "name": "Cahul", + "type": "District" + }, + { + "code": "MD-CL", + "name": "Călărași", + "type": "District" + }, + { + "code": "MD-CM", + "name": "Cimișlia", + "type": "District" + }, + { + "code": "MD-CR", + "name": "Criuleni", + "type": "District" + }, + { + "code": "MD-CS", + "name": "Căușeni", + "type": "District" + }, + { + "code": "MD-CT", + "name": "Cantemir", + "type": "District" + }, + { + "code": "MD-CU", + "name": "Chișinău", + "type": "City" + }, + { + "code": "MD-DO", + "name": "Dondușeni", + "type": "District" + }, + { + "code": "MD-DR", + "name": "Drochia", + "type": "District" + }, + { + "code": "MD-DU", + "name": "Dubăsari", + "type": "District" + }, + { + "code": "MD-ED", + "name": "Edineț", + "type": "District" + }, + { + "code": "MD-FA", + "name": "Fălești", + "type": "District" + }, + { + "code": "MD-FL", + "name": "Florești", + "type": "District" + }, + { + "code": "MD-GA", + "name": "Găgăuzia, Unitatea teritorială autonomă (UTAG)", + "type": "Autonomous territorial unit" + }, + { + "code": "MD-GL", + "name": "Glodeni", + "type": "District" + }, + { + "code": "MD-HI", + "name": "Hîncești", + "type": "District" + }, + { + "code": "MD-IA", + "name": "Ialoveni", + "type": "District" + }, + { + "code": "MD-LE", + "name": "Leova", + "type": "District" + }, + { + "code": "MD-NI", + "name": "Nisporeni", + "type": "District" + }, + { + "code": "MD-OC", + "name": "Ocnița", + "type": "District" + }, + { + "code": "MD-OR", + "name": "Orhei", + "type": "District" + }, + { + "code": "MD-RE", + "name": "Rezina", + "type": "District" + }, + { + "code": "MD-RI", + "name": "Rîșcani", + "type": "District" + }, + { + "code": "MD-SD", + "name": "Șoldănești", + "type": "District" + }, + { + "code": "MD-SI", + "name": "Sîngerei", + "type": "District" + }, + { + "code": "MD-SN", + "name": "Stînga Nistrului, unitatea teritorială din", + "type": "Territorial unit" + }, + { + "code": "MD-SO", + "name": "Soroca", + "type": "District" + }, + { + "code": "MD-ST", + "name": "Strășeni", + "type": "District" + }, + { + "code": "MD-SV", + "name": "Ștefan Vodă", + "type": "District" + }, + { + "code": "MD-TA", + "name": "Taraclia", + "type": "District" + }, + { + "code": "MD-TE", + "name": "Telenești", + "type": "District" + }, + { + "code": "MD-UN", + "name": "Ungheni", + "type": "District" + }, + { + "code": "ME-01", + "name": "Andrijevica", + "type": "Municipality" + }, + { + "code": "ME-02", + "name": "Bar", + "type": "Municipality" + }, + { + "code": "ME-03", + "name": "Berane", + "type": "Municipality" + }, + { + "code": "ME-04", + "name": "Bijelo Polje", + "type": "Municipality" + }, + { + "code": "ME-05", + "name": "Budva", + "type": "Municipality" + }, + { + "code": "ME-06", + "name": "Cetinje", + "type": "Municipality" + }, + { + "code": "ME-07", + "name": "Danilovgrad", + "type": "Municipality" + }, + { + "code": "ME-08", + "name": "Herceg-Novi", + "type": "Municipality" + }, + { + "code": "ME-09", + "name": "Kolašin", + "type": "Municipality" + }, + { + "code": "ME-10", + "name": "Kotor", + "type": "Municipality" + }, + { + "code": "ME-11", + "name": "Mojkovac", + "type": "Municipality" + }, + { + "code": "ME-12", + "name": "Nikšić", + "type": "Municipality" + }, + { + "code": "ME-13", + "name": "Plav", + "type": "Municipality" + }, + { + "code": "ME-14", + "name": "Pljevlja", + "type": "Municipality" + }, + { + "code": "ME-15", + "name": "Plužine", + "type": "Municipality" + }, + { + "code": "ME-16", + "name": "Podgorica", + "type": "Municipality" + }, + { + "code": "ME-17", + "name": "Rožaje", + "type": "Municipality" + }, + { + "code": "ME-18", + "name": "Šavnik", + "type": "Municipality" + }, + { + "code": "ME-19", + "name": "Tivat", + "type": "Municipality" + }, + { + "code": "ME-20", + "name": "Ulcinj", + "type": "Municipality" + }, + { + "code": "ME-21", + "name": "Žabljak", + "type": "Municipality" + }, + { + "code": "ME-22", + "name": "Gusinje", + "type": "Municipality" + }, + { + "code": "ME-23", + "name": "Petnjica", + "type": "Municipality" + }, + { + "code": "ME-24", + "name": "Tuzi", + "type": "Municipality" + }, + { + "code": "ME-25", + "name": "Zeta", + "type": "Municipality" + }, + { + "code": "MG-A", + "name": "Toamasina", + "type": "Province" + }, + { + "code": "MG-D", + "name": "Antsiranana", + "type": "Province" + }, + { + "code": "MG-F", + "name": "Fianarantsoa", + "type": "Province" + }, + { + "code": "MG-M", + "name": "Mahajanga", + "type": "Province" + }, + { + "code": "MG-T", + "name": "Antananarivo", + "type": "Province" + }, + { + "code": "MG-U", + "name": "Toliara", + "type": "Province" + }, + { + "code": "MH-ALK", + "name": "Ailuk", + "parent": "MH-T", + "type": "Municipality" + }, + { + "code": "MH-ALL", + "name": "Ailinglaplap", + "parent": "MH-L", + "type": "Municipality" + }, + { + "code": "MH-ARN", + "name": "Arno", + "parent": "MH-T", + "type": "Municipality" + }, + { + "code": "MH-AUR", + "name": "Aur", + "parent": "MH-T", + "type": "Municipality" + }, + { + "code": "MH-EBO", + "name": "Ebon", + "parent": "MH-L", + "type": "Municipality" + }, + { + "code": "MH-ENI", + "name": "Enewetak & Ujelang", + "parent": "MH-L", + "type": "Municipality" + }, + { + "code": "MH-JAB", + "name": "Jabat", + "parent": "MH-L", + "type": "Municipality" + }, + { + "code": "MH-JAL", + "name": "Jaluit", + "parent": "MH-L", + "type": "Municipality" + }, + { + "code": "MH-KIL", + "name": "Bikini & Kili", + "parent": "MH-L", + "type": "Municipality" + }, + { + "code": "MH-KWA", + "name": "Kwajalein", + "parent": "MH-L", + "type": "Municipality" + }, + { + "code": "MH-L", + "name": "Ralik chain", + "type": "Chain (of islands)" + }, + { + "code": "MH-LAE", + "name": "Lae", + "parent": "MH-L", + "type": "Municipality" + }, + { + "code": "MH-LIB", + "name": "Lib", + "parent": "MH-L", + "type": "Municipality" + }, + { + "code": "MH-LIK", + "name": "Likiep", + "parent": "MH-T", + "type": "Municipality" + }, + { + "code": "MH-MAJ", + "name": "Majuro", + "parent": "MH-T", + "type": "Municipality" + }, + { + "code": "MH-MAL", + "name": "Maloelap", + "parent": "MH-T", + "type": "Municipality" + }, + { + "code": "MH-MEJ", + "name": "Mejit", + "parent": "MH-T", + "type": "Municipality" + }, + { + "code": "MH-MIL", + "name": "Mili", + "parent": "MH-T", + "type": "Municipality" + }, + { + "code": "MH-NMK", + "name": "Namdrik", + "parent": "MH-L", + "type": "Municipality" + }, + { + "code": "MH-NMU", + "name": "Namu", + "parent": "MH-L", + "type": "Municipality" + }, + { + "code": "MH-RON", + "name": "Rongelap", + "parent": "MH-L", + "type": "Municipality" + }, + { + "code": "MH-T", + "name": "Ratak chain", + "type": "Chain (of islands)" + }, + { + "code": "MH-UJA", + "name": "Ujae", + "parent": "MH-L", + "type": "Municipality" + }, + { + "code": "MH-UTI", + "name": "Utrik", + "parent": "MH-T", + "type": "Municipality" + }, + { + "code": "MH-WTH", + "name": "Wotho", + "parent": "MH-L", + "type": "Municipality" + }, + { + "code": "MH-WTJ", + "name": "Wotje", + "parent": "MH-T", + "type": "Municipality" + }, + { + "code": "MK-101", + "name": "Veles", + "type": "Municipality" + }, + { + "code": "MK-102", + "name": "Gradsko", + "type": "Municipality" + }, + { + "code": "MK-103", + "name": "Demir Kapija", + "type": "Municipality" + }, + { + "code": "MK-104", + "name": "Kavadarci", + "type": "Municipality" + }, + { + "code": "MK-105", + "name": "Lozovo", + "type": "Municipality" + }, + { + "code": "MK-106", + "name": "Negotino", + "type": "Municipality" + }, + { + "code": "MK-107", + "name": "Rosoman", + "type": "Municipality" + }, + { + "code": "MK-108", + "name": "Sveti Nikole", + "type": "Municipality" + }, + { + "code": "MK-109", + "name": "Čaška", + "type": "Municipality" + }, + { + "code": "MK-201", + "name": "Berovo", + "type": "Municipality" + }, + { + "code": "MK-202", + "name": "Vinica", + "type": "Municipality" + }, + { + "code": "MK-203", + "name": "Delčevo", + "type": "Municipality" + }, + { + "code": "MK-204", + "name": "Zrnovci", + "type": "Municipality" + }, + { + "code": "MK-205", + "name": "Karbinci", + "type": "Municipality" + }, + { + "code": "MK-206", + "name": "Kočani", + "type": "Municipality" + }, + { + "code": "MK-207", + "name": "Makedonska Kamenica", + "type": "Municipality" + }, + { + "code": "MK-208", + "name": "Pehčevo", + "type": "Municipality" + }, + { + "code": "MK-209", + "name": "Probištip", + "type": "Municipality" + }, + { + "code": "MK-210", + "name": "Češinovo-Obleševo", + "type": "Municipality" + }, + { + "code": "MK-211", + "name": "Štip", + "type": "Municipality" + }, + { + "code": "MK-301", + "name": "Vevčani", + "type": "Municipality" + }, + { + "code": "MK-303", + "name": "Debar", + "type": "Municipality" + }, + { + "code": "MK-304", + "name": "Debrca", + "type": "Municipality" + }, + { + "code": "MK-307", + "name": "Kičevo", + "type": "Municipality" + }, + { + "code": "MK-308", + "name": "Makedonski Brod", + "type": "Municipality" + }, + { + "code": "MK-310", + "name": "Ohrid", + "type": "Municipality" + }, + { + "code": "MK-311", + "name": "Plasnica", + "type": "Municipality" + }, + { + "code": "MK-312", + "name": "Struga", + "type": "Municipality" + }, + { + "code": "MK-313", + "name": "Centar Župa", + "type": "Municipality" + }, + { + "code": "MK-401", + "name": "Bogdanci", + "type": "Municipality" + }, + { + "code": "MK-402", + "name": "Bosilovo", + "type": "Municipality" + }, + { + "code": "MK-403", + "name": "Valandovo", + "type": "Municipality" + }, + { + "code": "MK-404", + "name": "Vasilevo", + "type": "Municipality" + }, + { + "code": "MK-405", + "name": "Gevgelija", + "type": "Municipality" + }, + { + "code": "MK-406", + "name": "Dojran", + "type": "Municipality" + }, + { + "code": "MK-407", + "name": "Konče", + "type": "Municipality" + }, + { + "code": "MK-408", + "name": "Novo Selo", + "type": "Municipality" + }, + { + "code": "MK-409", + "name": "Radoviš", + "type": "Municipality" + }, + { + "code": "MK-410", + "name": "Strumica", + "type": "Municipality" + }, + { + "code": "MK-501", + "name": "Bitola", + "type": "Municipality" + }, + { + "code": "MK-502", + "name": "Demir Hisar", + "type": "Municipality" + }, + { + "code": "MK-503", + "name": "Dolneni", + "type": "Municipality" + }, + { + "code": "MK-504", + "name": "Krivogaštani", + "type": "Municipality" + }, + { + "code": "MK-505", + "name": "Kruševo", + "type": "Municipality" + }, + { + "code": "MK-506", + "name": "Mogila", + "type": "Municipality" + }, + { + "code": "MK-507", + "name": "Novaci", + "type": "Municipality" + }, + { + "code": "MK-508", + "name": "Prilep", + "type": "Municipality" + }, + { + "code": "MK-509", + "name": "Resen", + "type": "Municipality" + }, + { + "code": "MK-601", + "name": "Bogovinje", + "type": "Municipality" + }, + { + "code": "MK-602", + "name": "Brvenica", + "type": "Municipality" + }, + { + "code": "MK-603", + "name": "Vrapčište", + "type": "Municipality" + }, + { + "code": "MK-604", + "name": "Gostivar", + "type": "Municipality" + }, + { + "code": "MK-605", + "name": "Želino", + "type": "Municipality" + }, + { + "code": "MK-606", + "name": "Jegunovce", + "type": "Municipality" + }, + { + "code": "MK-607", + "name": "Mavrovo i Rostuše", + "type": "Municipality" + }, + { + "code": "MK-608", + "name": "Tearce", + "type": "Municipality" + }, + { + "code": "MK-609", + "name": "Tetovo", + "type": "Municipality" + }, + { + "code": "MK-701", + "name": "Kratovo", + "type": "Municipality" + }, + { + "code": "MK-702", + "name": "Kriva Palanka", + "type": "Municipality" + }, + { + "code": "MK-703", + "name": "Kumanovo", + "type": "Municipality" + }, + { + "code": "MK-704", + "name": "Lipkovo", + "type": "Municipality" + }, + { + "code": "MK-705", + "name": "Rankovce", + "type": "Municipality" + }, + { + "code": "MK-706", + "name": "Staro Nagoričane", + "type": "Municipality" + }, + { + "code": "MK-801", + "name": "Aerodrom †", + "type": "Municipality" + }, + { + "code": "MK-802", + "name": "Aračinovo", + "type": "Municipality" + }, + { + "code": "MK-803", + "name": "Butel †", + "type": "Municipality" + }, + { + "code": "MK-804", + "name": "Gazi Baba †", + "type": "Municipality" + }, + { + "code": "MK-805", + "name": "Gjorče Petrov †", + "type": "Municipality" + }, + { + "code": "MK-806", + "name": "Zelenikovo", + "type": "Municipality" + }, + { + "code": "MK-807", + "name": "Ilinden", + "type": "Municipality" + }, + { + "code": "MK-808", + "name": "Karpoš †", + "type": "Municipality" + }, + { + "code": "MK-809", + "name": "Kisela Voda †", + "type": "Municipality" + }, + { + "code": "MK-810", + "name": "Petrovec", + "type": "Municipality" + }, + { + "code": "MK-811", + "name": "Saraj †", + "type": "Municipality" + }, + { + "code": "MK-812", + "name": "Sopište", + "type": "Municipality" + }, + { + "code": "MK-813", + "name": "Studeničani", + "type": "Municipality" + }, + { + "code": "MK-814", + "name": "Centar †", + "type": "Municipality" + }, + { + "code": "MK-815", + "name": "Čair †", + "type": "Municipality" + }, + { + "code": "MK-816", + "name": "Čučer-Sandevo", + "type": "Municipality" + }, + { + "code": "MK-817", + "name": "Šuto Orizari †", + "type": "Municipality" + }, + { + "code": "ML-1", + "name": "Kayes", + "type": "Region" + }, + { + "code": "ML-10", + "name": "Taoudénit", + "type": "Region" + }, + { + "code": "ML-2", + "name": "Koulikoro", + "type": "Region" + }, + { + "code": "ML-3", + "name": "Sikasso", + "type": "Region" + }, + { + "code": "ML-4", + "name": "Ségou", + "type": "Region" + }, + { + "code": "ML-5", + "name": "Mopti", + "type": "Region" + }, + { + "code": "ML-6", + "name": "Tombouctou", + "type": "Region" + }, + { + "code": "ML-7", + "name": "Gao", + "type": "Region" + }, + { + "code": "ML-8", + "name": "Kidal", + "type": "Region" + }, + { + "code": "ML-9", + "name": "Ménaka", + "type": "Region" + }, + { + "code": "ML-BKO", + "name": "Bamako", + "type": "District" + }, + { + "code": "MM-01", + "name": "Sagaing", + "type": "Region" + }, + { + "code": "MM-02", + "name": "Bago", + "type": "Region" + }, + { + "code": "MM-03", + "name": "Magway", + "type": "Region" + }, + { + "code": "MM-04", + "name": "Mandalay", + "type": "Region" + }, + { + "code": "MM-05", + "name": "Tanintharyi", + "type": "Region" + }, + { + "code": "MM-06", + "name": "Yangon", + "type": "Region" + }, + { + "code": "MM-07", + "name": "Ayeyarwady", + "type": "Region" + }, + { + "code": "MM-11", + "name": "Kachin", + "type": "State" + }, + { + "code": "MM-12", + "name": "Kayah", + "type": "State" + }, + { + "code": "MM-13", + "name": "Kayin", + "type": "State" + }, + { + "code": "MM-14", + "name": "Chin", + "type": "State" + }, + { + "code": "MM-15", + "name": "Mon", + "type": "State" + }, + { + "code": "MM-16", + "name": "Rakhine", + "type": "State" + }, + { + "code": "MM-17", + "name": "Shan", + "type": "State" + }, + { + "code": "MM-18", + "name": "Nay Pyi Taw", + "type": "Union territory" + }, + { + "code": "MN-035", + "name": "Orhon", + "type": "Province" + }, + { + "code": "MN-037", + "name": "Darhan uul", + "type": "Province" + }, + { + "code": "MN-039", + "name": "Hentiy", + "type": "Province" + }, + { + "code": "MN-041", + "name": "Hövsgöl", + "type": "Province" + }, + { + "code": "MN-043", + "name": "Hovd", + "type": "Province" + }, + { + "code": "MN-046", + "name": "Uvs", + "type": "Province" + }, + { + "code": "MN-047", + "name": "Töv", + "type": "Province" + }, + { + "code": "MN-049", + "name": "Selenge", + "type": "Province" + }, + { + "code": "MN-051", + "name": "Sühbaatar", + "type": "Province" + }, + { + "code": "MN-053", + "name": "Ömnögovĭ", + "type": "Province" + }, + { + "code": "MN-055", + "name": "Övörhangay", + "type": "Province" + }, + { + "code": "MN-057", + "name": "Dzavhan", + "type": "Province" + }, + { + "code": "MN-059", + "name": "Dundgovĭ", + "type": "Province" + }, + { + "code": "MN-061", + "name": "Dornod", + "type": "Province" + }, + { + "code": "MN-063", + "name": "Dornogovĭ", + "type": "Province" + }, + { + "code": "MN-064", + "name": "Govĭ-Sümber", + "type": "Province" + }, + { + "code": "MN-065", + "name": "Govĭ-Altay", + "type": "Province" + }, + { + "code": "MN-067", + "name": "Bulgan", + "type": "Province" + }, + { + "code": "MN-069", + "name": "Bayanhongor", + "type": "Province" + }, + { + "code": "MN-071", + "name": "Bayan-Ölgiy", + "type": "Province" + }, + { + "code": "MN-073", + "name": "Arhangay", + "type": "Province" + }, + { + "code": "MN-1", + "name": "Ulaanbaatar", + "type": "Capital city" + }, + { + "code": "MR-01", + "name": "Hodh ech Chargui", + "type": "Region" + }, + { + "code": "MR-02", + "name": "Hodh el Gharbi", + "type": "Region" + }, + { + "code": "MR-03", + "name": "Assaba", + "type": "Region" + }, + { + "code": "MR-04", + "name": "Gorgol", + "type": "Region" + }, + { + "code": "MR-05", + "name": "Brakna", + "type": "Region" + }, + { + "code": "MR-06", + "name": "Trarza", + "type": "Region" + }, + { + "code": "MR-07", + "name": "Adrar", + "type": "Region" + }, + { + "code": "MR-08", + "name": "Dakhlet Nouâdhibou", + "type": "Region" + }, + { + "code": "MR-09", + "name": "Tagant", + "type": "Region" + }, + { + "code": "MR-10", + "name": "Guidimaka", + "type": "Region" + }, + { + "code": "MR-11", + "name": "Tiris Zemmour", + "type": "Region" + }, + { + "code": "MR-12", + "name": "Inchiri", + "type": "Region" + }, + { + "code": "MR-13", + "name": "Nouakchott Ouest", + "type": "Region" + }, + { + "code": "MR-14", + "name": "Nouakchott Nord", + "type": "Region" + }, + { + "code": "MR-15", + "name": "Nouakchott Sud", + "type": "Region" + }, + { + "code": "MT-01", + "name": "Attard", + "type": "Local council" + }, + { + "code": "MT-02", + "name": "Balzan", + "type": "Local council" + }, + { + "code": "MT-03", + "name": "Birgu", + "type": "Local council" + }, + { + "code": "MT-04", + "name": "Birkirkara", + "type": "Local council" + }, + { + "code": "MT-05", + "name": "Birżebbuġa", + "type": "Local council" + }, + { + "code": "MT-06", + "name": "Bormla", + "type": "Local council" + }, + { + "code": "MT-07", + "name": "Dingli", + "type": "Local council" + }, + { + "code": "MT-08", + "name": "Fgura", + "type": "Local council" + }, + { + "code": "MT-09", + "name": "Floriana", + "type": "Local council" + }, + { + "code": "MT-10", + "name": "Fontana", + "type": "Local council" + }, + { + "code": "MT-11", + "name": "Gudja", + "type": "Local council" + }, + { + "code": "MT-12", + "name": "Gżira", + "type": "Local council" + }, + { + "code": "MT-13", + "name": "Għajnsielem", + "type": "Local council" + }, + { + "code": "MT-14", + "name": "Għarb", + "type": "Local council" + }, + { + "code": "MT-15", + "name": "Għargħur", + "type": "Local council" + }, + { + "code": "MT-16", + "name": "Għasri", + "type": "Local council" + }, + { + "code": "MT-17", + "name": "Għaxaq", + "type": "Local council" + }, + { + "code": "MT-18", + "name": "Ħamrun", + "type": "Local council" + }, + { + "code": "MT-19", + "name": "Iklin", + "type": "Local council" + }, + { + "code": "MT-20", + "name": "Isla", + "type": "Local council" + }, + { + "code": "MT-21", + "name": "Kalkara", + "type": "Local council" + }, + { + "code": "MT-22", + "name": "Kerċem", + "type": "Local council" + }, + { + "code": "MT-23", + "name": "Kirkop", + "type": "Local council" + }, + { + "code": "MT-24", + "name": "Lija", + "type": "Local council" + }, + { + "code": "MT-25", + "name": "Luqa", + "type": "Local council" + }, + { + "code": "MT-26", + "name": "Marsa", + "type": "Local council" + }, + { + "code": "MT-27", + "name": "Marsaskala", + "type": "Local council" + }, + { + "code": "MT-28", + "name": "Marsaxlokk", + "type": "Local council" + }, + { + "code": "MT-29", + "name": "Mdina", + "type": "Local council" + }, + { + "code": "MT-30", + "name": "Mellieħa", + "type": "Local council" + }, + { + "code": "MT-31", + "name": "Mġarr", + "type": "Local council" + }, + { + "code": "MT-32", + "name": "Mosta", + "type": "Local council" + }, + { + "code": "MT-33", + "name": "Mqabba", + "type": "Local council" + }, + { + "code": "MT-34", + "name": "Msida", + "type": "Local council" + }, + { + "code": "MT-35", + "name": "Mtarfa", + "type": "Local council" + }, + { + "code": "MT-36", + "name": "Munxar", + "type": "Local council" + }, + { + "code": "MT-37", + "name": "Nadur", + "type": "Local council" + }, + { + "code": "MT-38", + "name": "Naxxar", + "type": "Local council" + }, + { + "code": "MT-39", + "name": "Paola", + "type": "Local council" + }, + { + "code": "MT-40", + "name": "Pembroke", + "type": "Local council" + }, + { + "code": "MT-41", + "name": "Pietà", + "type": "Local council" + }, + { + "code": "MT-42", + "name": "Qala", + "type": "Local council" + }, + { + "code": "MT-43", + "name": "Qormi", + "type": "Local council" + }, + { + "code": "MT-44", + "name": "Qrendi", + "type": "Local council" + }, + { + "code": "MT-45", + "name": "Rabat Gozo", + "type": "Local council" + }, + { + "code": "MT-46", + "name": "Rabat Malta", + "type": "Local council" + }, + { + "code": "MT-47", + "name": "Safi", + "type": "Local council" + }, + { + "code": "MT-48", + "name": "Saint Julian's", + "type": "Local council" + }, + { + "code": "MT-49", + "name": "Saint John", + "type": "Local council" + }, + { + "code": "MT-50", + "name": "Saint Lawrence", + "type": "Local council" + }, + { + "code": "MT-51", + "name": "Saint Paul's Bay", + "type": "Local council" + }, + { + "code": "MT-52", + "name": "Sannat", + "type": "Local council" + }, + { + "code": "MT-53", + "name": "Saint Lucia's", + "type": "Local council" + }, + { + "code": "MT-54", + "name": "Santa Venera", + "type": "Local council" + }, + { + "code": "MT-55", + "name": "Siġġiewi", + "type": "Local council" + }, + { + "code": "MT-56", + "name": "Sliema", + "type": "Local council" + }, + { + "code": "MT-57", + "name": "Swieqi", + "type": "Local council" + }, + { + "code": "MT-58", + "name": "Ta' Xbiex", + "type": "Local council" + }, + { + "code": "MT-59", + "name": "Tarxien", + "type": "Local council" + }, + { + "code": "MT-60", + "name": "Valletta", + "type": "Local council" + }, + { + "code": "MT-61", + "name": "Xagħra", + "type": "Local council" + }, + { + "code": "MT-62", + "name": "Xewkija", + "type": "Local council" + }, + { + "code": "MT-63", + "name": "Xgħajra", + "type": "Local council" + }, + { + "code": "MT-64", + "name": "Żabbar", + "type": "Local council" + }, + { + "code": "MT-65", + "name": "Żebbuġ Gozo", + "type": "Local council" + }, + { + "code": "MT-66", + "name": "Żebbuġ Malta", + "type": "Local council" + }, + { + "code": "MT-67", + "name": "Żejtun", + "type": "Local council" + }, + { + "code": "MT-68", + "name": "Żurrieq", + "type": "Local council" + }, + { + "code": "MU-AG", + "name": "Agalega Islands", + "type": "Dependency" + }, + { + "code": "MU-BL", + "name": "Black River", + "type": "District" + }, + { + "code": "MU-CC", + "name": "Cargados Carajos Shoals", + "type": "Dependency" + }, + { + "code": "MU-FL", + "name": "Flacq", + "type": "District" + }, + { + "code": "MU-GP", + "name": "Grand Port", + "type": "District" + }, + { + "code": "MU-MO", + "name": "Moka", + "type": "District" + }, + { + "code": "MU-PA", + "name": "Pamplemousses", + "type": "District" + }, + { + "code": "MU-PL", + "name": "Port Louis", + "type": "District" + }, + { + "code": "MU-PW", + "name": "Plaines Wilhems", + "type": "District" + }, + { + "code": "MU-RO", + "name": "Rodrigues Island", + "type": "Dependency" + }, + { + "code": "MU-RR", + "name": "Rivière du Rempart", + "type": "District" + }, + { + "code": "MU-SA", + "name": "Savanne", + "type": "District" + }, + { + "code": "MV-00", + "name": "South Ari Atoll", + "type": "Administrative atoll" + }, + { + "code": "MV-01", + "name": "Addu City", + "type": "City" + }, + { + "code": "MV-02", + "name": "North Ari Atoll", + "type": "Administrative atoll" + }, + { + "code": "MV-03", + "name": "Faadhippolhu", + "type": "Administrative atoll" + }, + { + "code": "MV-04", + "name": "Felidhu Atoll", + "type": "Administrative atoll" + }, + { + "code": "MV-05", + "name": "Hahdhunmathi", + "type": "Administrative atoll" + }, + { + "code": "MV-07", + "name": "North Thiladhunmathi", + "type": "Administrative atoll" + }, + { + "code": "MV-08", + "name": "Kolhumadulu", + "type": "Administrative atoll" + }, + { + "code": "MV-12", + "name": "Mulaku Atoll", + "type": "Administrative atoll" + }, + { + "code": "MV-13", + "name": "North Maalhosmadulu", + "type": "Administrative atoll" + }, + { + "code": "MV-14", + "name": "North Nilandhe Atoll", + "type": "Administrative atoll" + }, + { + "code": "MV-17", + "name": "South Nilandhe Atoll", + "type": "Administrative atoll" + }, + { + "code": "MV-20", + "name": "South Maalhosmadulu", + "type": "Administrative atoll" + }, + { + "code": "MV-23", + "name": "South Thiladhunmathi", + "type": "Administrative atoll" + }, + { + "code": "MV-24", + "name": "North Miladhunmadulu", + "type": "Administrative atoll" + }, + { + "code": "MV-25", + "name": "South Miladhunmadulu", + "type": "Administrative atoll" + }, + { + "code": "MV-26", + "name": "Male Atoll", + "type": "Administrative atoll" + }, + { + "code": "MV-27", + "name": "North Huvadhu Atoll", + "type": "Administrative atoll" + }, + { + "code": "MV-28", + "name": "South Huvadhu Atoll", + "type": "Administrative atoll" + }, + { + "code": "MV-29", + "name": "Fuvammulah", + "type": "Administrative atoll" + }, + { + "code": "MV-MLE", + "name": "Male", + "type": "City" + }, + { + "code": "MW-BA", + "name": "Balaka", + "parent": "MW-S", + "type": "District" + }, + { + "code": "MW-BL", + "name": "Blantyre", + "parent": "MW-S", + "type": "District" + }, + { + "code": "MW-C", + "name": "Central Region", + "type": "Region" + }, + { + "code": "MW-CK", + "name": "Chikwawa", + "parent": "MW-S", + "type": "District" + }, + { + "code": "MW-CR", + "name": "Chiradzulu", + "parent": "MW-S", + "type": "District" + }, + { + "code": "MW-CT", + "name": "Chitipa", + "parent": "MW-N", + "type": "District" + }, + { + "code": "MW-DE", + "name": "Dedza", + "parent": "MW-C", + "type": "District" + }, + { + "code": "MW-DO", + "name": "Dowa", + "parent": "MW-C", + "type": "District" + }, + { + "code": "MW-KR", + "name": "Karonga", + "parent": "MW-N", + "type": "District" + }, + { + "code": "MW-KS", + "name": "Kasungu", + "parent": "MW-C", + "type": "District" + }, + { + "code": "MW-LI", + "name": "Lilongwe", + "parent": "MW-C", + "type": "District" + }, + { + "code": "MW-LK", + "name": "Likoma", + "parent": "MW-N", + "type": "District" + }, + { + "code": "MW-MC", + "name": "Mchinji", + "parent": "MW-C", + "type": "District" + }, + { + "code": "MW-MG", + "name": "Mangochi", + "parent": "MW-S", + "type": "District" + }, + { + "code": "MW-MH", + "name": "Machinga", + "parent": "MW-S", + "type": "District" + }, + { + "code": "MW-MU", + "name": "Mulanje", + "parent": "MW-S", + "type": "District" + }, + { + "code": "MW-MW", + "name": "Mwanza", + "parent": "MW-S", + "type": "District" + }, + { + "code": "MW-MZ", + "name": "Mzimba", + "parent": "MW-N", + "type": "District" + }, + { + "code": "MW-N", + "name": "Northern Region", + "type": "Region" + }, + { + "code": "MW-NB", + "name": "Nkhata Bay", + "parent": "MW-N", + "type": "District" + }, + { + "code": "MW-NE", + "name": "Neno", + "parent": "MW-S", + "type": "District" + }, + { + "code": "MW-NI", + "name": "Ntchisi", + "parent": "MW-C", + "type": "District" + }, + { + "code": "MW-NK", + "name": "Nkhotakota", + "parent": "MW-C", + "type": "District" + }, + { + "code": "MW-NS", + "name": "Nsanje", + "parent": "MW-S", + "type": "District" + }, + { + "code": "MW-NU", + "name": "Ntcheu", + "parent": "MW-C", + "type": "District" + }, + { + "code": "MW-PH", + "name": "Phalombe", + "parent": "MW-S", + "type": "District" + }, + { + "code": "MW-RU", + "name": "Rumphi", + "parent": "MW-N", + "type": "District" + }, + { + "code": "MW-S", + "name": "Southern Region", + "type": "Region" + }, + { + "code": "MW-SA", + "name": "Salima", + "parent": "MW-C", + "type": "District" + }, + { + "code": "MW-TH", + "name": "Thyolo", + "parent": "MW-S", + "type": "District" + }, + { + "code": "MW-ZO", + "name": "Zomba", + "parent": "MW-S", + "type": "District" + }, + { + "code": "MX-AGU", + "name": "Aguascalientes", + "type": "State" + }, + { + "code": "MX-BCN", + "name": "Baja California", + "type": "State" + }, + { + "code": "MX-BCS", + "name": "Baja California Sur", + "type": "State" + }, + { + "code": "MX-CAM", + "name": "Campeche", + "type": "State" + }, + { + "code": "MX-CHH", + "name": "Chihuahua", + "type": "State" + }, + { + "code": "MX-CHP", + "name": "Chiapas", + "type": "State" + }, + { + "code": "MX-CMX", + "name": "Ciudad de México", + "type": "Federal entity" + }, + { + "code": "MX-COA", + "name": "Coahuila de Zaragoza", + "type": "State" + }, + { + "code": "MX-COL", + "name": "Colima", + "type": "State" + }, + { + "code": "MX-DUR", + "name": "Durango", + "type": "State" + }, + { + "code": "MX-GRO", + "name": "Guerrero", + "type": "State" + }, + { + "code": "MX-GUA", + "name": "Guanajuato", + "type": "State" + }, + { + "code": "MX-HID", + "name": "Hidalgo", + "type": "State" + }, + { + "code": "MX-JAL", + "name": "Jalisco", + "type": "State" + }, + { + "code": "MX-MEX", + "name": "México", + "type": "State" + }, + { + "code": "MX-MIC", + "name": "Michoacán de Ocampo", + "type": "State" + }, + { + "code": "MX-MOR", + "name": "Morelos", + "type": "State" + }, + { + "code": "MX-NAY", + "name": "Nayarit", + "type": "State" + }, + { + "code": "MX-NLE", + "name": "Nuevo León", + "type": "State" + }, + { + "code": "MX-OAX", + "name": "Oaxaca", + "type": "State" + }, + { + "code": "MX-PUE", + "name": "Puebla", + "type": "State" + }, + { + "code": "MX-QUE", + "name": "Querétaro", + "type": "State" + }, + { + "code": "MX-ROO", + "name": "Quintana Roo", + "type": "State" + }, + { + "code": "MX-SIN", + "name": "Sinaloa", + "type": "State" + }, + { + "code": "MX-SLP", + "name": "San Luis Potosí", + "type": "State" + }, + { + "code": "MX-SON", + "name": "Sonora", + "type": "State" + }, + { + "code": "MX-TAB", + "name": "Tabasco", + "type": "State" + }, + { + "code": "MX-TAM", + "name": "Tamaulipas", + "type": "State" + }, + { + "code": "MX-TLA", + "name": "Tlaxcala", + "type": "State" + }, + { + "code": "MX-VER", + "name": "Veracruz de Ignacio de la Llave", + "type": "State" + }, + { + "code": "MX-YUC", + "name": "Yucatán", + "type": "State" + }, + { + "code": "MX-ZAC", + "name": "Zacatecas", + "type": "State" + }, + { + "code": "MY-01", + "name": "Johor", + "type": "State" + }, + { + "code": "MY-02", + "name": "Kedah", + "type": "State" + }, + { + "code": "MY-03", + "name": "Kelantan", + "type": "State" + }, + { + "code": "MY-04", + "name": "Melaka", + "type": "State" + }, + { + "code": "MY-05", + "name": "Negeri Sembilan", + "type": "State" + }, + { + "code": "MY-06", + "name": "Pahang", + "type": "State" + }, + { + "code": "MY-07", + "name": "Pulau Pinang", + "type": "State" + }, + { + "code": "MY-08", + "name": "Perak", + "type": "State" + }, + { + "code": "MY-09", + "name": "Perlis", + "type": "State" + }, + { + "code": "MY-10", + "name": "Selangor", + "type": "State" + }, + { + "code": "MY-11", + "name": "Terengganu", + "type": "State" + }, + { + "code": "MY-12", + "name": "Sabah", + "type": "State" + }, + { + "code": "MY-13", + "name": "Sarawak", + "type": "State" + }, + { + "code": "MY-14", + "name": "Wilayah Persekutuan Kuala Lumpur", + "type": "Federal territory" + }, + { + "code": "MY-15", + "name": "Wilayah Persekutuan Labuan", + "type": "Federal territory" + }, + { + "code": "MY-16", + "name": "Wilayah Persekutuan Putrajaya", + "type": "Federal territory" + }, + { + "code": "MZ-A", + "name": "Niassa", + "type": "Province" + }, + { + "code": "MZ-B", + "name": "Manica", + "type": "Province" + }, + { + "code": "MZ-G", + "name": "Gaza", + "type": "Province" + }, + { + "code": "MZ-I", + "name": "Inhambane", + "type": "Province" + }, + { + "code": "MZ-L", + "name": "Maputo", + "type": "Province" + }, + { + "code": "MZ-MPM", + "name": "Maputo", + "type": "City" + }, + { + "code": "MZ-N", + "name": "Nampula", + "type": "Province" + }, + { + "code": "MZ-P", + "name": "Cabo Delgado", + "type": "Province" + }, + { + "code": "MZ-Q", + "name": "Zambézia", + "type": "Province" + }, + { + "code": "MZ-S", + "name": "Sofala", + "type": "Province" + }, + { + "code": "MZ-T", + "name": "Tete", + "type": "Province" + }, + { + "code": "NA-CA", + "name": "Zambezi", + "type": "Region" + }, + { + "code": "NA-ER", + "name": "Erongo", + "type": "Region" + }, + { + "code": "NA-HA", + "name": "Hardap", + "type": "Region" + }, + { + "code": "NA-KA", + "name": "//Karas", + "type": "Region" + }, + { + "code": "NA-KE", + "name": "Kavango East", + "type": "Region" + }, + { + "code": "NA-KH", + "name": "Khomas", + "type": "Region" + }, + { + "code": "NA-KU", + "name": "Kunene", + "type": "Region" + }, + { + "code": "NA-KW", + "name": "Kavango West", + "type": "Region" + }, + { + "code": "NA-OD", + "name": "Otjozondjupa", + "type": "Region" + }, + { + "code": "NA-OH", + "name": "Omaheke", + "type": "Region" + }, + { + "code": "NA-ON", + "name": "Oshana", + "type": "Region" + }, + { + "code": "NA-OS", + "name": "Omusati", + "type": "Region" + }, + { + "code": "NA-OT", + "name": "Oshikoto", + "type": "Region" + }, + { + "code": "NA-OW", + "name": "Ohangwena", + "type": "Region" + }, + { + "code": "NE-1", + "name": "Agadez", + "type": "Region" + }, + { + "code": "NE-2", + "name": "Diffa", + "type": "Region" + }, + { + "code": "NE-3", + "name": "Dosso", + "type": "Region" + }, + { + "code": "NE-4", + "name": "Maradi", + "type": "Region" + }, + { + "code": "NE-5", + "name": "Tahoua", + "type": "Region" + }, + { + "code": "NE-6", + "name": "Tillabéri", + "type": "Region" + }, + { + "code": "NE-7", + "name": "Zinder", + "type": "Region" + }, + { + "code": "NE-8", + "name": "Niamey", + "type": "Urban community" + }, + { + "code": "NG-AB", + "name": "Abia", + "type": "State" + }, + { + "code": "NG-AD", + "name": "Adamawa", + "type": "State" + }, + { + "code": "NG-AK", + "name": "Akwa Ibom", + "type": "State" + }, + { + "code": "NG-AN", + "name": "Anambra", + "type": "State" + }, + { + "code": "NG-BA", + "name": "Bauchi", + "type": "State" + }, + { + "code": "NG-BE", + "name": "Benue", + "type": "State" + }, + { + "code": "NG-BO", + "name": "Borno", + "type": "State" + }, + { + "code": "NG-BY", + "name": "Bayelsa", + "type": "State" + }, + { + "code": "NG-CR", + "name": "Cross River", + "type": "State" + }, + { + "code": "NG-DE", + "name": "Delta", + "type": "State" + }, + { + "code": "NG-EB", + "name": "Ebonyi", + "type": "State" + }, + { + "code": "NG-ED", + "name": "Edo", + "type": "State" + }, + { + "code": "NG-EK", + "name": "Ekiti", + "type": "State" + }, + { + "code": "NG-EN", + "name": "Enugu", + "type": "State" + }, + { + "code": "NG-FC", + "name": "Abuja Federal Capital Territory", + "type": "Capital territory" + }, + { + "code": "NG-GO", + "name": "Gombe", + "type": "State" + }, + { + "code": "NG-IM", + "name": "Imo", + "type": "State" + }, + { + "code": "NG-JI", + "name": "Jigawa", + "type": "State" + }, + { + "code": "NG-KD", + "name": "Kaduna", + "type": "State" + }, + { + "code": "NG-KE", + "name": "Kebbi", + "type": "State" + }, + { + "code": "NG-KN", + "name": "Kano", + "type": "State" + }, + { + "code": "NG-KO", + "name": "Kogi", + "type": "State" + }, + { + "code": "NG-KT", + "name": "Katsina", + "type": "State" + }, + { + "code": "NG-KW", + "name": "Kwara", + "type": "State" + }, + { + "code": "NG-LA", + "name": "Lagos", + "type": "State" + }, + { + "code": "NG-NA", + "name": "Nasarawa", + "type": "State" + }, + { + "code": "NG-NI", + "name": "Niger", + "type": "State" + }, + { + "code": "NG-OG", + "name": "Ogun", + "type": "State" + }, + { + "code": "NG-ON", + "name": "Ondo", + "type": "State" + }, + { + "code": "NG-OS", + "name": "Osun", + "type": "State" + }, + { + "code": "NG-OY", + "name": "Oyo", + "type": "State" + }, + { + "code": "NG-PL", + "name": "Plateau", + "type": "State" + }, + { + "code": "NG-RI", + "name": "Rivers", + "type": "State" + }, + { + "code": "NG-SO", + "name": "Sokoto", + "type": "State" + }, + { + "code": "NG-TA", + "name": "Taraba", + "type": "State" + }, + { + "code": "NG-YO", + "name": "Yobe", + "type": "State" + }, + { + "code": "NG-ZA", + "name": "Zamfara", + "type": "State" + }, + { + "code": "NI-AN", + "name": "Costa Caribe Norte", + "type": "Autonomous region" + }, + { + "code": "NI-AS", + "name": "Costa Caribe Sur", + "type": "Autonomous region" + }, + { + "code": "NI-BO", + "name": "Boaco", + "type": "Department" + }, + { + "code": "NI-CA", + "name": "Carazo", + "type": "Department" + }, + { + "code": "NI-CI", + "name": "Chinandega", + "type": "Department" + }, + { + "code": "NI-CO", + "name": "Chontales", + "type": "Department" + }, + { + "code": "NI-ES", + "name": "Estelí", + "type": "Department" + }, + { + "code": "NI-GR", + "name": "Granada", + "type": "Department" + }, + { + "code": "NI-JI", + "name": "Jinotega", + "type": "Department" + }, + { + "code": "NI-LE", + "name": "León", + "type": "Department" + }, + { + "code": "NI-MD", + "name": "Madriz", + "type": "Department" + }, + { + "code": "NI-MN", + "name": "Managua", + "type": "Department" + }, + { + "code": "NI-MS", + "name": "Masaya", + "type": "Department" + }, + { + "code": "NI-MT", + "name": "Matagalpa", + "type": "Department" + }, + { + "code": "NI-NS", + "name": "Nueva Segovia", + "type": "Department" + }, + { + "code": "NI-RI", + "name": "Rivas", + "type": "Department" + }, + { + "code": "NI-SJ", + "name": "Río San Juan", + "type": "Department" + }, + { + "code": "NL-AW", + "name": "Aruba", + "type": "Country" + }, + { + "code": "NL-BQ1", + "name": "Bonaire", + "type": "Special municipality" + }, + { + "code": "NL-BQ2", + "name": "Saba", + "type": "Special municipality" + }, + { + "code": "NL-BQ3", + "name": "Sint Eustatius", + "type": "Special municipality" + }, + { + "code": "NL-CW", + "name": "Curaçao", + "type": "Country" + }, + { + "code": "NL-DR", + "name": "Drenthe", + "type": "Province" + }, + { + "code": "NL-FL", + "name": "Flevoland", + "type": "Province" + }, + { + "code": "NL-FR", + "name": "Fryslân", + "type": "Province" + }, + { + "code": "NL-GE", + "name": "Gelderland", + "type": "Province" + }, + { + "code": "NL-GR", + "name": "Groningen", + "type": "Province" + }, + { + "code": "NL-LI", + "name": "Limburg", + "type": "Province" + }, + { + "code": "NL-NB", + "name": "Noord-Brabant", + "type": "Province" + }, + { + "code": "NL-NH", + "name": "Noord-Holland", + "type": "Province" + }, + { + "code": "NL-OV", + "name": "Overijssel", + "type": "Province" + }, + { + "code": "NL-SX", + "name": "Sint Maarten", + "type": "Country" + }, + { + "code": "NL-UT", + "name": "Utrecht", + "type": "Province" + }, + { + "code": "NL-ZE", + "name": "Zeeland", + "type": "Province" + }, + { + "code": "NL-ZH", + "name": "Zuid-Holland", + "type": "Province" + }, + { + "code": "NO-03", + "name": "Oslo", + "type": "County" + }, + { + "code": "NO-11", + "name": "Rogaland", + "type": "County" + }, + { + "code": "NO-15", + "name": "Møre og Romsdal", + "type": "County" + }, + { + "code": "NO-18", + "name": "Nordland", + "type": "County" + }, + { + "code": "NO-21", + "name": "Svalbard (Arctic Region)", + "type": "Arctic region" + }, + { + "code": "NO-22", + "name": "Jan Mayen (Arctic Region)", + "type": "Arctic region" + }, + { + "code": "NO-30", + "name": "Viken", + "type": "County" + }, + { + "code": "NO-34", + "name": "Innlandet", + "type": "County" + }, + { + "code": "NO-38", + "name": "Vestfold og Telemark", + "type": "County" + }, + { + "code": "NO-42", + "name": "Agder", + "type": "County" + }, + { + "code": "NO-46", + "name": "Vestland", + "type": "County" + }, + { + "code": "NO-50", + "name": "Trøndelag", + "type": "County" + }, + { + "code": "NO-54", + "name": "Troms og Finnmark", + "type": "County" + }, + { + "code": "NP-P1", + "name": "Koshi", + "type": "Province" + }, + { + "code": "NP-P2", + "name": "Madhesh", + "type": "Province" + }, + { + "code": "NP-P3", + "name": "Bagmati", + "type": "Province" + }, + { + "code": "NP-P4", + "name": "Gandaki", + "type": "Province" + }, + { + "code": "NP-P5", + "name": "Lumbini", + "type": "Province" + }, + { + "code": "NP-P6", + "name": "Karnali", + "type": "Province" + }, + { + "code": "NP-P7", + "name": "Sudurpashchim", + "type": "Province" + }, + { + "code": "NR-01", + "name": "Aiwo", + "type": "District" + }, + { + "code": "NR-02", + "name": "Anabar", + "type": "District" + }, + { + "code": "NR-03", + "name": "Anetan", + "type": "District" + }, + { + "code": "NR-04", + "name": "Anibare", + "type": "District" + }, + { + "code": "NR-05", + "name": "Baitsi", + "type": "District" + }, + { + "code": "NR-06", + "name": "Boe", + "type": "District" + }, + { + "code": "NR-07", + "name": "Buada", + "type": "District" + }, + { + "code": "NR-08", + "name": "Denigomodu", + "type": "District" + }, + { + "code": "NR-09", + "name": "Ewa", + "type": "District" + }, + { + "code": "NR-10", + "name": "Ijuw", + "type": "District" + }, + { + "code": "NR-11", + "name": "Meneng", + "type": "District" + }, + { + "code": "NR-12", + "name": "Nibok", + "type": "District" + }, + { + "code": "NR-13", + "name": "Uaboe", + "type": "District" + }, + { + "code": "NR-14", + "name": "Yaren", + "type": "District" + }, + { + "code": "NZ-AUK", + "name": "Auckland", + "type": "Region" + }, + { + "code": "NZ-BOP", + "name": "Bay of Plenty", + "type": "Region" + }, + { + "code": "NZ-CAN", + "name": "Canterbury", + "type": "Region" + }, + { + "code": "NZ-CIT", + "name": "Chatham Islands Territory", + "type": "Special island authority" + }, + { + "code": "NZ-GIS", + "name": "Gisborne", + "type": "Region" + }, + { + "code": "NZ-HKB", + "name": "Hawke's Bay", + "type": "Region" + }, + { + "code": "NZ-MBH", + "name": "Marlborough", + "type": "Region" + }, + { + "code": "NZ-MWT", + "name": "Manawatū-Whanganui", + "type": "Region" + }, + { + "code": "NZ-NSN", + "name": "Nelson", + "type": "Region" + }, + { + "code": "NZ-NTL", + "name": "Northland", + "type": "Region" + }, + { + "code": "NZ-OTA", + "name": "Otago", + "type": "Region" + }, + { + "code": "NZ-STL", + "name": "Southland", + "type": "Region" + }, + { + "code": "NZ-TAS", + "name": "Tasman", + "type": "Region" + }, + { + "code": "NZ-TKI", + "name": "Taranaki", + "type": "Region" + }, + { + "code": "NZ-WGN", + "name": "Greater Wellington", + "type": "Region" + }, + { + "code": "NZ-WKO", + "name": "Waikato", + "type": "Region" + }, + { + "code": "NZ-WTC", + "name": "West Coast", + "type": "Region" + }, + { + "code": "OM-BJ", + "name": "Janūb al Bāţinah", + "type": "Governorate" + }, + { + "code": "OM-BS", + "name": "Shamāl al Bāţinah", + "type": "Governorate" + }, + { + "code": "OM-BU", + "name": "Al Buraymī", + "type": "Governorate" + }, + { + "code": "OM-DA", + "name": "Ad Dākhilīyah", + "type": "Governorate" + }, + { + "code": "OM-MA", + "name": "Masqaţ", + "type": "Governorate" + }, + { + "code": "OM-MU", + "name": "Musandam", + "type": "Governorate" + }, + { + "code": "OM-SJ", + "name": "Janūb ash Sharqīyah", + "type": "Governorate" + }, + { + "code": "OM-SS", + "name": "Shamāl ash Sharqīyah", + "type": "Governorate" + }, + { + "code": "OM-WU", + "name": "Al Wusţá", + "type": "Governorate" + }, + { + "code": "OM-ZA", + "name": "Az̧ Z̧āhirah", + "type": "Governorate" + }, + { + "code": "OM-ZU", + "name": "Z̧ufār", + "type": "Governorate" + }, + { + "code": "PA-1", + "name": "Bocas del Toro", + "type": "Province" + }, + { + "code": "PA-10", + "name": "Panamá Oeste", + "type": "Province" + }, + { + "code": "PA-2", + "name": "Coclé", + "type": "Province" + }, + { + "code": "PA-3", + "name": "Colón", + "type": "Province" + }, + { + "code": "PA-4", + "name": "Chiriquí", + "type": "Province" + }, + { + "code": "PA-5", + "name": "Darién", + "type": "Province" + }, + { + "code": "PA-6", + "name": "Herrera", + "type": "Province" + }, + { + "code": "PA-7", + "name": "Los Santos", + "type": "Province" + }, + { + "code": "PA-8", + "name": "Panamá", + "type": "Province" + }, + { + "code": "PA-9", + "name": "Veraguas", + "type": "Province" + }, + { + "code": "PA-EM", + "name": "Emberá", + "type": "Indigenous region" + }, + { + "code": "PA-KY", + "name": "Guna Yala", + "type": "Indigenous region" + }, + { + "code": "PA-NB", + "name": "Ngäbe-Buglé", + "type": "Indigenous region" + }, + { + "code": "PA-NT", + "name": "Naso Tjër Di", + "type": "Indigenous region" + }, + { + "code": "PE-AMA", + "name": "Amazonas", + "type": "Region" + }, + { + "code": "PE-ANC", + "name": "Ancash", + "type": "Region" + }, + { + "code": "PE-APU", + "name": "Apurímac", + "type": "Region" + }, + { + "code": "PE-ARE", + "name": "Arequipa", + "type": "Region" + }, + { + "code": "PE-AYA", + "name": "Ayacucho", + "type": "Region" + }, + { + "code": "PE-CAJ", + "name": "Cajamarca", + "type": "Region" + }, + { + "code": "PE-CAL", + "name": "El Callao", + "type": "Region" + }, + { + "code": "PE-CUS", + "name": "Cusco", + "type": "Region" + }, + { + "code": "PE-HUC", + "name": "Huánuco", + "type": "Region" + }, + { + "code": "PE-HUV", + "name": "Huancavelica", + "type": "Region" + }, + { + "code": "PE-ICA", + "name": "Ica", + "type": "Region" + }, + { + "code": "PE-JUN", + "name": "Junín", + "type": "Region" + }, + { + "code": "PE-LAL", + "name": "La Libertad", + "type": "Region" + }, + { + "code": "PE-LAM", + "name": "Lambayeque", + "type": "Region" + }, + { + "code": "PE-LIM", + "name": "Lima", + "type": "Region" + }, + { + "code": "PE-LMA", + "name": "Municipalidad Metropolitana de Lima", + "type": "Municipality" + }, + { + "code": "PE-LOR", + "name": "Loreto", + "type": "Region" + }, + { + "code": "PE-MDD", + "name": "Madre de Dios", + "type": "Region" + }, + { + "code": "PE-MOQ", + "name": "Moquegua", + "type": "Region" + }, + { + "code": "PE-PAS", + "name": "Pasco", + "type": "Region" + }, + { + "code": "PE-PIU", + "name": "Piura", + "type": "Region" + }, + { + "code": "PE-PUN", + "name": "Puno", + "type": "Region" + }, + { + "code": "PE-SAM", + "name": "San Martín", + "type": "Region" + }, + { + "code": "PE-TAC", + "name": "Tacna", + "type": "Region" + }, + { + "code": "PE-TUM", + "name": "Tumbes", + "type": "Region" + }, + { + "code": "PE-UCA", + "name": "Ucayali", + "type": "Region" + }, + { + "code": "PG-CPK", + "name": "Chimbu", + "type": "Province" + }, + { + "code": "PG-CPM", + "name": "Central", + "type": "Province" + }, + { + "code": "PG-EBR", + "name": "East New Britain", + "type": "Province" + }, + { + "code": "PG-EHG", + "name": "Eastern Highlands", + "type": "Province" + }, + { + "code": "PG-EPW", + "name": "Enga", + "type": "Province" + }, + { + "code": "PG-ESW", + "name": "East Sepik", + "type": "Province" + }, + { + "code": "PG-GPK", + "name": "Gulf", + "type": "Province" + }, + { + "code": "PG-HLA", + "name": "Hela", + "type": "Province" + }, + { + "code": "PG-JWK", + "name": "Jiwaka", + "type": "Province" + }, + { + "code": "PG-MBA", + "name": "Milne Bay", + "type": "Province" + }, + { + "code": "PG-MPL", + "name": "Morobe", + "type": "Province" + }, + { + "code": "PG-MPM", + "name": "Madang", + "type": "Province" + }, + { + "code": "PG-MRL", + "name": "Manus", + "type": "Province" + }, + { + "code": "PG-NCD", + "name": "National Capital District (Port Moresby)", + "type": "District" + }, + { + "code": "PG-NIK", + "name": "New Ireland", + "type": "Province" + }, + { + "code": "PG-NPP", + "name": "Northern", + "type": "Province" + }, + { + "code": "PG-NSB", + "name": "Bougainville", + "type": "Autonomous region" + }, + { + "code": "PG-SAN", + "name": "West Sepik", + "type": "Province" + }, + { + "code": "PG-SHM", + "name": "Southern Highlands", + "type": "Province" + }, + { + "code": "PG-WBK", + "name": "West New Britain", + "type": "Province" + }, + { + "code": "PG-WHM", + "name": "Western Highlands", + "type": "Province" + }, + { + "code": "PG-WPD", + "name": "Western", + "type": "Province" + }, + { + "code": "PH-00", + "name": "National Capital Region", + "type": "Region" + }, + { + "code": "PH-01", + "name": "Ilocos (Region I)", + "type": "Region" + }, + { + "code": "PH-02", + "name": "Cagayan Valley (Region II)", + "type": "Region" + }, + { + "code": "PH-03", + "name": "Central Luzon (Region III)", + "type": "Region" + }, + { + "code": "PH-05", + "name": "Bicol (Region V)", + "type": "Region" + }, + { + "code": "PH-06", + "name": "Western Visayas (Region VI)", + "type": "Region" + }, + { + "code": "PH-07", + "name": "Central Visayas (Region VII)", + "type": "Region" + }, + { + "code": "PH-08", + "name": "Eastern Visayas (Region VIII)", + "type": "Region" + }, + { + "code": "PH-09", + "name": "Zamboanga Peninsula (Region IX)", + "type": "Region" + }, + { + "code": "PH-10", + "name": "Northern Mindanao (Region X)", + "type": "Region" + }, + { + "code": "PH-11", + "name": "Davao (Region XI)", + "type": "Region" + }, + { + "code": "PH-12", + "name": "Soccsksargen (Region XII)", + "type": "Region" + }, + { + "code": "PH-13", + "name": "Caraga (Region XIII)", + "type": "Region" + }, + { + "code": "PH-14", + "name": "Autonomous Region in Muslim Mindanao (ARMM)", + "type": "Region" + }, + { + "code": "PH-15", + "name": "Cordillera Administrative Region (CAR)", + "type": "Region" + }, + { + "code": "PH-40", + "name": "Calabarzon (Region IV-A)", + "type": "Region" + }, + { + "code": "PH-41", + "name": "Mimaropa (Region IV-B)", + "type": "Region" + }, + { + "code": "PH-ABR", + "name": "Abra", + "parent": "PH-15", + "type": "Province" + }, + { + "code": "PH-AGN", + "name": "Agusan del Norte", + "parent": "PH-13", + "type": "Province" + }, + { + "code": "PH-AGS", + "name": "Agusan del Sur", + "parent": "PH-13", + "type": "Province" + }, + { + "code": "PH-AKL", + "name": "Aklan", + "parent": "PH-06", + "type": "Province" + }, + { + "code": "PH-ALB", + "name": "Albay", + "parent": "PH-05", + "type": "Province" + }, + { + "code": "PH-ANT", + "name": "Antique", + "parent": "PH-06", + "type": "Province" + }, + { + "code": "PH-APA", + "name": "Apayao", + "parent": "PH-15", + "type": "Province" + }, + { + "code": "PH-AUR", + "name": "Aurora", + "parent": "PH-03", + "type": "Province" + }, + { + "code": "PH-BAN", + "name": "Bataan", + "parent": "PH-03", + "type": "Province" + }, + { + "code": "PH-BAS", + "name": "Basilan", + "parent": "PH-09", + "type": "Province" + }, + { + "code": "PH-BEN", + "name": "Benguet", + "parent": "PH-15", + "type": "Province" + }, + { + "code": "PH-BIL", + "name": "Biliran", + "parent": "PH-08", + "type": "Province" + }, + { + "code": "PH-BOH", + "name": "Bohol", + "parent": "PH-07", + "type": "Province" + }, + { + "code": "PH-BTG", + "name": "Batangas", + "parent": "PH-40", + "type": "Province" + }, + { + "code": "PH-BTN", + "name": "Batanes", + "parent": "PH-02", + "type": "Province" + }, + { + "code": "PH-BUK", + "name": "Bukidnon", + "parent": "PH-10", + "type": "Province" + }, + { + "code": "PH-BUL", + "name": "Bulacan", + "parent": "PH-03", + "type": "Province" + }, + { + "code": "PH-CAG", + "name": "Cagayan", + "parent": "PH-02", + "type": "Province" + }, + { + "code": "PH-CAM", + "name": "Camiguin", + "parent": "PH-10", + "type": "Province" + }, + { + "code": "PH-CAN", + "name": "Camarines Norte", + "parent": "PH-05", + "type": "Province" + }, + { + "code": "PH-CAP", + "name": "Capiz", + "parent": "PH-06", + "type": "Province" + }, + { + "code": "PH-CAS", + "name": "Camarines Sur", + "parent": "PH-05", + "type": "Province" + }, + { + "code": "PH-CAT", + "name": "Catanduanes", + "parent": "PH-05", + "type": "Province" + }, + { + "code": "PH-CAV", + "name": "Cavite", + "parent": "PH-40", + "type": "Province" + }, + { + "code": "PH-CEB", + "name": "Cebu", + "parent": "PH-07", + "type": "Province" + }, + { + "code": "PH-COM", + "name": "Davao de Oro", + "parent": "PH-11", + "type": "Province" + }, + { + "code": "PH-DAO", + "name": "Davao Oriental", + "parent": "PH-11", + "type": "Province" + }, + { + "code": "PH-DAS", + "name": "Davao del Sur", + "parent": "PH-11", + "type": "Province" + }, + { + "code": "PH-DAV", + "name": "Davao del Norte", + "parent": "PH-11", + "type": "Province" + }, + { + "code": "PH-DIN", + "name": "Dinagat Islands", + "parent": "PH-13", + "type": "Province" + }, + { + "code": "PH-DVO", + "name": "Davao Occidental", + "parent": "PH-11", + "type": "Province" + }, + { + "code": "PH-EAS", + "name": "Eastern Samar", + "parent": "PH-08", + "type": "Province" + }, + { + "code": "PH-GUI", + "name": "Guimaras", + "parent": "PH-06", + "type": "Province" + }, + { + "code": "PH-IFU", + "name": "Ifugao", + "parent": "PH-15", + "type": "Province" + }, + { + "code": "PH-ILI", + "name": "Iloilo", + "parent": "PH-06", + "type": "Province" + }, + { + "code": "PH-ILN", + "name": "Ilocos Norte", + "parent": "PH-01", + "type": "Province" + }, + { + "code": "PH-ILS", + "name": "Ilocos Sur", + "parent": "PH-01", + "type": "Province" + }, + { + "code": "PH-ISA", + "name": "Isabela", + "parent": "PH-02", + "type": "Province" + }, + { + "code": "PH-KAL", + "name": "Kalinga", + "parent": "PH-15", + "type": "Province" + }, + { + "code": "PH-LAG", + "name": "Laguna", + "parent": "PH-40", + "type": "Province" + }, + { + "code": "PH-LAN", + "name": "Lanao del Norte", + "parent": "PH-12", + "type": "Province" + }, + { + "code": "PH-LAS", + "name": "Lanao del Sur", + "parent": "PH-14", + "type": "Province" + }, + { + "code": "PH-LEY", + "name": "Leyte", + "parent": "PH-08", + "type": "Province" + }, + { + "code": "PH-LUN", + "name": "La Union", + "parent": "PH-01", + "type": "Province" + }, + { + "code": "PH-MAD", + "name": "Marinduque", + "parent": "PH-41", + "type": "Province" + }, + { + "code": "PH-MAS", + "name": "Masbate", + "parent": "PH-05", + "type": "Province" + }, + { + "code": "PH-MDC", + "name": "Mindoro Occidental", + "parent": "PH-41", + "type": "Province" + }, + { + "code": "PH-MDR", + "name": "Mindoro Oriental", + "parent": "PH-41", + "type": "Province" + }, + { + "code": "PH-MGN", + "name": "Maguindanao del Norte", + "parent": "PH-14", + "type": "Province" + }, + { + "code": "PH-MGS", + "name": "Maguindanao del Sur", + "parent": "PH-14", + "type": "Province" + }, + { + "code": "PH-MOU", + "name": "Mountain Province", + "parent": "PH-15", + "type": "Province" + }, + { + "code": "PH-MSC", + "name": "Misamis Occidental", + "parent": "PH-10", + "type": "Province" + }, + { + "code": "PH-MSR", + "name": "Misamis Oriental", + "parent": "PH-10", + "type": "Province" + }, + { + "code": "PH-NCO", + "name": "Cotabato", + "parent": "PH-12", + "type": "Province" + }, + { + "code": "PH-NEC", + "name": "Negros Occidental", + "parent": "PH-06", + "type": "Province" + }, + { + "code": "PH-NER", + "name": "Negros Oriental", + "parent": "PH-07", + "type": "Province" + }, + { + "code": "PH-NSA", + "name": "Northern Samar", + "parent": "PH-08", + "type": "Province" + }, + { + "code": "PH-NUE", + "name": "Nueva Ecija", + "parent": "PH-03", + "type": "Province" + }, + { + "code": "PH-NUV", + "name": "Nueva Vizcaya", + "parent": "PH-02", + "type": "Province" + }, + { + "code": "PH-PAM", + "name": "Pampanga", + "parent": "PH-03", + "type": "Province" + }, + { + "code": "PH-PAN", + "name": "Pangasinan", + "parent": "PH-01", + "type": "Province" + }, + { + "code": "PH-PLW", + "name": "Palawan", + "parent": "PH-41", + "type": "Province" + }, + { + "code": "PH-QUE", + "name": "Quezon", + "parent": "PH-40", + "type": "Province" + }, + { + "code": "PH-QUI", + "name": "Quirino", + "parent": "PH-02", + "type": "Province" + }, + { + "code": "PH-RIZ", + "name": "Rizal", + "parent": "PH-40", + "type": "Province" + }, + { + "code": "PH-ROM", + "name": "Romblon", + "parent": "PH-41", + "type": "Province" + }, + { + "code": "PH-SAR", + "name": "Sarangani", + "parent": "PH-11", + "type": "Province" + }, + { + "code": "PH-SCO", + "name": "South Cotabato", + "parent": "PH-11", + "type": "Province" + }, + { + "code": "PH-SIG", + "name": "Siquijor", + "parent": "PH-07", + "type": "Province" + }, + { + "code": "PH-SLE", + "name": "Southern Leyte", + "parent": "PH-08", + "type": "Province" + }, + { + "code": "PH-SLU", + "name": "Sulu", + "parent": "PH-14", + "type": "Province" + }, + { + "code": "PH-SOR", + "name": "Sorsogon", + "parent": "PH-05", + "type": "Province" + }, + { + "code": "PH-SUK", + "name": "Sultan Kudarat", + "parent": "PH-12", + "type": "Province" + }, + { + "code": "PH-SUN", + "name": "Surigao del Norte", + "parent": "PH-13", + "type": "Province" + }, + { + "code": "PH-SUR", + "name": "Surigao del Sur", + "parent": "PH-13", + "type": "Province" + }, + { + "code": "PH-TAR", + "name": "Tarlac", + "parent": "PH-03", + "type": "Province" + }, + { + "code": "PH-TAW", + "name": "Tawi-Tawi", + "parent": "PH-14", + "type": "Province" + }, + { + "code": "PH-WSA", + "name": "Samar", + "parent": "PH-08", + "type": "Province" + }, + { + "code": "PH-ZAN", + "name": "Zamboanga del Norte", + "parent": "PH-09", + "type": "Province" + }, + { + "code": "PH-ZAS", + "name": "Zamboanga del Sur", + "parent": "PH-09", + "type": "Province" + }, + { + "code": "PH-ZMB", + "name": "Zambales", + "parent": "PH-03", + "type": "Province" + }, + { + "code": "PH-ZSI", + "name": "Zamboanga Sibugay", + "parent": "PH-09", + "type": "Province" + }, + { + "code": "PK-BA", + "name": "Balochistan", + "type": "Province" + }, + { + "code": "PK-GB", + "name": "Gilgit-Baltistan", + "type": "Pakistan administered area" + }, + { + "code": "PK-IS", + "name": "Islamabad", + "type": "Federal capital territory" + }, + { + "code": "PK-JK", + "name": "Azad Jammu and Kashmir", + "type": "Pakistan administered area" + }, + { + "code": "PK-KP", + "name": "Khyber Pakhtunkhwa", + "type": "Province" + }, + { + "code": "PK-PB", + "name": "Punjab", + "type": "Province" + }, + { + "code": "PK-SD", + "name": "Sindh", + "type": "Province" + }, + { + "code": "PL-02", + "name": "Dolnośląskie", + "type": "Voivodship" + }, + { + "code": "PL-04", + "name": "Kujawsko-Pomorskie", + "type": "Voivodship" + }, + { + "code": "PL-06", + "name": "Lubelskie", + "type": "Voivodship" + }, + { + "code": "PL-08", + "name": "Lubuskie", + "type": "Voivodship" + }, + { + "code": "PL-10", + "name": "Łódzkie", + "type": "Voivodship" + }, + { + "code": "PL-12", + "name": "Małopolskie", + "type": "Voivodship" + }, + { + "code": "PL-14", + "name": "Mazowieckie", + "type": "Voivodship" + }, + { + "code": "PL-16", + "name": "Opolskie", + "type": "Voivodship" + }, + { + "code": "PL-18", + "name": "Podkarpackie", + "type": "Voivodship" + }, + { + "code": "PL-20", + "name": "Podlaskie", + "type": "Voivodship" + }, + { + "code": "PL-22", + "name": "Pomorskie", + "type": "Voivodship" + }, + { + "code": "PL-24", + "name": "Śląskie", + "type": "Voivodship" + }, + { + "code": "PL-26", + "name": "Świętokrzyskie", + "type": "Voivodship" + }, + { + "code": "PL-28", + "name": "Warmińsko-Mazurskie", + "type": "Voivodship" + }, + { + "code": "PL-30", + "name": "Wielkopolskie", + "type": "Voivodship" + }, + { + "code": "PL-32", + "name": "Zachodniopomorskie", + "type": "Voivodship" + }, + { + "code": "PS-BTH", + "name": "Bethlehem", + "type": "Governorate" + }, + { + "code": "PS-DEB", + "name": "Deir El Balah", + "type": "Governorate" + }, + { + "code": "PS-GZA", + "name": "Gaza", + "type": "Governorate" + }, + { + "code": "PS-HBN", + "name": "Hebron", + "type": "Governorate" + }, + { + "code": "PS-JEM", + "name": "Jerusalem", + "type": "Governorate" + }, + { + "code": "PS-JEN", + "name": "Jenin", + "type": "Governorate" + }, + { + "code": "PS-JRH", + "name": "Jericho and Al Aghwar", + "type": "Governorate" + }, + { + "code": "PS-KYS", + "name": "Khan Yunis", + "type": "Governorate" + }, + { + "code": "PS-NBS", + "name": "Nablus", + "type": "Governorate" + }, + { + "code": "PS-NGZ", + "name": "North Gaza", + "type": "Governorate" + }, + { + "code": "PS-QQA", + "name": "Qalqilya", + "type": "Governorate" + }, + { + "code": "PS-RBH", + "name": "Ramallah", + "type": "Governorate" + }, + { + "code": "PS-RFH", + "name": "Rafah", + "type": "Governorate" + }, + { + "code": "PS-SLT", + "name": "Salfit", + "type": "Governorate" + }, + { + "code": "PS-TBS", + "name": "Tubas", + "type": "Governorate" + }, + { + "code": "PS-TKM", + "name": "Tulkarm", + "type": "Governorate" + }, + { + "code": "PT-01", + "name": "Aveiro", + "type": "District" + }, + { + "code": "PT-02", + "name": "Beja", + "type": "District" + }, + { + "code": "PT-03", + "name": "Braga", + "type": "District" + }, + { + "code": "PT-04", + "name": "Bragança", + "type": "District" + }, + { + "code": "PT-05", + "name": "Castelo Branco", + "type": "District" + }, + { + "code": "PT-06", + "name": "Coimbra", + "type": "District" + }, + { + "code": "PT-07", + "name": "Évora", + "type": "District" + }, + { + "code": "PT-08", + "name": "Faro", + "type": "District" + }, + { + "code": "PT-09", + "name": "Guarda", + "type": "District" + }, + { + "code": "PT-10", + "name": "Leiria", + "type": "District" + }, + { + "code": "PT-11", + "name": "Lisboa", + "type": "District" + }, + { + "code": "PT-12", + "name": "Portalegre", + "type": "District" + }, + { + "code": "PT-13", + "name": "Porto", + "type": "District" + }, + { + "code": "PT-14", + "name": "Santarém", + "type": "District" + }, + { + "code": "PT-15", + "name": "Setúbal", + "type": "District" + }, + { + "code": "PT-16", + "name": "Viana do Castelo", + "type": "District" + }, + { + "code": "PT-17", + "name": "Vila Real", + "type": "District" + }, + { + "code": "PT-18", + "name": "Viseu", + "type": "District" + }, + { + "code": "PT-20", + "name": "Região Autónoma dos Açores", + "type": "Autonomous region" + }, + { + "code": "PT-30", + "name": "Região Autónoma da Madeira", + "type": "Autonomous region" + }, + { + "code": "PW-002", + "name": "Aimeliik", + "type": "State" + }, + { + "code": "PW-004", + "name": "Airai", + "type": "State" + }, + { + "code": "PW-010", + "name": "Angaur", + "type": "State" + }, + { + "code": "PW-050", + "name": "Hatohobei", + "type": "State" + }, + { + "code": "PW-100", + "name": "Kayangel", + "type": "State" + }, + { + "code": "PW-150", + "name": "Koror", + "type": "State" + }, + { + "code": "PW-212", + "name": "Melekeok", + "type": "State" + }, + { + "code": "PW-214", + "name": "Ngaraard", + "type": "State" + }, + { + "code": "PW-218", + "name": "Ngarchelong", + "type": "State" + }, + { + "code": "PW-222", + "name": "Ngardmau", + "type": "State" + }, + { + "code": "PW-224", + "name": "Ngatpang", + "type": "State" + }, + { + "code": "PW-226", + "name": "Ngchesar", + "type": "State" + }, + { + "code": "PW-227", + "name": "Ngeremlengui", + "type": "State" + }, + { + "code": "PW-228", + "name": "Ngiwal", + "type": "State" + }, + { + "code": "PW-350", + "name": "Peleliu", + "type": "State" + }, + { + "code": "PW-370", + "name": "Sonsorol", + "type": "State" + }, + { + "code": "PY-1", + "name": "Concepción", + "type": "Department" + }, + { + "code": "PY-10", + "name": "Alto Paraná", + "type": "Department" + }, + { + "code": "PY-11", + "name": "Central", + "type": "Department" + }, + { + "code": "PY-12", + "name": "Ñeembucú", + "type": "Department" + }, + { + "code": "PY-13", + "name": "Amambay", + "type": "Department" + }, + { + "code": "PY-14", + "name": "Canindeyú", + "type": "Department" + }, + { + "code": "PY-15", + "name": "Presidente Hayes", + "type": "Department" + }, + { + "code": "PY-16", + "name": "Alto Paraguay", + "type": "Department" + }, + { + "code": "PY-19", + "name": "Boquerón", + "type": "Department" + }, + { + "code": "PY-2", + "name": "San Pedro", + "type": "Department" + }, + { + "code": "PY-3", + "name": "Cordillera", + "type": "Department" + }, + { + "code": "PY-4", + "name": "Guairá", + "type": "Department" + }, + { + "code": "PY-5", + "name": "Caaguazú", + "type": "Department" + }, + { + "code": "PY-6", + "name": "Caazapá", + "type": "Department" + }, + { + "code": "PY-7", + "name": "Itapúa", + "type": "Department" + }, + { + "code": "PY-8", + "name": "Misiones", + "type": "Department" + }, + { + "code": "PY-9", + "name": "Paraguarí", + "type": "Department" + }, + { + "code": "PY-ASU", + "name": "Asunción", + "type": "Capital" + }, + { + "code": "QA-DA", + "name": "Ad Dawḩah", + "type": "Municipality" + }, + { + "code": "QA-KH", + "name": "Al Khawr wa adh Dhakhīrah", + "type": "Municipality" + }, + { + "code": "QA-MS", + "name": "Ash Shamāl", + "type": "Municipality" + }, + { + "code": "QA-RA", + "name": "Ar Rayyān", + "type": "Municipality" + }, + { + "code": "QA-SH", + "name": "Ash Shīḩānīyah", + "type": "Municipality" + }, + { + "code": "QA-US", + "name": "Umm Şalāl", + "type": "Municipality" + }, + { + "code": "QA-WA", + "name": "Al Wakrah", + "type": "Municipality" + }, + { + "code": "QA-ZA", + "name": "Az̧ Z̧a‘āyin", + "type": "Municipality" + }, + { + "code": "RO-AB", + "name": "Alba", + "type": "Department" + }, + { + "code": "RO-AG", + "name": "Argeș", + "type": "Department" + }, + { + "code": "RO-AR", + "name": "Arad", + "type": "Department" + }, + { + "code": "RO-B", + "name": "București", + "type": "Municipality" + }, + { + "code": "RO-BC", + "name": "Bacău", + "type": "Department" + }, + { + "code": "RO-BH", + "name": "Bihor", + "type": "Department" + }, + { + "code": "RO-BN", + "name": "Bistrița-Năsăud", + "type": "Department" + }, + { + "code": "RO-BR", + "name": "Brăila", + "type": "Department" + }, + { + "code": "RO-BT", + "name": "Botoșani", + "type": "Department" + }, + { + "code": "RO-BV", + "name": "Brașov", + "type": "Department" + }, + { + "code": "RO-BZ", + "name": "Buzău", + "type": "Department" + }, + { + "code": "RO-CJ", + "name": "Cluj", + "type": "Department" + }, + { + "code": "RO-CL", + "name": "Călărași", + "type": "Department" + }, + { + "code": "RO-CS", + "name": "Caraș-Severin", + "type": "Department" + }, + { + "code": "RO-CT", + "name": "Constanța", + "type": "Department" + }, + { + "code": "RO-CV", + "name": "Covasna", + "type": "Department" + }, + { + "code": "RO-DB", + "name": "Dâmbovița", + "type": "Department" + }, + { + "code": "RO-DJ", + "name": "Dolj", + "type": "Department" + }, + { + "code": "RO-GJ", + "name": "Gorj", + "type": "Department" + }, + { + "code": "RO-GL", + "name": "Galați", + "type": "Department" + }, + { + "code": "RO-GR", + "name": "Giurgiu", + "type": "Department" + }, + { + "code": "RO-HD", + "name": "Hunedoara", + "type": "Department" + }, + { + "code": "RO-HR", + "name": "Harghita", + "type": "Department" + }, + { + "code": "RO-IF", + "name": "Ilfov", + "type": "Department" + }, + { + "code": "RO-IL", + "name": "Ialomița", + "type": "Department" + }, + { + "code": "RO-IS", + "name": "Iași", + "type": "Department" + }, + { + "code": "RO-MH", + "name": "Mehedinți", + "type": "Department" + }, + { + "code": "RO-MM", + "name": "Maramureș", + "type": "Department" + }, + { + "code": "RO-MS", + "name": "Mureș", + "type": "Department" + }, + { + "code": "RO-NT", + "name": "Neamț", + "type": "Department" + }, + { + "code": "RO-OT", + "name": "Olt", + "type": "Department" + }, + { + "code": "RO-PH", + "name": "Prahova", + "type": "Department" + }, + { + "code": "RO-SB", + "name": "Sibiu", + "type": "Department" + }, + { + "code": "RO-SJ", + "name": "Sălaj", + "type": "Department" + }, + { + "code": "RO-SM", + "name": "Satu Mare", + "type": "Department" + }, + { + "code": "RO-SV", + "name": "Suceava", + "type": "Department" + }, + { + "code": "RO-TL", + "name": "Tulcea", + "type": "Department" + }, + { + "code": "RO-TM", + "name": "Timiș", + "type": "Department" + }, + { + "code": "RO-TR", + "name": "Teleorman", + "type": "Department" + }, + { + "code": "RO-VL", + "name": "Vâlcea", + "type": "Department" + }, + { + "code": "RO-VN", + "name": "Vrancea", + "type": "Department" + }, + { + "code": "RO-VS", + "name": "Vaslui", + "type": "Department" + }, + { + "code": "RS-00", + "name": "Beograd", + "type": "City" + }, + { + "code": "RS-01", + "name": "Severnobački okrug", + "parent": "RS-VO", + "type": "District" + }, + { + "code": "RS-02", + "name": "Srednjebanatski okrug", + "parent": "RS-VO", + "type": "District" + }, + { + "code": "RS-03", + "name": "Severnobanatski okrug", + "parent": "RS-VO", + "type": "District" + }, + { + "code": "RS-04", + "name": "Južnobanatski okrug", + "parent": "RS-VO", + "type": "District" + }, + { + "code": "RS-05", + "name": "Zapadnobački okrug", + "parent": "RS-VO", + "type": "District" + }, + { + "code": "RS-06", + "name": "Južnobački okrug", + "parent": "RS-VO", + "type": "District" + }, + { + "code": "RS-07", + "name": "Sremski okrug", + "parent": "RS-VO", + "type": "District" + }, + { + "code": "RS-08", + "name": "Mačvanski okrug", + "type": "District" + }, + { + "code": "RS-09", + "name": "Kolubarski okrug", + "type": "District" + }, + { + "code": "RS-10", + "name": "Podunavski okrug", + "type": "District" + }, + { + "code": "RS-11", + "name": "Braničevski okrug", + "type": "District" + }, + { + "code": "RS-12", + "name": "Šumadijski okrug", + "type": "District" + }, + { + "code": "RS-13", + "name": "Pomoravski okrug", + "type": "District" + }, + { + "code": "RS-14", + "name": "Borski okrug", + "type": "District" + }, + { + "code": "RS-15", + "name": "Zaječarski okrug", + "type": "District" + }, + { + "code": "RS-16", + "name": "Zlatiborski okrug", + "type": "District" + }, + { + "code": "RS-17", + "name": "Moravički okrug", + "type": "District" + }, + { + "code": "RS-18", + "name": "Raški okrug", + "type": "District" + }, + { + "code": "RS-19", + "name": "Rasinski okrug", + "type": "District" + }, + { + "code": "RS-20", + "name": "Nišavski okrug", + "type": "District" + }, + { + "code": "RS-21", + "name": "Toplički okrug", + "type": "District" + }, + { + "code": "RS-22", + "name": "Pirotski okrug", + "type": "District" + }, + { + "code": "RS-23", + "name": "Jablanički okrug", + "type": "District" + }, + { + "code": "RS-24", + "name": "Pčinjski okrug", + "type": "District" + }, + { + "code": "RS-25", + "name": "Kosovski okrug", + "parent": "RS-KM", + "type": "District" + }, + { + "code": "RS-26", + "name": "Pećki okrug", + "parent": "RS-KM", + "type": "District" + }, + { + "code": "RS-27", + "name": "Prizrenski okrug", + "parent": "RS-KM", + "type": "District" + }, + { + "code": "RS-28", + "name": "Kosovsko-Mitrovački okrug", + "parent": "RS-KM", + "type": "District" + }, + { + "code": "RS-29", + "name": "Kosovsko-Pomoravski okrug", + "parent": "RS-KM", + "type": "District" + }, + { + "code": "RS-KM", + "name": "Kosovo-Metohija", + "type": "Autonomous province" + }, + { + "code": "RS-VO", + "name": "Vojvodina", + "type": "Autonomous province" + }, + { + "code": "RU-AD", + "name": "Adygeya, Respublika", + "type": "Republic" + }, + { + "code": "RU-AL", + "name": "Altay, Respublika", + "type": "Republic" + }, + { + "code": "RU-ALT", + "name": "Altayskiy kray", + "type": "Administrative territory" + }, + { + "code": "RU-AMU", + "name": "Amurskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-ARK", + "name": "Arkhangel'skaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-AST", + "name": "Astrakhanskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-BA", + "name": "Bashkortostan, Respublika", + "type": "Republic" + }, + { + "code": "RU-BEL", + "name": "Belgorodskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-BRY", + "name": "Bryanskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-BU", + "name": "Buryatiya, Respublika", + "type": "Republic" + }, + { + "code": "RU-CE", + "name": "Chechenskaya Respublika", + "type": "Republic" + }, + { + "code": "RU-CHE", + "name": "Chelyabinskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-CHU", + "name": "Chukotskiy avtonomnyy okrug", + "type": "Autonomous district" + }, + { + "code": "RU-CU", + "name": "Chuvashskaya Respublika", + "type": "Republic" + }, + { + "code": "RU-DA", + "name": "Dagestan, Respublika", + "type": "Republic" + }, + { + "code": "RU-IN", + "name": "Ingushetiya, Respublika", + "type": "Republic" + }, + { + "code": "RU-IRK", + "name": "Irkutskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-IVA", + "name": "Ivanovskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-KAM", + "name": "Kamchatskiy kray", + "type": "Administrative territory" + }, + { + "code": "RU-KB", + "name": "Kabardino-Balkarskaya Respublika", + "type": "Republic" + }, + { + "code": "RU-KC", + "name": "Karachayevo-Cherkesskaya Respublika", + "type": "Republic" + }, + { + "code": "RU-KDA", + "name": "Krasnodarskiy kray", + "type": "Administrative territory" + }, + { + "code": "RU-KEM", + "name": "Kemerovskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-KGD", + "name": "Kaliningradskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-KGN", + "name": "Kurganskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-KHA", + "name": "Khabarovskiy kray", + "type": "Administrative territory" + }, + { + "code": "RU-KHM", + "name": "Khanty-Mansiyskiy avtonomnyy okrug", + "type": "Autonomous district" + }, + { + "code": "RU-KIR", + "name": "Kirovskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-KK", + "name": "Khakasiya, Respublika", + "type": "Republic" + }, + { + "code": "RU-KL", + "name": "Kalmykiya, Respublika", + "type": "Republic" + }, + { + "code": "RU-KLU", + "name": "Kaluzhskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-KO", + "name": "Komi, Respublika", + "type": "Republic" + }, + { + "code": "RU-KOS", + "name": "Kostromskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-KR", + "name": "Kareliya, Respublika", + "type": "Republic" + }, + { + "code": "RU-KRS", + "name": "Kurskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-KYA", + "name": "Krasnoyarskiy kray", + "type": "Administrative territory" + }, + { + "code": "RU-LEN", + "name": "Leningradskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-LIP", + "name": "Lipetskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-MAG", + "name": "Magadanskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-ME", + "name": "Mariy El, Respublika", + "type": "Republic" + }, + { + "code": "RU-MO", + "name": "Mordoviya, Respublika", + "type": "Republic" + }, + { + "code": "RU-MOS", + "name": "Moskovskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-MOW", + "name": "Moskva", + "type": "Autonomous city" + }, + { + "code": "RU-MUR", + "name": "Murmanskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-NEN", + "name": "Nenetskiy avtonomnyy okrug", + "type": "Autonomous district" + }, + { + "code": "RU-NGR", + "name": "Novgorodskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-NIZ", + "name": "Nizhegorodskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-NVS", + "name": "Novosibirskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-OMS", + "name": "Omskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-ORE", + "name": "Orenburgskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-ORL", + "name": "Orlovskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-PER", + "name": "Permskiy kray", + "type": "Administrative territory" + }, + { + "code": "RU-PNZ", + "name": "Penzenskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-PRI", + "name": "Primorskiy kray", + "type": "Administrative territory" + }, + { + "code": "RU-PSK", + "name": "Pskovskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-ROS", + "name": "Rostovskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-RYA", + "name": "Ryazanskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-SA", + "name": "Saha, Respublika", + "type": "Republic" + }, + { + "code": "RU-SAK", + "name": "Sakhalinskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-SAM", + "name": "Samarskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-SAR", + "name": "Saratovskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-SE", + "name": "Severnaya Osetiya, Respublika", + "type": "Republic" + }, + { + "code": "RU-SMO", + "name": "Smolenskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-SPE", + "name": "Sankt-Peterburg", + "type": "Autonomous city" + }, + { + "code": "RU-STA", + "name": "Stavropol'skiy kray", + "type": "Administrative territory" + }, + { + "code": "RU-SVE", + "name": "Sverdlovskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-TA", + "name": "Tatarstan, Respublika", + "type": "Republic" + }, + { + "code": "RU-TAM", + "name": "Tambovskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-TOM", + "name": "Tomskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-TUL", + "name": "Tul'skaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-TVE", + "name": "Tverskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-TY", + "name": "Tyva, Respublika", + "type": "Republic" + }, + { + "code": "RU-TYU", + "name": "Tyumenskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-UD", + "name": "Udmurtskaya Respublika", + "type": "Republic" + }, + { + "code": "RU-ULY", + "name": "Ul'yanovskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-VGG", + "name": "Volgogradskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-VLA", + "name": "Vladimirskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-VLG", + "name": "Vologodskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-VOR", + "name": "Voronezhskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-YAN", + "name": "Yamalo-Nenetskiy avtonomnyy okrug", + "type": "Autonomous district" + }, + { + "code": "RU-YAR", + "name": "Yaroslavskaya oblast'", + "type": "Administrative region" + }, + { + "code": "RU-YEV", + "name": "Yevreyskaya avtonomnaya oblast'", + "type": "Autonomous region" + }, + { + "code": "RU-ZAB", + "name": "Zabaykal'skiy kray", + "type": "Administrative territory" + }, + { + "code": "RW-01", + "name": "City of Kigali", + "type": "City" + }, + { + "code": "RW-02", + "name": "Eastern", + "type": "Province" + }, + { + "code": "RW-03", + "name": "Northern", + "type": "Province" + }, + { + "code": "RW-04", + "name": "Western", + "type": "Province" + }, + { + "code": "RW-05", + "name": "Southern", + "type": "Province" + }, + { + "code": "SA-01", + "name": "Ar Riyāḑ", + "type": "Region" + }, + { + "code": "SA-02", + "name": "Makkah al Mukarramah", + "type": "Region" + }, + { + "code": "SA-03", + "name": "Al Madīnah al Munawwarah", + "type": "Region" + }, + { + "code": "SA-04", + "name": "Ash Sharqīyah", + "type": "Region" + }, + { + "code": "SA-05", + "name": "Al Qaşīm", + "type": "Region" + }, + { + "code": "SA-06", + "name": "Ḩā'il", + "type": "Region" + }, + { + "code": "SA-07", + "name": "Tabūk", + "type": "Region" + }, + { + "code": "SA-08", + "name": "Al Ḩudūd ash Shamālīyah", + "type": "Region" + }, + { + "code": "SA-09", + "name": "Jāzān", + "type": "Region" + }, + { + "code": "SA-10", + "name": "Najrān", + "type": "Region" + }, + { + "code": "SA-11", + "name": "Al Bāḩah", + "type": "Region" + }, + { + "code": "SA-12", + "name": "Al Jawf", + "type": "Region" + }, + { + "code": "SA-14", + "name": "'Asīr", + "type": "Region" + }, + { + "code": "SB-CE", + "name": "Central", + "type": "Province" + }, + { + "code": "SB-CH", + "name": "Choiseul", + "type": "Province" + }, + { + "code": "SB-CT", + "name": "Capital Territory (Honiara)", + "type": "Capital territory" + }, + { + "code": "SB-GU", + "name": "Guadalcanal", + "type": "Province" + }, + { + "code": "SB-IS", + "name": "Isabel", + "type": "Province" + }, + { + "code": "SB-MK", + "name": "Makira-Ulawa", + "type": "Province" + }, + { + "code": "SB-ML", + "name": "Malaita", + "type": "Province" + }, + { + "code": "SB-RB", + "name": "Rennell and Bellona", + "type": "Province" + }, + { + "code": "SB-TE", + "name": "Temotu", + "type": "Province" + }, + { + "code": "SB-WE", + "name": "Western", + "type": "Province" + }, + { + "code": "SC-01", + "name": "Anse aux Pins", + "type": "District" + }, + { + "code": "SC-02", + "name": "Anse Boileau", + "type": "District" + }, + { + "code": "SC-03", + "name": "Anse Etoile", + "type": "District" + }, + { + "code": "SC-04", + "name": "Au Cap", + "type": "District" + }, + { + "code": "SC-05", + "name": "Anse Royale", + "type": "District" + }, + { + "code": "SC-06", + "name": "Baie Lazare", + "type": "District" + }, + { + "code": "SC-07", + "name": "Baie Sainte Anne", + "type": "District" + }, + { + "code": "SC-08", + "name": "Beau Vallon", + "type": "District" + }, + { + "code": "SC-09", + "name": "Bel Air", + "type": "District" + }, + { + "code": "SC-10", + "name": "Bel Ombre", + "type": "District" + }, + { + "code": "SC-11", + "name": "Cascade", + "type": "District" + }, + { + "code": "SC-12", + "name": "Glacis", + "type": "District" + }, + { + "code": "SC-13", + "name": "Grand Anse Mahe", + "type": "District" + }, + { + "code": "SC-14", + "name": "Grand Anse Praslin", + "type": "District" + }, + { + "code": "SC-15", + "name": "La Digue", + "type": "District" + }, + { + "code": "SC-16", + "name": "English River", + "type": "District" + }, + { + "code": "SC-17", + "name": "Mont Buxton", + "type": "District" + }, + { + "code": "SC-18", + "name": "Mont Fleuri", + "type": "District" + }, + { + "code": "SC-19", + "name": "Plaisance", + "type": "District" + }, + { + "code": "SC-20", + "name": "Pointe Larue", + "type": "District" + }, + { + "code": "SC-21", + "name": "Port Glaud", + "type": "District" + }, + { + "code": "SC-22", + "name": "Saint Louis", + "type": "District" + }, + { + "code": "SC-23", + "name": "Takamaka", + "type": "District" + }, + { + "code": "SC-24", + "name": "Les Mamelles", + "type": "District" + }, + { + "code": "SC-25", + "name": "Roche Caiman", + "type": "District" + }, + { + "code": "SC-26", + "name": "Ile Perseverance I", + "type": "District" + }, + { + "code": "SC-27", + "name": "Ile Perseverance II", + "type": "District" + }, + { + "code": "SD-DC", + "name": "Central Darfur", + "type": "State" + }, + { + "code": "SD-DE", + "name": "East Darfur", + "type": "State" + }, + { + "code": "SD-DN", + "name": "North Darfur", + "type": "State" + }, + { + "code": "SD-DS", + "name": "South Darfur", + "type": "State" + }, + { + "code": "SD-DW", + "name": "West Darfur", + "type": "State" + }, + { + "code": "SD-GD", + "name": "Gedaref", + "type": "State" + }, + { + "code": "SD-GK", + "name": "West Kordofan", + "type": "State" + }, + { + "code": "SD-GZ", + "name": "Gezira", + "type": "State" + }, + { + "code": "SD-KA", + "name": "Kassala", + "type": "State" + }, + { + "code": "SD-KH", + "name": "Khartoum", + "type": "State" + }, + { + "code": "SD-KN", + "name": "North Kordofan", + "type": "State" + }, + { + "code": "SD-KS", + "name": "South Kordofan", + "type": "State" + }, + { + "code": "SD-NB", + "name": "Blue Nile", + "type": "State" + }, + { + "code": "SD-NO", + "name": "Northern", + "type": "State" + }, + { + "code": "SD-NR", + "name": "River Nile", + "type": "State" + }, + { + "code": "SD-NW", + "name": "White Nile", + "type": "State" + }, + { + "code": "SD-RS", + "name": "Red Sea", + "type": "State" + }, + { + "code": "SD-SI", + "name": "Sennar", + "type": "State" + }, + { + "code": "SE-AB", + "name": "Stockholms län [SE-01]", + "type": "County" + }, + { + "code": "SE-AC", + "name": "Västerbottens län [SE-24]", + "type": "County" + }, + { + "code": "SE-BD", + "name": "Norrbottens län [SE-25]", + "type": "County" + }, + { + "code": "SE-C", + "name": "Uppsala län [SE-03]", + "type": "County" + }, + { + "code": "SE-D", + "name": "Södermanlands län [SE-04]", + "type": "County" + }, + { + "code": "SE-E", + "name": "Östergötlands län [SE-05]", + "type": "County" + }, + { + "code": "SE-F", + "name": "Jönköpings län [SE-06]", + "type": "County" + }, + { + "code": "SE-G", + "name": "Kronobergs län [SE-07]", + "type": "County" + }, + { + "code": "SE-H", + "name": "Kalmar län [SE-08]", + "type": "County" + }, + { + "code": "SE-I", + "name": "Gotlands län [SE-09]", + "type": "County" + }, + { + "code": "SE-K", + "name": "Blekinge län [SE-10]", + "type": "County" + }, + { + "code": "SE-M", + "name": "Skåne län [SE-12]", + "type": "County" + }, + { + "code": "SE-N", + "name": "Hallands län [SE-13]", + "type": "County" + }, + { + "code": "SE-O", + "name": "Västra Götalands län [SE-14]", + "type": "County" + }, + { + "code": "SE-S", + "name": "Värmlands län [SE-17]", + "type": "County" + }, + { + "code": "SE-T", + "name": "Örebro län [SE-18]", + "type": "County" + }, + { + "code": "SE-U", + "name": "Västmanlands län [SE-19]", + "type": "County" + }, + { + "code": "SE-W", + "name": "Dalarnas län [SE-20]", + "type": "County" + }, + { + "code": "SE-X", + "name": "Gävleborgs län [SE-21]", + "type": "County" + }, + { + "code": "SE-Y", + "name": "Västernorrlands län [SE-22]", + "type": "County" + }, + { + "code": "SE-Z", + "name": "Jämtlands län [SE-23]", + "type": "County" + }, + { + "code": "SG-01", + "name": "Central Singapore", + "type": "District" + }, + { + "code": "SG-02", + "name": "North East", + "type": "District" + }, + { + "code": "SG-03", + "name": "North West", + "type": "District" + }, + { + "code": "SG-04", + "name": "South East", + "type": "District" + }, + { + "code": "SG-05", + "name": "South West", + "type": "District" + }, + { + "code": "SH-AC", + "name": "Ascension", + "type": "Geographical entity" + }, + { + "code": "SH-HL", + "name": "Saint Helena", + "type": "Geographical entity" + }, + { + "code": "SH-TA", + "name": "Tristan da Cunha", + "type": "Geographical entity" + }, + { + "code": "SI-001", + "name": "Ajdovščina", + "type": "Municipality" + }, + { + "code": "SI-002", + "name": "Beltinci", + "type": "Municipality" + }, + { + "code": "SI-003", + "name": "Bled", + "type": "Municipality" + }, + { + "code": "SI-004", + "name": "Bohinj", + "type": "Municipality" + }, + { + "code": "SI-005", + "name": "Borovnica", + "type": "Municipality" + }, + { + "code": "SI-006", + "name": "Bovec", + "type": "Municipality" + }, + { + "code": "SI-007", + "name": "Brda", + "type": "Municipality" + }, + { + "code": "SI-008", + "name": "Brezovica", + "type": "Municipality" + }, + { + "code": "SI-009", + "name": "Brežice", + "type": "Municipality" + }, + { + "code": "SI-010", + "name": "Tišina", + "type": "Municipality" + }, + { + "code": "SI-011", + "name": "Celje", + "type": "Urban municipality" + }, + { + "code": "SI-012", + "name": "Cerklje na Gorenjskem", + "type": "Municipality" + }, + { + "code": "SI-013", + "name": "Cerknica", + "type": "Municipality" + }, + { + "code": "SI-014", + "name": "Cerkno", + "type": "Municipality" + }, + { + "code": "SI-015", + "name": "Črenšovci", + "type": "Municipality" + }, + { + "code": "SI-016", + "name": "Črna na Koroškem", + "type": "Municipality" + }, + { + "code": "SI-017", + "name": "Črnomelj", + "type": "Municipality" + }, + { + "code": "SI-018", + "name": "Destrnik", + "type": "Municipality" + }, + { + "code": "SI-019", + "name": "Divača", + "type": "Municipality" + }, + { + "code": "SI-020", + "name": "Dobrepolje", + "type": "Municipality" + }, + { + "code": "SI-021", + "name": "Dobrova-Polhov Gradec", + "type": "Municipality" + }, + { + "code": "SI-022", + "name": "Dol pri Ljubljani", + "type": "Municipality" + }, + { + "code": "SI-023", + "name": "Domžale", + "type": "Municipality" + }, + { + "code": "SI-024", + "name": "Dornava", + "type": "Municipality" + }, + { + "code": "SI-025", + "name": "Dravograd", + "type": "Municipality" + }, + { + "code": "SI-026", + "name": "Duplek", + "type": "Municipality" + }, + { + "code": "SI-027", + "name": "Gorenja vas-Poljane", + "type": "Municipality" + }, + { + "code": "SI-028", + "name": "Gorišnica", + "type": "Municipality" + }, + { + "code": "SI-029", + "name": "Gornja Radgona", + "type": "Municipality" + }, + { + "code": "SI-030", + "name": "Gornji Grad", + "type": "Municipality" + }, + { + "code": "SI-031", + "name": "Gornji Petrovci", + "type": "Municipality" + }, + { + "code": "SI-032", + "name": "Grosuplje", + "type": "Municipality" + }, + { + "code": "SI-033", + "name": "Šalovci", + "type": "Municipality" + }, + { + "code": "SI-034", + "name": "Hrastnik", + "type": "Municipality" + }, + { + "code": "SI-035", + "name": "Hrpelje-Kozina", + "type": "Municipality" + }, + { + "code": "SI-036", + "name": "Idrija", + "type": "Municipality" + }, + { + "code": "SI-037", + "name": "Ig", + "type": "Municipality" + }, + { + "code": "SI-038", + "name": "Ilirska Bistrica", + "type": "Municipality" + }, + { + "code": "SI-039", + "name": "Ivančna Gorica", + "type": "Municipality" + }, + { + "code": "SI-040", + "name": "Izola", + "type": "Municipality" + }, + { + "code": "SI-041", + "name": "Jesenice", + "type": "Municipality" + }, + { + "code": "SI-042", + "name": "Juršinci", + "type": "Municipality" + }, + { + "code": "SI-043", + "name": "Kamnik", + "type": "Municipality" + }, + { + "code": "SI-044", + "name": "Kanal ob Soči", + "type": "Municipality" + }, + { + "code": "SI-045", + "name": "Kidričevo", + "type": "Municipality" + }, + { + "code": "SI-046", + "name": "Kobarid", + "type": "Municipality" + }, + { + "code": "SI-047", + "name": "Kobilje", + "type": "Municipality" + }, + { + "code": "SI-048", + "name": "Kočevje", + "type": "Municipality" + }, + { + "code": "SI-049", + "name": "Komen", + "type": "Municipality" + }, + { + "code": "SI-050", + "name": "Koper", + "type": "Urban municipality" + }, + { + "code": "SI-051", + "name": "Kozje", + "type": "Municipality" + }, + { + "code": "SI-052", + "name": "Kranj", + "type": "Urban municipality" + }, + { + "code": "SI-053", + "name": "Kranjska Gora", + "type": "Municipality" + }, + { + "code": "SI-054", + "name": "Krško", + "type": "Urban municipality" + }, + { + "code": "SI-055", + "name": "Kungota", + "type": "Municipality" + }, + { + "code": "SI-056", + "name": "Kuzma", + "type": "Municipality" + }, + { + "code": "SI-057", + "name": "Laško", + "type": "Municipality" + }, + { + "code": "SI-058", + "name": "Lenart", + "type": "Municipality" + }, + { + "code": "SI-059", + "name": "Lendava", + "type": "Municipality" + }, + { + "code": "SI-060", + "name": "Litija", + "type": "Municipality" + }, + { + "code": "SI-061", + "name": "Ljubljana", + "type": "Urban municipality" + }, + { + "code": "SI-062", + "name": "Ljubno", + "type": "Municipality" + }, + { + "code": "SI-063", + "name": "Ljutomer", + "type": "Municipality" + }, + { + "code": "SI-064", + "name": "Logatec", + "type": "Municipality" + }, + { + "code": "SI-065", + "name": "Loška dolina", + "type": "Municipality" + }, + { + "code": "SI-066", + "name": "Loški Potok", + "type": "Municipality" + }, + { + "code": "SI-067", + "name": "Luče", + "type": "Municipality" + }, + { + "code": "SI-068", + "name": "Lukovica", + "type": "Municipality" + }, + { + "code": "SI-069", + "name": "Majšperk", + "type": "Municipality" + }, + { + "code": "SI-070", + "name": "Maribor", + "type": "Urban municipality" + }, + { + "code": "SI-071", + "name": "Medvode", + "type": "Municipality" + }, + { + "code": "SI-072", + "name": "Mengeš", + "type": "Municipality" + }, + { + "code": "SI-073", + "name": "Metlika", + "type": "Municipality" + }, + { + "code": "SI-074", + "name": "Mežica", + "type": "Municipality" + }, + { + "code": "SI-075", + "name": "Miren-Kostanjevica", + "type": "Municipality" + }, + { + "code": "SI-076", + "name": "Mislinja", + "type": "Municipality" + }, + { + "code": "SI-077", + "name": "Moravče", + "type": "Municipality" + }, + { + "code": "SI-078", + "name": "Moravske Toplice", + "type": "Municipality" + }, + { + "code": "SI-079", + "name": "Mozirje", + "type": "Municipality" + }, + { + "code": "SI-080", + "name": "Murska Sobota", + "type": "Urban municipality" + }, + { + "code": "SI-081", + "name": "Muta", + "type": "Municipality" + }, + { + "code": "SI-082", + "name": "Naklo", + "type": "Municipality" + }, + { + "code": "SI-083", + "name": "Nazarje", + "type": "Municipality" + }, + { + "code": "SI-084", + "name": "Nova Gorica", + "type": "Urban municipality" + }, + { + "code": "SI-085", + "name": "Novo Mesto", + "type": "Urban municipality" + }, + { + "code": "SI-086", + "name": "Odranci", + "type": "Municipality" + }, + { + "code": "SI-087", + "name": "Ormož", + "type": "Municipality" + }, + { + "code": "SI-088", + "name": "Osilnica", + "type": "Municipality" + }, + { + "code": "SI-089", + "name": "Pesnica", + "type": "Municipality" + }, + { + "code": "SI-090", + "name": "Piran", + "type": "Municipality" + }, + { + "code": "SI-091", + "name": "Pivka", + "type": "Municipality" + }, + { + "code": "SI-092", + "name": "Podčetrtek", + "type": "Municipality" + }, + { + "code": "SI-093", + "name": "Podvelka", + "type": "Municipality" + }, + { + "code": "SI-094", + "name": "Postojna", + "type": "Municipality" + }, + { + "code": "SI-095", + "name": "Preddvor", + "type": "Municipality" + }, + { + "code": "SI-096", + "name": "Ptuj", + "type": "Urban municipality" + }, + { + "code": "SI-097", + "name": "Puconci", + "type": "Municipality" + }, + { + "code": "SI-098", + "name": "Rače-Fram", + "type": "Municipality" + }, + { + "code": "SI-099", + "name": "Radeče", + "type": "Municipality" + }, + { + "code": "SI-100", + "name": "Radenci", + "type": "Municipality" + }, + { + "code": "SI-101", + "name": "Radlje ob Dravi", + "type": "Municipality" + }, + { + "code": "SI-102", + "name": "Radovljica", + "type": "Municipality" + }, + { + "code": "SI-103", + "name": "Ravne na Koroškem", + "type": "Municipality" + }, + { + "code": "SI-104", + "name": "Ribnica", + "type": "Municipality" + }, + { + "code": "SI-105", + "name": "Rogašovci", + "type": "Municipality" + }, + { + "code": "SI-106", + "name": "Rogaška Slatina", + "type": "Municipality" + }, + { + "code": "SI-107", + "name": "Rogatec", + "type": "Municipality" + }, + { + "code": "SI-108", + "name": "Ruše", + "type": "Municipality" + }, + { + "code": "SI-109", + "name": "Semič", + "type": "Municipality" + }, + { + "code": "SI-110", + "name": "Sevnica", + "type": "Municipality" + }, + { + "code": "SI-111", + "name": "Sežana", + "type": "Municipality" + }, + { + "code": "SI-112", + "name": "Slovenj Gradec", + "type": "Urban municipality" + }, + { + "code": "SI-113", + "name": "Slovenska Bistrica", + "type": "Municipality" + }, + { + "code": "SI-114", + "name": "Slovenske Konjice", + "type": "Municipality" + }, + { + "code": "SI-115", + "name": "Starše", + "type": "Municipality" + }, + { + "code": "SI-116", + "name": "Sveti Jurij ob Ščavnici", + "type": "Municipality" + }, + { + "code": "SI-117", + "name": "Šenčur", + "type": "Municipality" + }, + { + "code": "SI-118", + "name": "Šentilj", + "type": "Municipality" + }, + { + "code": "SI-119", + "name": "Šentjernej", + "type": "Municipality" + }, + { + "code": "SI-120", + "name": "Šentjur", + "type": "Municipality" + }, + { + "code": "SI-121", + "name": "Škocjan", + "type": "Municipality" + }, + { + "code": "SI-122", + "name": "Škofja Loka", + "type": "Municipality" + }, + { + "code": "SI-123", + "name": "Škofljica", + "type": "Municipality" + }, + { + "code": "SI-124", + "name": "Šmarje pri Jelšah", + "type": "Municipality" + }, + { + "code": "SI-125", + "name": "Šmartno ob Paki", + "type": "Municipality" + }, + { + "code": "SI-126", + "name": "Šoštanj", + "type": "Municipality" + }, + { + "code": "SI-127", + "name": "Štore", + "type": "Municipality" + }, + { + "code": "SI-128", + "name": "Tolmin", + "type": "Municipality" + }, + { + "code": "SI-129", + "name": "Trbovlje", + "type": "Municipality" + }, + { + "code": "SI-130", + "name": "Trebnje", + "type": "Municipality" + }, + { + "code": "SI-131", + "name": "Tržič", + "type": "Municipality" + }, + { + "code": "SI-132", + "name": "Turnišče", + "type": "Municipality" + }, + { + "code": "SI-133", + "name": "Velenje", + "type": "Urban municipality" + }, + { + "code": "SI-134", + "name": "Velike Lašče", + "type": "Municipality" + }, + { + "code": "SI-135", + "name": "Videm", + "type": "Municipality" + }, + { + "code": "SI-136", + "name": "Vipava", + "type": "Municipality" + }, + { + "code": "SI-137", + "name": "Vitanje", + "type": "Municipality" + }, + { + "code": "SI-138", + "name": "Vodice", + "type": "Municipality" + }, + { + "code": "SI-139", + "name": "Vojnik", + "type": "Municipality" + }, + { + "code": "SI-140", + "name": "Vrhnika", + "type": "Municipality" + }, + { + "code": "SI-141", + "name": "Vuzenica", + "type": "Municipality" + }, + { + "code": "SI-142", + "name": "Zagorje ob Savi", + "type": "Municipality" + }, + { + "code": "SI-143", + "name": "Zavrč", + "type": "Municipality" + }, + { + "code": "SI-144", + "name": "Zreče", + "type": "Municipality" + }, + { + "code": "SI-146", + "name": "Železniki", + "type": "Municipality" + }, + { + "code": "SI-147", + "name": "Žiri", + "type": "Municipality" + }, + { + "code": "SI-148", + "name": "Benedikt", + "type": "Municipality" + }, + { + "code": "SI-149", + "name": "Bistrica ob Sotli", + "type": "Municipality" + }, + { + "code": "SI-150", + "name": "Bloke", + "type": "Municipality" + }, + { + "code": "SI-151", + "name": "Braslovče", + "type": "Municipality" + }, + { + "code": "SI-152", + "name": "Cankova", + "type": "Municipality" + }, + { + "code": "SI-153", + "name": "Cerkvenjak", + "type": "Municipality" + }, + { + "code": "SI-154", + "name": "Dobje", + "type": "Municipality" + }, + { + "code": "SI-155", + "name": "Dobrna", + "type": "Municipality" + }, + { + "code": "SI-156", + "name": "Dobrovnik", + "type": "Municipality" + }, + { + "code": "SI-157", + "name": "Dolenjske Toplice", + "type": "Municipality" + }, + { + "code": "SI-158", + "name": "Grad", + "type": "Municipality" + }, + { + "code": "SI-159", + "name": "Hajdina", + "type": "Municipality" + }, + { + "code": "SI-160", + "name": "Hoče-Slivnica", + "type": "Municipality" + }, + { + "code": "SI-161", + "name": "Hodoš", + "type": "Municipality" + }, + { + "code": "SI-162", + "name": "Horjul", + "type": "Municipality" + }, + { + "code": "SI-163", + "name": "Jezersko", + "type": "Municipality" + }, + { + "code": "SI-164", + "name": "Komenda", + "type": "Municipality" + }, + { + "code": "SI-165", + "name": "Kostel", + "type": "Municipality" + }, + { + "code": "SI-166", + "name": "Križevci", + "type": "Municipality" + }, + { + "code": "SI-167", + "name": "Lovrenc na Pohorju", + "type": "Municipality" + }, + { + "code": "SI-168", + "name": "Markovci", + "type": "Municipality" + }, + { + "code": "SI-169", + "name": "Miklavž na Dravskem polju", + "type": "Municipality" + }, + { + "code": "SI-170", + "name": "Mirna Peč", + "type": "Municipality" + }, + { + "code": "SI-171", + "name": "Oplotnica", + "type": "Municipality" + }, + { + "code": "SI-172", + "name": "Podlehnik", + "type": "Municipality" + }, + { + "code": "SI-173", + "name": "Polzela", + "type": "Municipality" + }, + { + "code": "SI-174", + "name": "Prebold", + "type": "Municipality" + }, + { + "code": "SI-175", + "name": "Prevalje", + "type": "Municipality" + }, + { + "code": "SI-176", + "name": "Razkrižje", + "type": "Municipality" + }, + { + "code": "SI-177", + "name": "Ribnica na Pohorju", + "type": "Municipality" + }, + { + "code": "SI-178", + "name": "Selnica ob Dravi", + "type": "Municipality" + }, + { + "code": "SI-179", + "name": "Sodražica", + "type": "Municipality" + }, + { + "code": "SI-180", + "name": "Solčava", + "type": "Municipality" + }, + { + "code": "SI-181", + "name": "Sveta Ana", + "type": "Municipality" + }, + { + "code": "SI-182", + "name": "Sveti Andraž v Slovenskih goricah", + "type": "Municipality" + }, + { + "code": "SI-183", + "name": "Šempeter-Vrtojba", + "type": "Municipality" + }, + { + "code": "SI-184", + "name": "Tabor", + "type": "Municipality" + }, + { + "code": "SI-185", + "name": "Trnovska Vas", + "type": "Municipality" + }, + { + "code": "SI-186", + "name": "Trzin", + "type": "Municipality" + }, + { + "code": "SI-187", + "name": "Velika Polana", + "type": "Municipality" + }, + { + "code": "SI-188", + "name": "Veržej", + "type": "Municipality" + }, + { + "code": "SI-189", + "name": "Vransko", + "type": "Municipality" + }, + { + "code": "SI-190", + "name": "Žalec", + "type": "Municipality" + }, + { + "code": "SI-191", + "name": "Žetale", + "type": "Municipality" + }, + { + "code": "SI-192", + "name": "Žirovnica", + "type": "Municipality" + }, + { + "code": "SI-193", + "name": "Žužemberk", + "type": "Municipality" + }, + { + "code": "SI-194", + "name": "Šmartno pri Litiji", + "type": "Municipality" + }, + { + "code": "SI-195", + "name": "Apače", + "type": "Municipality" + }, + { + "code": "SI-196", + "name": "Cirkulane", + "type": "Municipality" + }, + { + "code": "SI-197", + "name": "Kostanjevica na Krki", + "type": "Municipality" + }, + { + "code": "SI-198", + "name": "Makole", + "type": "Municipality" + }, + { + "code": "SI-199", + "name": "Mokronog-Trebelno", + "type": "Municipality" + }, + { + "code": "SI-200", + "name": "Poljčane", + "type": "Municipality" + }, + { + "code": "SI-201", + "name": "Renče-Vogrsko", + "type": "Municipality" + }, + { + "code": "SI-202", + "name": "Središče ob Dravi", + "type": "Municipality" + }, + { + "code": "SI-203", + "name": "Straža", + "type": "Municipality" + }, + { + "code": "SI-204", + "name": "Sveta Trojica v Slovenskih goricah", + "type": "Municipality" + }, + { + "code": "SI-205", + "name": "Sveti Tomaž", + "type": "Municipality" + }, + { + "code": "SI-206", + "name": "Šmarješke Toplice", + "type": "Municipality" + }, + { + "code": "SI-207", + "name": "Gorje", + "type": "Municipality" + }, + { + "code": "SI-208", + "name": "Log-Dragomer", + "type": "Municipality" + }, + { + "code": "SI-209", + "name": "Rečica ob Savinji", + "type": "Municipality" + }, + { + "code": "SI-210", + "name": "Sveti Jurij v Slovenskih goricah", + "type": "Municipality" + }, + { + "code": "SI-211", + "name": "Šentrupert", + "type": "Municipality" + }, + { + "code": "SI-212", + "name": "Mirna", + "type": "Municipality" + }, + { + "code": "SI-213", + "name": "Ankaran", + "type": "Municipality" + }, + { + "code": "SK-BC", + "name": "Banskobystrický kraj", + "type": "Region" + }, + { + "code": "SK-BL", + "name": "Bratislavský kraj", + "type": "Region" + }, + { + "code": "SK-KI", + "name": "Košický kraj", + "type": "Region" + }, + { + "code": "SK-NI", + "name": "Nitriansky kraj", + "type": "Region" + }, + { + "code": "SK-PV", + "name": "Prešovský kraj", + "type": "Region" + }, + { + "code": "SK-TA", + "name": "Trnavský kraj", + "type": "Region" + }, + { + "code": "SK-TC", + "name": "Trenčiansky kraj", + "type": "Region" + }, + { + "code": "SK-ZI", + "name": "Žilinský kraj", + "type": "Region" + }, + { + "code": "SL-E", + "name": "Eastern", + "type": "Province" + }, + { + "code": "SL-N", + "name": "Northern", + "type": "Province" + }, + { + "code": "SL-NW", + "name": "North Western", + "type": "Province" + }, + { + "code": "SL-S", + "name": "Southern", + "type": "Province" + }, + { + "code": "SL-W", + "name": "Western Area (Freetown)", + "type": "Area" + }, + { + "code": "SM-01", + "name": "Acquaviva", + "type": "Municipality" + }, + { + "code": "SM-02", + "name": "Chiesanuova", + "type": "Municipality" + }, + { + "code": "SM-03", + "name": "Domagnano", + "type": "Municipality" + }, + { + "code": "SM-04", + "name": "Faetano", + "type": "Municipality" + }, + { + "code": "SM-05", + "name": "Fiorentino", + "type": "Municipality" + }, + { + "code": "SM-06", + "name": "Borgo Maggiore", + "type": "Municipality" + }, + { + "code": "SM-07", + "name": "Città di San Marino", + "type": "Municipality" + }, + { + "code": "SM-08", + "name": "Montegiardino", + "type": "Municipality" + }, + { + "code": "SM-09", + "name": "Serravalle", + "type": "Municipality" + }, + { + "code": "SN-DB", + "name": "Diourbel", + "type": "Region" + }, + { + "code": "SN-DK", + "name": "Dakar", + "type": "Region" + }, + { + "code": "SN-FK", + "name": "Fatick", + "type": "Region" + }, + { + "code": "SN-KA", + "name": "Kaffrine", + "type": "Region" + }, + { + "code": "SN-KD", + "name": "Kolda", + "type": "Region" + }, + { + "code": "SN-KE", + "name": "Kédougou", + "type": "Region" + }, + { + "code": "SN-KL", + "name": "Kaolack", + "type": "Region" + }, + { + "code": "SN-LG", + "name": "Louga", + "type": "Region" + }, + { + "code": "SN-MT", + "name": "Matam", + "type": "Region" + }, + { + "code": "SN-SE", + "name": "Sédhiou", + "type": "Region" + }, + { + "code": "SN-SL", + "name": "Saint-Louis", + "type": "Region" + }, + { + "code": "SN-TC", + "name": "Tambacounda", + "type": "Region" + }, + { + "code": "SN-TH", + "name": "Thiès", + "type": "Region" + }, + { + "code": "SN-ZG", + "name": "Ziguinchor", + "type": "Region" + }, + { + "code": "SO-AW", + "name": "Awdal", + "type": "Region" + }, + { + "code": "SO-BK", + "name": "Bakool", + "type": "Region" + }, + { + "code": "SO-BN", + "name": "Banaadir", + "type": "Region" + }, + { + "code": "SO-BR", + "name": "Bari", + "type": "Region" + }, + { + "code": "SO-BY", + "name": "Bay", + "type": "Region" + }, + { + "code": "SO-GA", + "name": "Galguduud", + "type": "Region" + }, + { + "code": "SO-GE", + "name": "Gedo", + "type": "Region" + }, + { + "code": "SO-HI", + "name": "Hiiraan", + "type": "Region" + }, + { + "code": "SO-JD", + "name": "Jubbada Dhexe", + "type": "Region" + }, + { + "code": "SO-JH", + "name": "Jubbada Hoose", + "type": "Region" + }, + { + "code": "SO-MU", + "name": "Mudug", + "type": "Region" + }, + { + "code": "SO-NU", + "name": "Nugaal", + "type": "Region" + }, + { + "code": "SO-SA", + "name": "Sanaag", + "type": "Region" + }, + { + "code": "SO-SD", + "name": "Shabeellaha Dhexe", + "type": "Region" + }, + { + "code": "SO-SH", + "name": "Shabeellaha Hoose", + "type": "Region" + }, + { + "code": "SO-SO", + "name": "Sool", + "type": "Region" + }, + { + "code": "SO-TO", + "name": "Togdheer", + "type": "Region" + }, + { + "code": "SO-WO", + "name": "Woqooyi Galbeed", + "type": "Region" + }, + { + "code": "SR-BR", + "name": "Brokopondo", + "type": "District" + }, + { + "code": "SR-CM", + "name": "Commewijne", + "type": "District" + }, + { + "code": "SR-CR", + "name": "Coronie", + "type": "District" + }, + { + "code": "SR-MA", + "name": "Marowijne", + "type": "District" + }, + { + "code": "SR-NI", + "name": "Nickerie", + "type": "District" + }, + { + "code": "SR-PM", + "name": "Paramaribo", + "type": "District" + }, + { + "code": "SR-PR", + "name": "Para", + "type": "District" + }, + { + "code": "SR-SA", + "name": "Saramacca", + "type": "District" + }, + { + "code": "SR-SI", + "name": "Sipaliwini", + "type": "District" + }, + { + "code": "SR-WA", + "name": "Wanica", + "type": "District" + }, + { + "code": "SS-BN", + "name": "Northern Bahr el Ghazal", + "type": "State" + }, + { + "code": "SS-BW", + "name": "Western Bahr el Ghazal", + "type": "State" + }, + { + "code": "SS-EC", + "name": "Central Equatoria", + "type": "State" + }, + { + "code": "SS-EE", + "name": "Eastern Equatoria", + "type": "State" + }, + { + "code": "SS-EW", + "name": "Western Equatoria", + "type": "State" + }, + { + "code": "SS-JG", + "name": "Jonglei", + "type": "State" + }, + { + "code": "SS-LK", + "name": "Lakes", + "type": "State" + }, + { + "code": "SS-NU", + "name": "Upper Nile", + "type": "State" + }, + { + "code": "SS-UY", + "name": "Unity", + "type": "State" + }, + { + "code": "SS-WR", + "name": "Warrap", + "type": "State" + }, + { + "code": "ST-01", + "name": "Água Grande", + "type": "District" + }, + { + "code": "ST-02", + "name": "Cantagalo", + "type": "District" + }, + { + "code": "ST-03", + "name": "Caué", + "type": "District" + }, + { + "code": "ST-04", + "name": "Lembá", + "type": "District" + }, + { + "code": "ST-05", + "name": "Lobata", + "type": "District" + }, + { + "code": "ST-06", + "name": "Mé-Zóchi", + "type": "District" + }, + { + "code": "ST-P", + "name": "Príncipe", + "type": "Autonomous region" + }, + { + "code": "SV-AH", + "name": "Ahuachapán", + "type": "Department" + }, + { + "code": "SV-CA", + "name": "Cabañas", + "type": "Department" + }, + { + "code": "SV-CH", + "name": "Chalatenango", + "type": "Department" + }, + { + "code": "SV-CU", + "name": "Cuscatlán", + "type": "Department" + }, + { + "code": "SV-LI", + "name": "La Libertad", + "type": "Department" + }, + { + "code": "SV-MO", + "name": "Morazán", + "type": "Department" + }, + { + "code": "SV-PA", + "name": "La Paz", + "type": "Department" + }, + { + "code": "SV-SA", + "name": "Santa Ana", + "type": "Department" + }, + { + "code": "SV-SM", + "name": "San Miguel", + "type": "Department" + }, + { + "code": "SV-SO", + "name": "Sonsonate", + "type": "Department" + }, + { + "code": "SV-SS", + "name": "San Salvador", + "type": "Department" + }, + { + "code": "SV-SV", + "name": "San Vicente", + "type": "Department" + }, + { + "code": "SV-UN", + "name": "La Unión", + "type": "Department" + }, + { + "code": "SV-US", + "name": "Usulután", + "type": "Department" + }, + { + "code": "SY-DI", + "name": "Dimashq", + "type": "Province" + }, + { + "code": "SY-DR", + "name": "Dar'ā", + "type": "Province" + }, + { + "code": "SY-DY", + "name": "Dayr az Zawr", + "type": "Province" + }, + { + "code": "SY-HA", + "name": "Al Ḩasakah", + "type": "Province" + }, + { + "code": "SY-HI", + "name": "Ḩimş", + "type": "Province" + }, + { + "code": "SY-HL", + "name": "Ḩalab", + "type": "Province" + }, + { + "code": "SY-HM", + "name": "Ḩamāh", + "type": "Province" + }, + { + "code": "SY-ID", + "name": "Idlib", + "type": "Province" + }, + { + "code": "SY-LA", + "name": "Al Lādhiqīyah", + "type": "Province" + }, + { + "code": "SY-QU", + "name": "Al Qunayţirah", + "type": "Province" + }, + { + "code": "SY-RA", + "name": "Ar Raqqah", + "type": "Province" + }, + { + "code": "SY-RD", + "name": "Rīf Dimashq", + "type": "Province" + }, + { + "code": "SY-SU", + "name": "As Suwaydā'", + "type": "Province" + }, + { + "code": "SY-TA", + "name": "Ţarţūs", + "type": "Province" + }, + { + "code": "SZ-HH", + "name": "Hhohho", + "type": "Region" + }, + { + "code": "SZ-LU", + "name": "Lubombo", + "type": "Region" + }, + { + "code": "SZ-MA", + "name": "Manzini", + "type": "Region" + }, + { + "code": "SZ-SH", + "name": "Shiselweni", + "type": "Region" + }, + { + "code": "TD-BA", + "name": "Batha", + "type": "Province" + }, + { + "code": "TD-BG", + "name": "Bahr el Ghazal", + "type": "Province" + }, + { + "code": "TD-BO", + "name": "Borkou", + "type": "Province" + }, + { + "code": "TD-CB", + "name": "Chari-Baguirmi", + "type": "Province" + }, + { + "code": "TD-EE", + "name": "Ennedi-Est", + "type": "Province" + }, + { + "code": "TD-EO", + "name": "Ennedi-Ouest", + "type": "Province" + }, + { + "code": "TD-GR", + "name": "Guéra", + "type": "Province" + }, + { + "code": "TD-HL", + "name": "Hadjer Lamis", + "type": "Province" + }, + { + "code": "TD-KA", + "name": "Kanem", + "type": "Province" + }, + { + "code": "TD-LC", + "name": "Lac", + "type": "Province" + }, + { + "code": "TD-LO", + "name": "Logone-Occidental", + "type": "Province" + }, + { + "code": "TD-LR", + "name": "Logone-Oriental", + "type": "Province" + }, + { + "code": "TD-MA", + "name": "Mandoul", + "type": "Province" + }, + { + "code": "TD-MC", + "name": "Moyen-Chari", + "type": "Province" + }, + { + "code": "TD-ME", + "name": "Mayo-Kebbi-Est", + "type": "Province" + }, + { + "code": "TD-MO", + "name": "Mayo-Kebbi-Ouest", + "type": "Province" + }, + { + "code": "TD-ND", + "name": "Ville de Ndjamena", + "type": "Province" + }, + { + "code": "TD-OD", + "name": "Ouaddaï", + "type": "Province" + }, + { + "code": "TD-SA", + "name": "Salamat", + "type": "Province" + }, + { + "code": "TD-SI", + "name": "Sila", + "type": "Province" + }, + { + "code": "TD-TA", + "name": "Tandjilé", + "type": "Province" + }, + { + "code": "TD-TI", + "name": "Tibesti", + "type": "Province" + }, + { + "code": "TD-WF", + "name": "Wadi Fira", + "type": "Province" + }, + { + "code": "TG-C", + "name": "Centrale", + "type": "Region" + }, + { + "code": "TG-K", + "name": "Kara", + "type": "Region" + }, + { + "code": "TG-M", + "name": "Maritime (Région)", + "type": "Region" + }, + { + "code": "TG-P", + "name": "Plateaux", + "type": "Region" + }, + { + "code": "TG-S", + "name": "Savanes", + "type": "Region" + }, + { + "code": "TH-10", + "name": "Krung Thep Maha Nakhon", + "type": "Metropolitan administration" + }, + { + "code": "TH-11", + "name": "Samut Prakan", + "type": "Province" + }, + { + "code": "TH-12", + "name": "Nonthaburi", + "type": "Province" + }, + { + "code": "TH-13", + "name": "Pathum Thani", + "type": "Province" + }, + { + "code": "TH-14", + "name": "Phra Nakhon Si Ayutthaya", + "type": "Province" + }, + { + "code": "TH-15", + "name": "Ang Thong", + "type": "Province" + }, + { + "code": "TH-16", + "name": "Lop Buri", + "type": "Province" + }, + { + "code": "TH-17", + "name": "Sing Buri", + "type": "Province" + }, + { + "code": "TH-18", + "name": "Chai Nat", + "type": "Province" + }, + { + "code": "TH-19", + "name": "Saraburi", + "type": "Province" + }, + { + "code": "TH-20", + "name": "Chon Buri", + "type": "Province" + }, + { + "code": "TH-21", + "name": "Rayong", + "type": "Province" + }, + { + "code": "TH-22", + "name": "Chanthaburi", + "type": "Province" + }, + { + "code": "TH-23", + "name": "Trat", + "type": "Province" + }, + { + "code": "TH-24", + "name": "Chachoengsao", + "type": "Province" + }, + { + "code": "TH-25", + "name": "Prachin Buri", + "type": "Province" + }, + { + "code": "TH-26", + "name": "Nakhon Nayok", + "type": "Province" + }, + { + "code": "TH-27", + "name": "Sa Kaeo", + "type": "Province" + }, + { + "code": "TH-30", + "name": "Nakhon Ratchasima", + "type": "Province" + }, + { + "code": "TH-31", + "name": "Buri Ram", + "type": "Province" + }, + { + "code": "TH-32", + "name": "Surin", + "type": "Province" + }, + { + "code": "TH-33", + "name": "Si Sa Ket", + "type": "Province" + }, + { + "code": "TH-34", + "name": "Ubon Ratchathani", + "type": "Province" + }, + { + "code": "TH-35", + "name": "Yasothon", + "type": "Province" + }, + { + "code": "TH-36", + "name": "Chaiyaphum", + "type": "Province" + }, + { + "code": "TH-37", + "name": "Amnat Charoen", + "type": "Province" + }, + { + "code": "TH-38", + "name": "Bueng Kan", + "type": "Province" + }, + { + "code": "TH-39", + "name": "Nong Bua Lam Phu", + "type": "Province" + }, + { + "code": "TH-40", + "name": "Khon Kaen", + "type": "Province" + }, + { + "code": "TH-41", + "name": "Udon Thani", + "type": "Province" + }, + { + "code": "TH-42", + "name": "Loei", + "type": "Province" + }, + { + "code": "TH-43", + "name": "Nong Khai", + "type": "Province" + }, + { + "code": "TH-44", + "name": "Maha Sarakham", + "type": "Province" + }, + { + "code": "TH-45", + "name": "Roi Et", + "type": "Province" + }, + { + "code": "TH-46", + "name": "Kalasin", + "type": "Province" + }, + { + "code": "TH-47", + "name": "Sakon Nakhon", + "type": "Province" + }, + { + "code": "TH-48", + "name": "Nakhon Phanom", + "type": "Province" + }, + { + "code": "TH-49", + "name": "Mukdahan", + "type": "Province" + }, + { + "code": "TH-50", + "name": "Chiang Mai", + "type": "Province" + }, + { + "code": "TH-51", + "name": "Lamphun", + "type": "Province" + }, + { + "code": "TH-52", + "name": "Lampang", + "type": "Province" + }, + { + "code": "TH-53", + "name": "Uttaradit", + "type": "Province" + }, + { + "code": "TH-54", + "name": "Phrae", + "type": "Province" + }, + { + "code": "TH-55", + "name": "Nan", + "type": "Province" + }, + { + "code": "TH-56", + "name": "Phayao", + "type": "Province" + }, + { + "code": "TH-57", + "name": "Chiang Rai", + "type": "Province" + }, + { + "code": "TH-58", + "name": "Mae Hong Son", + "type": "Province" + }, + { + "code": "TH-60", + "name": "Nakhon Sawan", + "type": "Province" + }, + { + "code": "TH-61", + "name": "Uthai Thani", + "type": "Province" + }, + { + "code": "TH-62", + "name": "Kamphaeng Phet", + "type": "Province" + }, + { + "code": "TH-63", + "name": "Tak", + "type": "Province" + }, + { + "code": "TH-64", + "name": "Sukhothai", + "type": "Province" + }, + { + "code": "TH-65", + "name": "Phitsanulok", + "type": "Province" + }, + { + "code": "TH-66", + "name": "Phichit", + "type": "Province" + }, + { + "code": "TH-67", + "name": "Phetchabun", + "type": "Province" + }, + { + "code": "TH-70", + "name": "Ratchaburi", + "type": "Province" + }, + { + "code": "TH-71", + "name": "Kanchanaburi", + "type": "Province" + }, + { + "code": "TH-72", + "name": "Suphan Buri", + "type": "Province" + }, + { + "code": "TH-73", + "name": "Nakhon Pathom", + "type": "Province" + }, + { + "code": "TH-74", + "name": "Samut Sakhon", + "type": "Province" + }, + { + "code": "TH-75", + "name": "Samut Songkhram", + "type": "Province" + }, + { + "code": "TH-76", + "name": "Phetchaburi", + "type": "Province" + }, + { + "code": "TH-77", + "name": "Prachuap Khiri Khan", + "type": "Province" + }, + { + "code": "TH-80", + "name": "Nakhon Si Thammarat", + "type": "Province" + }, + { + "code": "TH-81", + "name": "Krabi", + "type": "Province" + }, + { + "code": "TH-82", + "name": "Phangnga", + "type": "Province" + }, + { + "code": "TH-83", + "name": "Phuket", + "type": "Province" + }, + { + "code": "TH-84", + "name": "Surat Thani", + "type": "Province" + }, + { + "code": "TH-85", + "name": "Ranong", + "type": "Province" + }, + { + "code": "TH-86", + "name": "Chumphon", + "type": "Province" + }, + { + "code": "TH-90", + "name": "Songkhla", + "type": "Province" + }, + { + "code": "TH-91", + "name": "Satun", + "type": "Province" + }, + { + "code": "TH-92", + "name": "Trang", + "type": "Province" + }, + { + "code": "TH-93", + "name": "Phatthalung", + "type": "Province" + }, + { + "code": "TH-94", + "name": "Pattani", + "type": "Province" + }, + { + "code": "TH-95", + "name": "Yala", + "type": "Province" + }, + { + "code": "TH-96", + "name": "Narathiwat", + "type": "Province" + }, + { + "code": "TH-S", + "name": "Phatthaya", + "type": "Special administrative city" + }, + { + "code": "TJ-DU", + "name": "Dushanbe", + "type": "Capital territory" + }, + { + "code": "TJ-GB", + "name": "Kŭhistoni Badakhshon", + "type": "Autonomous region" + }, + { + "code": "TJ-KT", + "name": "Khatlon", + "type": "Region" + }, + { + "code": "TJ-RA", + "name": "nohiyahoi tobei jumhurí", + "type": "Districts under republic administration" + }, + { + "code": "TJ-SU", + "name": "Sughd", + "type": "Region" + }, + { + "code": "TL-AL", + "name": "Aileu", + "type": "Municipality" + }, + { + "code": "TL-AN", + "name": "Ainaro", + "type": "Municipality" + }, + { + "code": "TL-BA", + "name": "Baucau", + "type": "Municipality" + }, + { + "code": "TL-BO", + "name": "Bobonaro", + "type": "Municipality" + }, + { + "code": "TL-CO", + "name": "Cova Lima", + "type": "Municipality" + }, + { + "code": "TL-DI", + "name": "Díli", + "type": "Municipality" + }, + { + "code": "TL-ER", + "name": "Ermera", + "type": "Municipality" + }, + { + "code": "TL-LA", + "name": "Lautém", + "type": "Municipality" + }, + { + "code": "TL-LI", + "name": "Liquiça", + "type": "Municipality" + }, + { + "code": "TL-MF", + "name": "Manufahi", + "type": "Municipality" + }, + { + "code": "TL-MT", + "name": "Manatuto", + "type": "Municipality" + }, + { + "code": "TL-OE", + "name": "Oé-Cusse Ambeno", + "type": "Special administrative region" + }, + { + "code": "TL-VI", + "name": "Viqueque", + "type": "Municipality" + }, + { + "code": "TM-A", + "name": "Ahal", + "type": "Region" + }, + { + "code": "TM-B", + "name": "Balkan", + "type": "Region" + }, + { + "code": "TM-D", + "name": "Daşoguz", + "type": "Region" + }, + { + "code": "TM-L", + "name": "Lebap", + "type": "Region" + }, + { + "code": "TM-M", + "name": "Mary", + "type": "Region" + }, + { + "code": "TM-S", + "name": "Aşgabat", + "type": "City" + }, + { + "code": "TN-11", + "name": "Tunis", + "type": "Governorate" + }, + { + "code": "TN-12", + "name": "L'Ariana", + "type": "Governorate" + }, + { + "code": "TN-13", + "name": "Ben Arous", + "type": "Governorate" + }, + { + "code": "TN-14", + "name": "La Manouba", + "type": "Governorate" + }, + { + "code": "TN-21", + "name": "Nabeul", + "type": "Governorate" + }, + { + "code": "TN-22", + "name": "Zaghouan", + "type": "Governorate" + }, + { + "code": "TN-23", + "name": "Bizerte", + "type": "Governorate" + }, + { + "code": "TN-31", + "name": "Béja", + "type": "Governorate" + }, + { + "code": "TN-32", + "name": "Jendouba", + "type": "Governorate" + }, + { + "code": "TN-33", + "name": "Le Kef", + "type": "Governorate" + }, + { + "code": "TN-34", + "name": "Siliana", + "type": "Governorate" + }, + { + "code": "TN-41", + "name": "Kairouan", + "type": "Governorate" + }, + { + "code": "TN-42", + "name": "Kasserine", + "type": "Governorate" + }, + { + "code": "TN-43", + "name": "Sidi Bouzid", + "type": "Governorate" + }, + { + "code": "TN-51", + "name": "Sousse", + "type": "Governorate" + }, + { + "code": "TN-52", + "name": "Monastir", + "type": "Governorate" + }, + { + "code": "TN-53", + "name": "Mahdia", + "type": "Governorate" + }, + { + "code": "TN-61", + "name": "Sfax", + "type": "Governorate" + }, + { + "code": "TN-71", + "name": "Gafsa", + "type": "Governorate" + }, + { + "code": "TN-72", + "name": "Tozeur", + "type": "Governorate" + }, + { + "code": "TN-73", + "name": "Kébili", + "type": "Governorate" + }, + { + "code": "TN-81", + "name": "Gabès", + "type": "Governorate" + }, + { + "code": "TN-82", + "name": "Médenine", + "type": "Governorate" + }, + { + "code": "TN-83", + "name": "Tataouine", + "type": "Governorate" + }, + { + "code": "TO-01", + "name": "'Eua", + "type": "Division" + }, + { + "code": "TO-02", + "name": "Ha'apai", + "type": "Division" + }, + { + "code": "TO-03", + "name": "Niuas", + "type": "Division" + }, + { + "code": "TO-04", + "name": "Tongatapu", + "type": "Division" + }, + { + "code": "TO-05", + "name": "Vava'u", + "type": "Division" + }, + { + "code": "TR-01", + "name": "Adana", + "type": "Province" + }, + { + "code": "TR-02", + "name": "Adıyaman", + "type": "Province" + }, + { + "code": "TR-03", + "name": "Afyonkarahisar", + "type": "Province" + }, + { + "code": "TR-04", + "name": "Ağrı", + "type": "Province" + }, + { + "code": "TR-05", + "name": "Amasya", + "type": "Province" + }, + { + "code": "TR-06", + "name": "Ankara", + "type": "Province" + }, + { + "code": "TR-07", + "name": "Antalya", + "type": "Province" + }, + { + "code": "TR-08", + "name": "Artvin", + "type": "Province" + }, + { + "code": "TR-09", + "name": "Aydın", + "type": "Province" + }, + { + "code": "TR-10", + "name": "Balıkesir", + "type": "Province" + }, + { + "code": "TR-11", + "name": "Bilecik", + "type": "Province" + }, + { + "code": "TR-12", + "name": "Bingöl", + "type": "Province" + }, + { + "code": "TR-13", + "name": "Bitlis", + "type": "Province" + }, + { + "code": "TR-14", + "name": "Bolu", + "type": "Province" + }, + { + "code": "TR-15", + "name": "Burdur", + "type": "Province" + }, + { + "code": "TR-16", + "name": "Bursa", + "type": "Province" + }, + { + "code": "TR-17", + "name": "Çanakkale", + "type": "Province" + }, + { + "code": "TR-18", + "name": "Çankırı", + "type": "Province" + }, + { + "code": "TR-19", + "name": "Çorum", + "type": "Province" + }, + { + "code": "TR-20", + "name": "Denizli", + "type": "Province" + }, + { + "code": "TR-21", + "name": "Diyarbakır", + "type": "Province" + }, + { + "code": "TR-22", + "name": "Edirne", + "type": "Province" + }, + { + "code": "TR-23", + "name": "Elazığ", + "type": "Province" + }, + { + "code": "TR-24", + "name": "Erzincan", + "type": "Province" + }, + { + "code": "TR-25", + "name": "Erzurum", + "type": "Province" + }, + { + "code": "TR-26", + "name": "Eskişehir", + "type": "Province" + }, + { + "code": "TR-27", + "name": "Gaziantep", + "type": "Province" + }, + { + "code": "TR-28", + "name": "Giresun", + "type": "Province" + }, + { + "code": "TR-29", + "name": "Gümüşhane", + "type": "Province" + }, + { + "code": "TR-30", + "name": "Hakkâri", + "type": "Province" + }, + { + "code": "TR-31", + "name": "Hatay", + "type": "Province" + }, + { + "code": "TR-32", + "name": "Isparta", + "type": "Province" + }, + { + "code": "TR-33", + "name": "Mersin", + "type": "Province" + }, + { + "code": "TR-34", + "name": "İstanbul", + "type": "Province" + }, + { + "code": "TR-35", + "name": "İzmir", + "type": "Province" + }, + { + "code": "TR-36", + "name": "Kars", + "type": "Province" + }, + { + "code": "TR-37", + "name": "Kastamonu", + "type": "Province" + }, + { + "code": "TR-38", + "name": "Kayseri", + "type": "Province" + }, + { + "code": "TR-39", + "name": "Kırklareli", + "type": "Province" + }, + { + "code": "TR-40", + "name": "Kırşehir", + "type": "Province" + }, + { + "code": "TR-41", + "name": "Kocaeli", + "type": "Province" + }, + { + "code": "TR-42", + "name": "Konya", + "type": "Province" + }, + { + "code": "TR-43", + "name": "Kütahya", + "type": "Province" + }, + { + "code": "TR-44", + "name": "Malatya", + "type": "Province" + }, + { + "code": "TR-45", + "name": "Manisa", + "type": "Province" + }, + { + "code": "TR-46", + "name": "Kahramanmaraş", + "type": "Province" + }, + { + "code": "TR-47", + "name": "Mardin", + "type": "Province" + }, + { + "code": "TR-48", + "name": "Muğla", + "type": "Province" + }, + { + "code": "TR-49", + "name": "Muş", + "type": "Province" + }, + { + "code": "TR-50", + "name": "Nevşehir", + "type": "Province" + }, + { + "code": "TR-51", + "name": "Niğde", + "type": "Province" + }, + { + "code": "TR-52", + "name": "Ordu", + "type": "Province" + }, + { + "code": "TR-53", + "name": "Rize", + "type": "Province" + }, + { + "code": "TR-54", + "name": "Sakarya", + "type": "Province" + }, + { + "code": "TR-55", + "name": "Samsun", + "type": "Province" + }, + { + "code": "TR-56", + "name": "Siirt", + "type": "Province" + }, + { + "code": "TR-57", + "name": "Sinop", + "type": "Province" + }, + { + "code": "TR-58", + "name": "Sivas", + "type": "Province" + }, + { + "code": "TR-59", + "name": "Tekirdağ", + "type": "Province" + }, + { + "code": "TR-60", + "name": "Tokat", + "type": "Province" + }, + { + "code": "TR-61", + "name": "Trabzon", + "type": "Province" + }, + { + "code": "TR-62", + "name": "Tunceli", + "type": "Province" + }, + { + "code": "TR-63", + "name": "Şanlıurfa", + "type": "Province" + }, + { + "code": "TR-64", + "name": "Uşak", + "type": "Province" + }, + { + "code": "TR-65", + "name": "Van", + "type": "Province" + }, + { + "code": "TR-66", + "name": "Yozgat", + "type": "Province" + }, + { + "code": "TR-67", + "name": "Zonguldak", + "type": "Province" + }, + { + "code": "TR-68", + "name": "Aksaray", + "type": "Province" + }, + { + "code": "TR-69", + "name": "Bayburt", + "type": "Province" + }, + { + "code": "TR-70", + "name": "Karaman", + "type": "Province" + }, + { + "code": "TR-71", + "name": "Kırıkkale", + "type": "Province" + }, + { + "code": "TR-72", + "name": "Batman", + "type": "Province" + }, + { + "code": "TR-73", + "name": "Şırnak", + "type": "Province" + }, + { + "code": "TR-74", + "name": "Bartın", + "type": "Province" + }, + { + "code": "TR-75", + "name": "Ardahan", + "type": "Province" + }, + { + "code": "TR-76", + "name": "Iğdır", + "type": "Province" + }, + { + "code": "TR-77", + "name": "Yalova", + "type": "Province" + }, + { + "code": "TR-78", + "name": "Karabük", + "type": "Province" + }, + { + "code": "TR-79", + "name": "Kilis", + "type": "Province" + }, + { + "code": "TR-80", + "name": "Osmaniye", + "type": "Province" + }, + { + "code": "TR-81", + "name": "Düzce", + "type": "Province" + }, + { + "code": "TT-ARI", + "name": "Arima", + "type": "Borough" + }, + { + "code": "TT-CHA", + "name": "Chaguanas", + "type": "Borough" + }, + { + "code": "TT-CTT", + "name": "Couva-Tabaquite-Talparo", + "type": "Region" + }, + { + "code": "TT-DMN", + "name": "Diego Martin", + "type": "Region" + }, + { + "code": "TT-MRC", + "name": "Mayaro-Rio Claro", + "type": "Region" + }, + { + "code": "TT-PED", + "name": "Penal-Debe", + "type": "Region" + }, + { + "code": "TT-POS", + "name": "Port of Spain", + "type": "City" + }, + { + "code": "TT-PRT", + "name": "Princes Town", + "type": "Region" + }, + { + "code": "TT-PTF", + "name": "Point Fortin", + "type": "Borough" + }, + { + "code": "TT-SFO", + "name": "San Fernando", + "type": "City" + }, + { + "code": "TT-SGE", + "name": "Sangre Grande", + "type": "Region" + }, + { + "code": "TT-SIP", + "name": "Siparia", + "type": "Region" + }, + { + "code": "TT-SJL", + "name": "San Juan-Laventille", + "type": "Region" + }, + { + "code": "TT-TOB", + "name": "Tobago", + "type": "Ward" + }, + { + "code": "TT-TUP", + "name": "Tunapuna-Piarco", + "type": "Region" + }, + { + "code": "TV-FUN", + "name": "Funafuti", + "type": "Town council" + }, + { + "code": "TV-NIT", + "name": "Niutao", + "type": "Island council" + }, + { + "code": "TV-NKF", + "name": "Nukufetau", + "type": "Island council" + }, + { + "code": "TV-NKL", + "name": "Nukulaelae", + "type": "Island council" + }, + { + "code": "TV-NMA", + "name": "Nanumea", + "type": "Island council" + }, + { + "code": "TV-NMG", + "name": "Nanumaga", + "type": "Island council" + }, + { + "code": "TV-NUI", + "name": "Nui", + "type": "Island council" + }, + { + "code": "TV-VAI", + "name": "Vaitupu", + "type": "Island council" + }, + { + "code": "TW-CHA", + "name": "Changhua", + "type": "County" + }, + { + "code": "TW-CYI", + "name": "Chiayi", + "type": "City" + }, + { + "code": "TW-CYQ", + "name": "Chiayi", + "type": "County" + }, + { + "code": "TW-HSQ", + "name": "Hsinchu", + "type": "County" + }, + { + "code": "TW-HSZ", + "name": "Hsinchu", + "type": "City" + }, + { + "code": "TW-HUA", + "name": "Hualien", + "type": "County" + }, + { + "code": "TW-ILA", + "name": "Yilan", + "type": "County" + }, + { + "code": "TW-KEE", + "name": "Keelung", + "type": "City" + }, + { + "code": "TW-KHH", + "name": "Kaohsiung", + "type": "Special municipality" + }, + { + "code": "TW-KIN", + "name": "Kinmen", + "type": "County" + }, + { + "code": "TW-LIE", + "name": "Lienchiang", + "type": "County" + }, + { + "code": "TW-MIA", + "name": "Miaoli", + "type": "County" + }, + { + "code": "TW-NAN", + "name": "Nantou", + "type": "County" + }, + { + "code": "TW-NWT", + "name": "New Taipei", + "type": "Special municipality" + }, + { + "code": "TW-PEN", + "name": "Penghu", + "type": "County" + }, + { + "code": "TW-PIF", + "name": "Pingtung", + "type": "County" + }, + { + "code": "TW-TAO", + "name": "Taoyuan", + "type": "Special municipality" + }, + { + "code": "TW-TNN", + "name": "Tainan", + "type": "Special municipality" + }, + { + "code": "TW-TPE", + "name": "Taipei", + "type": "Special municipality" + }, + { + "code": "TW-TTT", + "name": "Taitung", + "type": "County" + }, + { + "code": "TW-TXG", + "name": "Taichung", + "type": "Special municipality" + }, + { + "code": "TW-YUN", + "name": "Yunlin", + "type": "County" + }, + { + "code": "TZ-01", + "name": "Arusha", + "type": "Region" + }, + { + "code": "TZ-02", + "name": "Dar es Salaam", + "type": "Region" + }, + { + "code": "TZ-03", + "name": "Dodoma", + "type": "Region" + }, + { + "code": "TZ-04", + "name": "Iringa", + "type": "Region" + }, + { + "code": "TZ-05", + "name": "Kagera", + "type": "Region" + }, + { + "code": "TZ-06", + "name": "Pemba North", + "type": "Region" + }, + { + "code": "TZ-07", + "name": "Zanzibar North", + "type": "Region" + }, + { + "code": "TZ-08", + "name": "Kigoma", + "type": "Region" + }, + { + "code": "TZ-09", + "name": "Kilimanjaro", + "type": "Region" + }, + { + "code": "TZ-10", + "name": "Pemba South", + "type": "Region" + }, + { + "code": "TZ-11", + "name": "Zanzibar South", + "type": "Region" + }, + { + "code": "TZ-12", + "name": "Lindi", + "type": "Region" + }, + { + "code": "TZ-13", + "name": "Mara", + "type": "Region" + }, + { + "code": "TZ-14", + "name": "Mbeya", + "type": "Region" + }, + { + "code": "TZ-15", + "name": "Zanzibar West", + "type": "Region" + }, + { + "code": "TZ-16", + "name": "Morogoro", + "type": "Region" + }, + { + "code": "TZ-17", + "name": "Mtwara", + "type": "Region" + }, + { + "code": "TZ-18", + "name": "Mwanza", + "type": "Region" + }, + { + "code": "TZ-19", + "name": "Coast", + "type": "Region" + }, + { + "code": "TZ-20", + "name": "Rukwa", + "type": "Region" + }, + { + "code": "TZ-21", + "name": "Ruvuma", + "type": "Region" + }, + { + "code": "TZ-22", + "name": "Shinyanga", + "type": "Region" + }, + { + "code": "TZ-23", + "name": "Singida", + "type": "Region" + }, + { + "code": "TZ-24", + "name": "Tabora", + "type": "Region" + }, + { + "code": "TZ-25", + "name": "Tanga", + "type": "Region" + }, + { + "code": "TZ-26", + "name": "Manyara", + "type": "Region" + }, + { + "code": "TZ-27", + "name": "Geita", + "type": "Region" + }, + { + "code": "TZ-28", + "name": "Katavi", + "type": "Region" + }, + { + "code": "TZ-29", + "name": "Njombe", + "type": "Region" + }, + { + "code": "TZ-30", + "name": "Simiyu", + "type": "Region" + }, + { + "code": "TZ-31", + "name": "Songwe", + "type": "Region" + }, + { + "code": "UA-05", + "name": "Vinnytska oblast", + "type": "Region" + }, + { + "code": "UA-07", + "name": "Volynska oblast", + "type": "Region" + }, + { + "code": "UA-09", + "name": "Luhanska oblast", + "type": "Region" + }, + { + "code": "UA-12", + "name": "Dnipropetrovska oblast", + "type": "Region" + }, + { + "code": "UA-14", + "name": "Donetska oblast", + "type": "Region" + }, + { + "code": "UA-18", + "name": "Zhytomyrska oblast", + "type": "Region" + }, + { + "code": "UA-21", + "name": "Zakarpatska oblast", + "type": "Region" + }, + { + "code": "UA-23", + "name": "Zaporizka oblast", + "type": "Region" + }, + { + "code": "UA-26", + "name": "Ivano-Frankivska oblast", + "type": "Region" + }, + { + "code": "UA-30", + "name": "Kyiv", + "type": "City" + }, + { + "code": "UA-32", + "name": "Kyivska oblast", + "type": "Region" + }, + { + "code": "UA-35", + "name": "Kirovohradska oblast", + "type": "Region" + }, + { + "code": "UA-40", + "name": "Sevastopol", + "type": "City" + }, + { + "code": "UA-43", + "name": "Avtonomna Respublika Krym", + "type": "Republic" + }, + { + "code": "UA-46", + "name": "Lvivska oblast", + "type": "Region" + }, + { + "code": "UA-48", + "name": "Mykolaivska oblast", + "type": "Region" + }, + { + "code": "UA-51", + "name": "Odeska oblast", + "type": "Region" + }, + { + "code": "UA-53", + "name": "Poltavska oblast", + "type": "Region" + }, + { + "code": "UA-56", + "name": "Rivnenska oblast", + "type": "Region" + }, + { + "code": "UA-59", + "name": "Sumska oblast", + "type": "Region" + }, + { + "code": "UA-61", + "name": "Ternopilska oblast", + "type": "Region" + }, + { + "code": "UA-63", + "name": "Kharkivska oblast", + "type": "Region" + }, + { + "code": "UA-65", + "name": "Khersonska oblast", + "type": "Region" + }, + { + "code": "UA-68", + "name": "Khmelnytska oblast", + "type": "Region" + }, + { + "code": "UA-71", + "name": "Cherkaska oblast", + "type": "Region" + }, + { + "code": "UA-74", + "name": "Chernihivska oblast", + "type": "Region" + }, + { + "code": "UA-77", + "name": "Chernivetska oblast", + "type": "Region" + }, + { + "code": "UG-101", + "name": "Kalangala", + "parent": "UG-C", + "type": "District" + }, + { + "code": "UG-102", + "name": "Kampala", + "parent": "UG-C", + "type": "City" + }, + { + "code": "UG-103", + "name": "Kiboga", + "parent": "UG-C", + "type": "District" + }, + { + "code": "UG-104", + "name": "Luwero", + "parent": "UG-C", + "type": "District" + }, + { + "code": "UG-105", + "name": "Masaka", + "parent": "UG-C", + "type": "District" + }, + { + "code": "UG-106", + "name": "Mpigi", + "parent": "UG-C", + "type": "District" + }, + { + "code": "UG-107", + "name": "Mubende", + "parent": "UG-C", + "type": "District" + }, + { + "code": "UG-108", + "name": "Mukono", + "parent": "UG-C", + "type": "District" + }, + { + "code": "UG-109", + "name": "Nakasongola", + "parent": "UG-C", + "type": "District" + }, + { + "code": "UG-110", + "name": "Rakai", + "parent": "UG-C", + "type": "District" + }, + { + "code": "UG-111", + "name": "Sembabule", + "parent": "UG-C", + "type": "District" + }, + { + "code": "UG-112", + "name": "Kayunga", + "parent": "UG-C", + "type": "District" + }, + { + "code": "UG-113", + "name": "Wakiso", + "parent": "UG-C", + "type": "District" + }, + { + "code": "UG-114", + "name": "Lyantonde", + "parent": "UG-C", + "type": "District" + }, + { + "code": "UG-115", + "name": "Mityana", + "parent": "UG-C", + "type": "District" + }, + { + "code": "UG-116", + "name": "Nakaseke", + "parent": "UG-C", + "type": "District" + }, + { + "code": "UG-117", + "name": "Buikwe", + "parent": "UG-C", + "type": "District" + }, + { + "code": "UG-118", + "name": "Bukomansibi", + "parent": "UG-C", + "type": "District" + }, + { + "code": "UG-119", + "name": "Butambala", + "parent": "UG-C", + "type": "District" + }, + { + "code": "UG-120", + "name": "Buvuma", + "parent": "UG-C", + "type": "District" + }, + { + "code": "UG-121", + "name": "Gomba", + "parent": "UG-C", + "type": "District" + }, + { + "code": "UG-122", + "name": "Kalungu", + "parent": "UG-C", + "type": "District" + }, + { + "code": "UG-123", + "name": "Kyankwanzi", + "parent": "UG-C", + "type": "District" + }, + { + "code": "UG-124", + "name": "Lwengo", + "parent": "UG-C", + "type": "District" + }, + { + "code": "UG-125", + "name": "Kyotera", + "parent": "UG-C", + "type": "District" + }, + { + "code": "UG-126", + "name": "Kasanda", + "parent": "UG-C", + "type": "District" + }, + { + "code": "UG-201", + "name": "Bugiri", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-202", + "name": "Busia", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-203", + "name": "Iganga", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-204", + "name": "Jinja", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-205", + "name": "Kamuli", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-206", + "name": "Kapchorwa", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-207", + "name": "Katakwi", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-208", + "name": "Kumi", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-209", + "name": "Mbale", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-210", + "name": "Pallisa", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-211", + "name": "Soroti", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-212", + "name": "Tororo", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-213", + "name": "Kaberamaido", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-214", + "name": "Mayuge", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-215", + "name": "Sironko", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-216", + "name": "Amuria", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-217", + "name": "Budaka", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-218", + "name": "Bududa", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-219", + "name": "Bukedea", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-220", + "name": "Bukwo", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-221", + "name": "Butaleja", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-222", + "name": "Kaliro", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-223", + "name": "Manafwa", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-224", + "name": "Namutumba", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-225", + "name": "Bulambuli", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-226", + "name": "Buyende", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-227", + "name": "Kibuku", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-228", + "name": "Kween", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-229", + "name": "Luuka", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-230", + "name": "Namayingo", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-231", + "name": "Ngora", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-232", + "name": "Serere", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-233", + "name": "Butebo", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-234", + "name": "Namisindwa", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-235", + "name": "Bugweri", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-236", + "name": "Kapelebyong", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-237", + "name": "Kalaki", + "parent": "UG-E", + "type": "District" + }, + { + "code": "UG-301", + "name": "Adjumani", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-302", + "name": "Apac", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-303", + "name": "Arua", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-304", + "name": "Gulu", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-305", + "name": "Kitgum", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-306", + "name": "Kotido", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-307", + "name": "Lira", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-308", + "name": "Moroto", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-309", + "name": "Moyo", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-310", + "name": "Nebbi", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-311", + "name": "Nakapiripirit", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-312", + "name": "Pader", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-313", + "name": "Yumbe", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-314", + "name": "Abim", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-315", + "name": "Amolatar", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-316", + "name": "Amuru", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-317", + "name": "Dokolo", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-318", + "name": "Kaabong", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-319", + "name": "Koboko", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-320", + "name": "Maracha", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-321", + "name": "Oyam", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-322", + "name": "Agago", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-323", + "name": "Alebtong", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-324", + "name": "Amudat", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-325", + "name": "Kole", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-326", + "name": "Lamwo", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-327", + "name": "Napak", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-328", + "name": "Nwoya", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-329", + "name": "Otuke", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-330", + "name": "Zombo", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-331", + "name": "Omoro", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-332", + "name": "Pakwach", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-333", + "name": "Kwania", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-334", + "name": "Nabilatuk", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-335", + "name": "Karenga", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-336", + "name": "Madi-Okollo", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-337", + "name": "Obongi", + "parent": "UG-N", + "type": "District" + }, + { + "code": "UG-401", + "name": "Bundibugyo", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-402", + "name": "Bushenyi", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-403", + "name": "Hoima", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-404", + "name": "Kabale", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-405", + "name": "Kabarole", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-406", + "name": "Kasese", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-407", + "name": "Kibaale", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-408", + "name": "Kisoro", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-409", + "name": "Masindi", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-410", + "name": "Mbarara", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-411", + "name": "Ntungamo", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-412", + "name": "Rukungiri", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-413", + "name": "Kamwenge", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-414", + "name": "Kanungu", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-415", + "name": "Kyenjojo", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-416", + "name": "Buliisa", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-417", + "name": "Ibanda", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-418", + "name": "Isingiro", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-419", + "name": "Kiruhura", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-420", + "name": "Buhweju", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-421", + "name": "Kiryandongo", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-422", + "name": "Kyegegwa", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-423", + "name": "Mitooma", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-424", + "name": "Ntoroko", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-425", + "name": "Rubirizi", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-426", + "name": "Sheema", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-427", + "name": "Kagadi", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-428", + "name": "Kakumiro", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-429", + "name": "Rubanda", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-430", + "name": "Bunyangabu", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-431", + "name": "Rukiga", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-432", + "name": "Kikuube", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-433", + "name": "Kazo", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-434", + "name": "Kitagwenda", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-435", + "name": "Rwampara", + "parent": "UG-W", + "type": "District" + }, + { + "code": "UG-C", + "name": "Central", + "type": "Geographical region" + }, + { + "code": "UG-E", + "name": "Eastern", + "type": "Geographical region" + }, + { + "code": "UG-N", + "name": "Northern", + "type": "Geographical region" + }, + { + "code": "UG-W", + "name": "Western", + "type": "Geographical region" + }, + { + "code": "UM-67", + "name": "Johnston Atoll", + "type": "Islands, groups of islands" + }, + { + "code": "UM-71", + "name": "Midway Islands", + "type": "Islands, groups of islands" + }, + { + "code": "UM-76", + "name": "Navassa Island", + "type": "Islands, groups of islands" + }, + { + "code": "UM-79", + "name": "Wake Island", + "type": "Islands, groups of islands" + }, + { + "code": "UM-81", + "name": "Baker Island", + "type": "Islands, groups of islands" + }, + { + "code": "UM-84", + "name": "Howland Island", + "type": "Islands, groups of islands" + }, + { + "code": "UM-86", + "name": "Jarvis Island", + "type": "Islands, groups of islands" + }, + { + "code": "UM-89", + "name": "Kingman Reef", + "type": "Islands, groups of islands" + }, + { + "code": "UM-95", + "name": "Palmyra Atoll", + "type": "Islands, groups of islands" + }, + { + "code": "US-AK", + "name": "Alaska", + "type": "State" + }, + { + "code": "US-AL", + "name": "Alabama", + "type": "State" + }, + { + "code": "US-AR", + "name": "Arkansas", + "type": "State" + }, + { + "code": "US-AS", + "name": "American Samoa", + "type": "Outlying area" + }, + { + "code": "US-AZ", + "name": "Arizona", + "type": "State" + }, + { + "code": "US-CA", + "name": "California", + "type": "State" + }, + { + "code": "US-CO", + "name": "Colorado", + "type": "State" + }, + { + "code": "US-CT", + "name": "Connecticut", + "type": "State" + }, + { + "code": "US-DC", + "name": "District of Columbia", + "type": "District" + }, + { + "code": "US-DE", + "name": "Delaware", + "type": "State" + }, + { + "code": "US-FL", + "name": "Florida", + "type": "State" + }, + { + "code": "US-GA", + "name": "Georgia", + "type": "State" + }, + { + "code": "US-GU", + "name": "Guam", + "type": "Outlying area" + }, + { + "code": "US-HI", + "name": "Hawaii", + "type": "State" + }, + { + "code": "US-IA", + "name": "Iowa", + "type": "State" + }, + { + "code": "US-ID", + "name": "Idaho", + "type": "State" + }, + { + "code": "US-IL", + "name": "Illinois", + "type": "State" + }, + { + "code": "US-IN", + "name": "Indiana", + "type": "State" + }, + { + "code": "US-KS", + "name": "Kansas", + "type": "State" + }, + { + "code": "US-KY", + "name": "Kentucky", + "type": "State" + }, + { + "code": "US-LA", + "name": "Louisiana", + "type": "State" + }, + { + "code": "US-MA", + "name": "Massachusetts", + "type": "State" + }, + { + "code": "US-MD", + "name": "Maryland", + "type": "State" + }, + { + "code": "US-ME", + "name": "Maine", + "type": "State" + }, + { + "code": "US-MI", + "name": "Michigan", + "type": "State" + }, + { + "code": "US-MN", + "name": "Minnesota", + "type": "State" + }, + { + "code": "US-MO", + "name": "Missouri", + "type": "State" + }, + { + "code": "US-MP", + "name": "Northern Mariana Islands", + "type": "Outlying area" + }, + { + "code": "US-MS", + "name": "Mississippi", + "type": "State" + }, + { + "code": "US-MT", + "name": "Montana", + "type": "State" + }, + { + "code": "US-NC", + "name": "North Carolina", + "type": "State" + }, + { + "code": "US-ND", + "name": "North Dakota", + "type": "State" + }, + { + "code": "US-NE", + "name": "Nebraska", + "type": "State" + }, + { + "code": "US-NH", + "name": "New Hampshire", + "type": "State" + }, + { + "code": "US-NJ", + "name": "New Jersey", + "type": "State" + }, + { + "code": "US-NM", + "name": "New Mexico", + "type": "State" + }, + { + "code": "US-NV", + "name": "Nevada", + "type": "State" + }, + { + "code": "US-NY", + "name": "New York", + "type": "State" + }, + { + "code": "US-OH", + "name": "Ohio", + "type": "State" + }, + { + "code": "US-OK", + "name": "Oklahoma", + "type": "State" + }, + { + "code": "US-OR", + "name": "Oregon", + "type": "State" + }, + { + "code": "US-PA", + "name": "Pennsylvania", + "type": "State" + }, + { + "code": "US-PR", + "name": "Puerto Rico", + "type": "Outlying area" + }, + { + "code": "US-RI", + "name": "Rhode Island", + "type": "State" + }, + { + "code": "US-SC", + "name": "South Carolina", + "type": "State" + }, + { + "code": "US-SD", + "name": "South Dakota", + "type": "State" + }, + { + "code": "US-TN", + "name": "Tennessee", + "type": "State" + }, + { + "code": "US-TX", + "name": "Texas", + "type": "State" + }, + { + "code": "US-UM", + "name": "United States Minor Outlying Islands", + "type": "Outlying area" + }, + { + "code": "US-UT", + "name": "Utah", + "type": "State" + }, + { + "code": "US-VA", + "name": "Virginia", + "type": "State" + }, + { + "code": "US-VI", + "name": "Virgin Islands, U.S.", + "type": "Outlying area" + }, + { + "code": "US-VT", + "name": "Vermont", + "type": "State" + }, + { + "code": "US-WA", + "name": "Washington", + "type": "State" + }, + { + "code": "US-WI", + "name": "Wisconsin", + "type": "State" + }, + { + "code": "US-WV", + "name": "West Virginia", + "type": "State" + }, + { + "code": "US-WY", + "name": "Wyoming", + "type": "State" + }, + { + "code": "UY-AR", + "name": "Artigas", + "type": "Department" + }, + { + "code": "UY-CA", + "name": "Canelones", + "type": "Department" + }, + { + "code": "UY-CL", + "name": "Cerro Largo", + "type": "Department" + }, + { + "code": "UY-CO", + "name": "Colonia", + "type": "Department" + }, + { + "code": "UY-DU", + "name": "Durazno", + "type": "Department" + }, + { + "code": "UY-FD", + "name": "Florida", + "type": "Department" + }, + { + "code": "UY-FS", + "name": "Flores", + "type": "Department" + }, + { + "code": "UY-LA", + "name": "Lavalleja", + "type": "Department" + }, + { + "code": "UY-MA", + "name": "Maldonado", + "type": "Department" + }, + { + "code": "UY-MO", + "name": "Montevideo", + "type": "Department" + }, + { + "code": "UY-PA", + "name": "Paysandú", + "type": "Department" + }, + { + "code": "UY-RN", + "name": "Río Negro", + "type": "Department" + }, + { + "code": "UY-RO", + "name": "Rocha", + "type": "Department" + }, + { + "code": "UY-RV", + "name": "Rivera", + "type": "Department" + }, + { + "code": "UY-SA", + "name": "Salto", + "type": "Department" + }, + { + "code": "UY-SJ", + "name": "San José", + "type": "Department" + }, + { + "code": "UY-SO", + "name": "Soriano", + "type": "Department" + }, + { + "code": "UY-TA", + "name": "Tacuarembó", + "type": "Department" + }, + { + "code": "UY-TT", + "name": "Treinta y Tres", + "type": "Department" + }, + { + "code": "UZ-AN", + "name": "Andijon", + "type": "Region" + }, + { + "code": "UZ-BU", + "name": "Buxoro", + "type": "Region" + }, + { + "code": "UZ-FA", + "name": "Farg‘ona", + "type": "Region" + }, + { + "code": "UZ-JI", + "name": "Jizzax", + "type": "Region" + }, + { + "code": "UZ-NG", + "name": "Namangan", + "type": "Region" + }, + { + "code": "UZ-NW", + "name": "Navoiy", + "type": "Region" + }, + { + "code": "UZ-QA", + "name": "Qashqadaryo", + "type": "Region" + }, + { + "code": "UZ-QR", + "name": "Qoraqalpog‘iston Respublikasi", + "type": "Republic" + }, + { + "code": "UZ-SA", + "name": "Samarqand", + "type": "Region" + }, + { + "code": "UZ-SI", + "name": "Sirdaryo", + "type": "Region" + }, + { + "code": "UZ-SU", + "name": "Surxondaryo", + "type": "Region" + }, + { + "code": "UZ-TK", + "name": "Toshkent", + "type": "City" + }, + { + "code": "UZ-TO", + "name": "Toshkent", + "type": "Region" + }, + { + "code": "UZ-XO", + "name": "Xorazm", + "type": "Region" + }, + { + "code": "VC-01", + "name": "Charlotte", + "type": "Parish" + }, + { + "code": "VC-02", + "name": "Saint Andrew", + "type": "Parish" + }, + { + "code": "VC-03", + "name": "Saint David", + "type": "Parish" + }, + { + "code": "VC-04", + "name": "Saint George", + "type": "Parish" + }, + { + "code": "VC-05", + "name": "Saint Patrick", + "type": "Parish" + }, + { + "code": "VC-06", + "name": "Grenadines", + "type": "Parish" + }, + { + "code": "VE-A", + "name": "Distrito Capital", + "type": "Capital district" + }, + { + "code": "VE-B", + "name": "Anzoátegui", + "type": "State" + }, + { + "code": "VE-C", + "name": "Apure", + "type": "State" + }, + { + "code": "VE-D", + "name": "Aragua", + "type": "State" + }, + { + "code": "VE-E", + "name": "Barinas", + "type": "State" + }, + { + "code": "VE-F", + "name": "Bolívar", + "type": "State" + }, + { + "code": "VE-G", + "name": "Carabobo", + "type": "State" + }, + { + "code": "VE-H", + "name": "Cojedes", + "type": "State" + }, + { + "code": "VE-I", + "name": "Falcón", + "type": "State" + }, + { + "code": "VE-J", + "name": "Guárico", + "type": "State" + }, + { + "code": "VE-K", + "name": "Lara", + "type": "State" + }, + { + "code": "VE-L", + "name": "Mérida", + "type": "State" + }, + { + "code": "VE-M", + "name": "Miranda", + "type": "State" + }, + { + "code": "VE-N", + "name": "Monagas", + "type": "State" + }, + { + "code": "VE-O", + "name": "Nueva Esparta", + "type": "State" + }, + { + "code": "VE-P", + "name": "Portuguesa", + "type": "State" + }, + { + "code": "VE-R", + "name": "Sucre", + "type": "State" + }, + { + "code": "VE-S", + "name": "Táchira", + "type": "State" + }, + { + "code": "VE-T", + "name": "Trujillo", + "type": "State" + }, + { + "code": "VE-U", + "name": "Yaracuy", + "type": "State" + }, + { + "code": "VE-V", + "name": "Zulia", + "type": "State" + }, + { + "code": "VE-W", + "name": "Dependencias Federales", + "type": "Federal dependency" + }, + { + "code": "VE-X", + "name": "La Guaira", + "type": "State" + }, + { + "code": "VE-Y", + "name": "Delta Amacuro", + "type": "State" + }, + { + "code": "VE-Z", + "name": "Amazonas", + "type": "State" + }, + { + "code": "VN-01", + "name": "Lai Châu", + "type": "Province" + }, + { + "code": "VN-02", + "name": "Lào Cai", + "type": "Province" + }, + { + "code": "VN-03", + "name": "Hà Giang", + "type": "Province" + }, + { + "code": "VN-04", + "name": "Cao Bằng", + "type": "Province" + }, + { + "code": "VN-05", + "name": "Sơn La", + "type": "Province" + }, + { + "code": "VN-06", + "name": "Yên Bái", + "type": "Province" + }, + { + "code": "VN-07", + "name": "Tuyên Quang", + "type": "Province" + }, + { + "code": "VN-09", + "name": "Lạng Sơn", + "type": "Province" + }, + { + "code": "VN-13", + "name": "Quảng Ninh", + "type": "Province" + }, + { + "code": "VN-14", + "name": "Hòa Bình", + "type": "Province" + }, + { + "code": "VN-18", + "name": "Ninh Bình", + "type": "Province" + }, + { + "code": "VN-20", + "name": "Thái Bình", + "type": "Province" + }, + { + "code": "VN-21", + "name": "Thanh Hóa", + "type": "Province" + }, + { + "code": "VN-22", + "name": "Nghệ An", + "type": "Province" + }, + { + "code": "VN-23", + "name": "Hà Tĩnh", + "type": "Province" + }, + { + "code": "VN-24", + "name": "Quảng Bình", + "type": "Province" + }, + { + "code": "VN-25", + "name": "Quảng Trị", + "type": "Province" + }, + { + "code": "VN-26", + "name": "Thừa Thiên-Huế", + "type": "Province" + }, + { + "code": "VN-27", + "name": "Quảng Nam", + "type": "Province" + }, + { + "code": "VN-28", + "name": "Kon Tum", + "type": "Province" + }, + { + "code": "VN-29", + "name": "Quảng Ngãi", + "type": "Province" + }, + { + "code": "VN-30", + "name": "Gia Lai", + "type": "Province" + }, + { + "code": "VN-31", + "name": "Bình Định", + "type": "Province" + }, + { + "code": "VN-32", + "name": "Phú Yên", + "type": "Province" + }, + { + "code": "VN-33", + "name": "Đắk Lắk", + "type": "Province" + }, + { + "code": "VN-34", + "name": "Khánh Hòa", + "type": "Province" + }, + { + "code": "VN-35", + "name": "Lâm Đồng", + "type": "Province" + }, + { + "code": "VN-36", + "name": "Ninh Thuận", + "type": "Province" + }, + { + "code": "VN-37", + "name": "Tây Ninh", + "type": "Province" + }, + { + "code": "VN-39", + "name": "Đồng Nai", + "type": "Province" + }, + { + "code": "VN-40", + "name": "Bình Thuận", + "type": "Province" + }, + { + "code": "VN-41", + "name": "Long An", + "type": "Province" + }, + { + "code": "VN-43", + "name": "Bà Rịa - Vũng Tàu", + "type": "Province" + }, + { + "code": "VN-44", + "name": "An Giang", + "type": "Province" + }, + { + "code": "VN-45", + "name": "Đồng Tháp", + "type": "Province" + }, + { + "code": "VN-46", + "name": "Tiền Giang", + "type": "Province" + }, + { + "code": "VN-47", + "name": "Kiến Giang", + "type": "Province" + }, + { + "code": "VN-49", + "name": "Vĩnh Long", + "type": "Province" + }, + { + "code": "VN-50", + "name": "Bến Tre", + "type": "Province" + }, + { + "code": "VN-51", + "name": "Trà Vinh", + "type": "Province" + }, + { + "code": "VN-52", + "name": "Sóc Trăng", + "type": "Province" + }, + { + "code": "VN-53", + "name": "Bắc Kạn", + "type": "Province" + }, + { + "code": "VN-54", + "name": "Bắc Giang", + "type": "Province" + }, + { + "code": "VN-55", + "name": "Bạc Liêu", + "type": "Province" + }, + { + "code": "VN-56", + "name": "Bắc Ninh", + "type": "Province" + }, + { + "code": "VN-57", + "name": "Bình Dương", + "type": "Province" + }, + { + "code": "VN-58", + "name": "Bình Phước", + "type": "Province" + }, + { + "code": "VN-59", + "name": "Cà Mau", + "type": "Province" + }, + { + "code": "VN-61", + "name": "Hải Dương", + "type": "Province" + }, + { + "code": "VN-63", + "name": "Hà Nam", + "type": "Province" + }, + { + "code": "VN-66", + "name": "Hưng Yên", + "type": "Province" + }, + { + "code": "VN-67", + "name": "Nam Định", + "type": "Province" + }, + { + "code": "VN-68", + "name": "Phú Thọ", + "type": "Province" + }, + { + "code": "VN-69", + "name": "Thái Nguyên", + "type": "Province" + }, + { + "code": "VN-70", + "name": "Vĩnh Phúc", + "type": "Province" + }, + { + "code": "VN-71", + "name": "Điện Biên", + "type": "Province" + }, + { + "code": "VN-72", + "name": "Đắk Nông", + "type": "Province" + }, + { + "code": "VN-73", + "name": "Hậu Giang", + "type": "Province" + }, + { + "code": "VN-CT", + "name": "Cần Thơ", + "type": "Municipality" + }, + { + "code": "VN-DN", + "name": "Đà Nẵng", + "type": "Municipality" + }, + { + "code": "VN-HN", + "name": "Hà Nội", + "type": "Municipality" + }, + { + "code": "VN-HP", + "name": "Hải Phòng", + "type": "Municipality" + }, + { + "code": "VN-SG", + "name": "Hồ Chí Minh", + "type": "Municipality" + }, + { + "code": "VU-MAP", + "name": "Malampa", + "type": "Province" + }, + { + "code": "VU-PAM", + "name": "Pénama", + "type": "Province" + }, + { + "code": "VU-SAM", + "name": "Sanma", + "type": "Province" + }, + { + "code": "VU-SEE", + "name": "Shéfa", + "type": "Province" + }, + { + "code": "VU-TAE", + "name": "Taféa", + "type": "Province" + }, + { + "code": "VU-TOB", + "name": "Torba", + "type": "Province" + }, + { + "code": "WF-AL", + "name": "Alo", + "type": "Administrative precinct" + }, + { + "code": "WF-SG", + "name": "Sigave", + "type": "Administrative precinct" + }, + { + "code": "WF-UV", + "name": "Uvea", + "type": "Administrative precinct" + }, + { + "code": "WS-AA", + "name": "A'ana", + "type": "District" + }, + { + "code": "WS-AL", + "name": "Aiga-i-le-Tai", + "type": "District" + }, + { + "code": "WS-AT", + "name": "Atua", + "type": "District" + }, + { + "code": "WS-FA", + "name": "Fa'asaleleaga", + "type": "District" + }, + { + "code": "WS-GE", + "name": "Gaga'emauga", + "type": "District" + }, + { + "code": "WS-GI", + "name": "Gagaifomauga", + "type": "District" + }, + { + "code": "WS-PA", + "name": "Palauli", + "type": "District" + }, + { + "code": "WS-SA", + "name": "Satupa'itea", + "type": "District" + }, + { + "code": "WS-TU", + "name": "Tuamasaga", + "type": "District" + }, + { + "code": "WS-VF", + "name": "Va'a-o-Fonoti", + "type": "District" + }, + { + "code": "WS-VS", + "name": "Vaisigano", + "type": "District" + }, + { + "code": "YE-AB", + "name": "Abyan", + "type": "Governorate" + }, + { + "code": "YE-AD", + "name": "‘Adan", + "type": "Governorate" + }, + { + "code": "YE-AM", + "name": "‘Amrān", + "type": "Governorate" + }, + { + "code": "YE-BA", + "name": "Al Bayḑā’", + "type": "Governorate" + }, + { + "code": "YE-DA", + "name": "Aḑ Ḑāli‘", + "type": "Governorate" + }, + { + "code": "YE-DH", + "name": "Dhamār", + "type": "Governorate" + }, + { + "code": "YE-HD", + "name": "Ḩaḑramawt", + "type": "Governorate" + }, + { + "code": "YE-HJ", + "name": "Ḩajjah", + "type": "Governorate" + }, + { + "code": "YE-HU", + "name": "Al Ḩudaydah", + "type": "Governorate" + }, + { + "code": "YE-IB", + "name": "Ibb", + "type": "Governorate" + }, + { + "code": "YE-JA", + "name": "Al Jawf", + "type": "Governorate" + }, + { + "code": "YE-LA", + "name": "Laḩij", + "type": "Governorate" + }, + { + "code": "YE-MA", + "name": "Ma’rib", + "type": "Governorate" + }, + { + "code": "YE-MR", + "name": "Al Mahrah", + "type": "Governorate" + }, + { + "code": "YE-MW", + "name": "Al Maḩwīt", + "type": "Governorate" + }, + { + "code": "YE-RA", + "name": "Raymah", + "type": "Governorate" + }, + { + "code": "YE-SA", + "name": "Amānat al ‘Āşimah [city]", + "type": "Municipality" + }, + { + "code": "YE-SD", + "name": "Şāʻdah", + "type": "Governorate" + }, + { + "code": "YE-SH", + "name": "Shabwah", + "type": "Governorate" + }, + { + "code": "YE-SN", + "name": "Şanʻā’", + "type": "Governorate" + }, + { + "code": "YE-SU", + "name": "Arkhabīl Suquţrá", + "type": "Governorate" + }, + { + "code": "YE-TA", + "name": "Tāʻizz", + "type": "Governorate" + }, + { + "code": "ZA-EC", + "name": "Eastern Cape", + "type": "Province" + }, + { + "code": "ZA-FS", + "name": "Free State", + "type": "Province" + }, + { + "code": "ZA-GP", + "name": "Gauteng", + "type": "Province" + }, + { + "code": "ZA-KZN", + "name": "Kwazulu-Natal", + "type": "Province" + }, + { + "code": "ZA-LP", + "name": "Limpopo", + "type": "Province" + }, + { + "code": "ZA-MP", + "name": "Mpumalanga", + "type": "Province" + }, + { + "code": "ZA-NC", + "name": "Northern Cape", + "type": "Province" + }, + { + "code": "ZA-NW", + "name": "North-West", + "type": "Province" + }, + { + "code": "ZA-WC", + "name": "Western Cape", + "type": "Province" + }, + { + "code": "ZM-01", + "name": "Western", + "type": "Province" + }, + { + "code": "ZM-02", + "name": "Central", + "type": "Province" + }, + { + "code": "ZM-03", + "name": "Eastern", + "type": "Province" + }, + { + "code": "ZM-04", + "name": "Luapula", + "type": "Province" + }, + { + "code": "ZM-05", + "name": "Northern", + "type": "Province" + }, + { + "code": "ZM-06", + "name": "North-Western", + "type": "Province" + }, + { + "code": "ZM-07", + "name": "Southern", + "type": "Province" + }, + { + "code": "ZM-08", + "name": "Copperbelt", + "type": "Province" + }, + { + "code": "ZM-09", + "name": "Lusaka", + "type": "Province" + }, + { + "code": "ZM-10", + "name": "Muchinga", + "type": "Province" + }, + { + "code": "ZW-BU", + "name": "Bulawayo", + "type": "Province" + }, + { + "code": "ZW-HA", + "name": "Harare", + "type": "Province" + }, + { + "code": "ZW-MA", + "name": "Manicaland", + "type": "Province" + }, + { + "code": "ZW-MC", + "name": "Mashonaland Central", + "type": "Province" + }, + { + "code": "ZW-ME", + "name": "Mashonaland East", + "type": "Province" + }, + { + "code": "ZW-MI", + "name": "Midlands", + "type": "Province" + }, + { + "code": "ZW-MN", + "name": "Matabeleland North", + "type": "Province" + }, + { + "code": "ZW-MS", + "name": "Matabeleland South", + "type": "Province" + }, + { + "code": "ZW-MV", + "name": "Masvingo", + "type": "Province" + }, + { + "code": "ZW-MW", + "name": "Mashonaland West", + "type": "Province" + } + ] +} diff --git a/PlotLine/Models/GeographyModels.cs b/PlotLine/Models/GeographyModels.cs new file mode 100644 index 00000000..a2f18598 --- /dev/null +++ b/PlotLine/Models/GeographyModels.cs @@ -0,0 +1,24 @@ +namespace PlotLine.Models; + +public sealed record GeographicRoot(string CountryCode, string? SubdivisionCode = null); +public sealed record GeographicQuery(string Name, string CountryCode, string? SubdivisionCode, string[] Ancestors); +public sealed record GeographicCandidate(string Provider, string PlaceID, string Name, double Latitude, double Longitude, + string CountryCode, string[] AdministrativeNames, string Attribution, bool UniqueWithinContext = false); +public sealed class LocationGeography +{ + public int LocationID { get; set; } + public long Generation { get; set; } + public string Status { get; set; } = "Pending"; + public string? CandidatesJson { get; set; } + public string? MatchJson { get; set; } + public bool Confirmed { get; set; } + public bool IsExcluded { get; set; } + public string? Message { get; set; } +} +public sealed class GeographicJob +{ + public int LocationID { get; set; } + public Guid Lease { get; set; } + public long Generation { get; set; } + public int Attempts { get; set; } +} diff --git a/PlotLine/PlotLine.csproj b/PlotLine/PlotLine.csproj index c80c59c8..cf44863b 100644 --- a/PlotLine/PlotLine.csproj +++ b/PlotLine/PlotLine.csproj @@ -23,6 +23,14 @@ + + PreserveNewest + PreserveNewest + + + PreserveNewest + PreserveNewest + PreserveNewest PreserveNewest diff --git a/PlotLine/Program.cs b/PlotLine/Program.cs index c6f6ea55..ac7db880 100644 --- a/PlotLine/Program.cs +++ b/PlotLine/Program.cs @@ -169,6 +169,17 @@ public class Program builder.Services.AddScoped(); builder.Services.AddScoped(); builder.Services.AddScoped(); + builder.Services.AddScoped(); + builder.Services.AddScoped(sp=>sp.GetRequiredService()); + builder.Services.AddSingleton(new GeographicRules(Path.Combine(builder.Environment.ContentRootPath, "Data", "Reference", "Geography"))); + builder.Services.Configure(builder.Configuration.GetSection("Geography")); + builder.Services.AddHttpClient("Geocoding", client=>client.Timeout=TimeSpan.FromSeconds(25)) + .RemoveAllLoggers() + .ConfigurePrimaryHttpMessageHandler(()=>new HttpClientHandler { AllowAutoRedirect=false }); + builder.Services.AddSingleton(); + builder.Services.AddScoped(); + builder.Services.AddScoped(); + builder.Services.AddHostedService(); builder.Services.AddScoped(); builder.Services.AddScoped(); builder.Services.AddScoped(); diff --git a/PlotLine/Services/GeographicHierarchyService.cs b/PlotLine/Services/GeographicHierarchyService.cs new file mode 100644 index 00000000..bac8819b --- /dev/null +++ b/PlotLine/Services/GeographicHierarchyService.cs @@ -0,0 +1,18 @@ +using Microsoft.Data.SqlClient; +using PlotLine.Data; +namespace PlotLine.Services; + +public sealed class GeographicHierarchyService(GeographyRepository repository,GeographicRules rules,IProjectAccessService access,ICurrentUserService currentUser) +{ + public async Task SubmitAsync(int projectId,int locationId) + { + if(!await access.CanAccessProjectAsync(projectId))return "Project access is required."; + var chain=await repository.ChainAsync(locationId); + if(chain.Count==0 || chain[0].ProjectID!=projectId)return "Location is unavailable."; + if(rules.Query(chain) is null)return "This hierarchy is not eligible for geographical lookup. Use geographical types beneath a recognised root."; + var state=(await repository.GetAsync(projectId,currentUser.UserId!.Value,locationId)).SingleOrDefault(); + if(state is null)return "Geographical state is unavailable."; + try {await repository.SubmitAsync(projectId,currentUser.UserId!.Value,locationId,state.Generation);return "Geographical hierarchy lookup requested (at most 20 places). External processing requires the configured provider to be enabled.";} + catch(SqlException ex) when(ex.Number==51000){return ex.Message;} + } +} diff --git a/PlotLine/Services/GeographicResolution.cs b/PlotLine/Services/GeographicResolution.cs new file mode 100644 index 00000000..56e74667 --- /dev/null +++ b/PlotLine/Services/GeographicResolution.cs @@ -0,0 +1,72 @@ +using System.Security.Cryptography; +using System.Text; +using System.Text.Json; +using PlotLine.Models; + +namespace PlotLine.Services; + +// Only public geographical names enter this interface. Never pass descriptions, aliases or manuscript text. +public interface IGeocodingProvider +{ + string Name { get; } + bool Enabled { get; } + TimeSpan MinimumInterval { get; } + Task> SearchAsync(GeographicQuery query, CancellationToken cancellationToken); +} + +public sealed class GeographicRules +{ + private readonly Dictionary roots = new(StringComparer.OrdinalIgnoreCase); + private static readonly HashSet Types = new(StringComparer.OrdinalIgnoreCase) + { "Country", "Region", "State", "County", "City", "Town", "Village" }; + public GeographicRules(string referenceDirectory) + { + using var countries = JsonDocument.Parse(File.ReadAllText(Path.Combine(referenceDirectory, "countries.json"))); + foreach (var country in countries.RootElement.GetProperty("3166-1").EnumerateArray()) + { + var root = new GeographicRoot(country.GetProperty("alpha_2").GetString()!); + foreach (var key in new[] { "name", "official_name", "common_name", "alpha_3" }) + if (country.TryGetProperty(key, out var name)) roots[name.GetString()!] = root; + } + using var subdivisions = JsonDocument.Parse(File.ReadAllText(Path.Combine(referenceDirectory, "subdivisions.json"))); + foreach (var region in subdivisions.RootElement.GetProperty("3166-2").EnumerateArray()) + { + var code = region.GetProperty("code").GetString()!; + var root = new GeographicRoot(code[..2], code); + // Explicit ISO codes and country-qualified names avoid ambiguous bare region names (e.g. Georgia). + roots[code] = root; + roots[$"{region.GetProperty("name").GetString()}, {code[..2]}"] = root; + } + roots["UK"] = roots["United Kingdom"] = new("GB"); + roots["USA"] = roots["US"] = roots["United States"] = new("US"); + roots["England"] = new("GB", "GB-ENG"); + roots["Scotland"] = new("GB", "GB-SCT"); + roots["Wales"] = new("GB", "GB-WLS"); + roots["Northern Ireland"] = new("GB", "GB-NIR"); + // Georgia alone may mean either the country or US state; require an explicit country identifier. + roots.Remove("Georgia"); + } + public GeographicRoot? Root(string name) => roots.GetValueOrDefault(name.Trim()); + public GeographicQuery? Query(IReadOnlyList chain) + { + if (chain.Count == 0 || chain.Count > 100 || !Types.Contains(chain[0].LocationTypeName ?? "")) return null; + if (chain[^1].ParentLocationID is not null) return null; + var root = Root(chain[^1].LocationName); + if (root is null) return null; + // Premises and arbitrary fictional intermediate parents must never be sent to a provider. + if (chain.Any(l => !Types.Contains(l.LocationTypeName ?? ""))) return null; + return new(chain[0].LocationName, root.CountryCode, root.SubdivisionCode, + chain.Skip(1).Reverse().Select(l => l.LocationName).ToArray()); + } + public static string CacheKey(GeographicQuery query, string source = "") => Convert.ToHexString(SHA256.HashData( + Encoding.UTF8.GetBytes(JsonSerializer.Serialize(new { Source = source, Name = query.Name.Trim().ToUpperInvariant(), query.CountryCode, + query.SubdivisionCode, Ancestors = query.Ancestors.Select(x => x.Trim().ToUpperInvariant()).ToArray() })))); + public static IReadOnlyList Candidates(GeographicQuery query, IEnumerable candidates) + => candidates.Where(c => c.CountryCode.Equals(query.CountryCode, StringComparison.OrdinalIgnoreCase) + && !string.IsNullOrWhiteSpace(c.Provider) && !string.IsNullOrWhiteSpace(c.PlaceID) + && !string.IsNullOrWhiteSpace(c.Attribution) && double.IsFinite(c.Latitude) && double.IsFinite(c.Longitude) + && c.Latitude is >= -90 and <= 90 && c.Longitude is >= -180 and <= 180) + .DistinctBy(c => (c.Provider, c.PlaceID)).Take(10).ToList(); + // A provider ranking or a single returned result alone does not establish uniqueness. + // Conservative initial adapter contract: all matches require author confirmation. +} diff --git a/PlotLine/Services/GeographicWorker.cs b/PlotLine/Services/GeographicWorker.cs new file mode 100644 index 00000000..4be7db33 --- /dev/null +++ b/PlotLine/Services/GeographicWorker.cs @@ -0,0 +1,95 @@ +using System.Text.Json; +using PlotLine.Data; +using PlotLine.Models; +namespace PlotLine.Services; + +public sealed class GeographicWorker(IServiceScopeFactory scopes, ILogger logger) : BackgroundService +{ + protected override async Task ExecuteAsync(CancellationToken stoppingToken) + { + using var timer=new PeriodicTimer(TimeSpan.FromSeconds(30)); + do + { + try + { + using var scope=scopes.CreateScope(); + var processor=scope.ServiceProvider.GetRequiredService(); + // Bounded batches also classify ineligible roots without sending any external requests. + for(var i=0;i<20 && !stoppingToken.IsCancellationRequested;i++) + if(!await processor.ProcessOneAsync(stoppingToken)) break; + } + catch(OperationCanceledException) when(stoppingToken.IsCancellationRequested) { return; } + catch(Exception ex) + { + // Log codes only: provider exceptions may include private queries or credentials. + logger.LogWarning("Geographic queue cycle failed ({ErrorType}); retrying next cycle.",ex.GetType().Name); + } + } while(await timer.WaitForNextTickAsync(stoppingToken)); + } +} + +public sealed class GeographicProcessor(IGeographicQueue repository,GeographicRules rules,IGeocodingProvider provider) +{ + public async Task ProcessOneAsync(CancellationToken cancellationToken) + { + var job=await repository.ClaimAsync(provider.Enabled); + if(job is null) return false; + var cooldown=0; + try + { + var chain=await repository.ChainAsync(job.LocationID); + var query=rules.Query(chain); + if(query is null) + { + await repository.CompleteAsync(job,"Not eligible","Done",message:"Use geographical types beneath a recognised country or qualified region."); + return true; + } + var key=GeographicRules.CacheKey(query,provider.Name); + var cached=await repository.CacheAsync(key); + IReadOnlyList candidates; + if(cached is not null) candidates=JsonSerializer.Deserialize>(cached) ?? []; + else + { + if(!provider.Enabled) + { + await repository.CompleteAsync(job,"Pending","Waiting configuration",message:"External geographical lookup is disabled until a provider is configured."); + return true; + } + if(!await repository.ReserveAsync("Geocoding.External",provider.MinimumInterval,key,job.Lease)) + { + await repository.CompleteAsync(job,"Pending","Queued",delay:Math.Max(1,(int)Math.Ceiling(provider.MinimumInterval.TotalSeconds))); + return false; + } + using var timeout=CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); + timeout.CancelAfter(TimeSpan.FromSeconds(30)); + candidates=await provider.SearchAsync(query,timeout.Token); + } + candidates=GeographicRules.Candidates(query,candidates); + var json=JsonSerializer.Serialize(candidates); + // Provider adapters must establish uniqueness independently of their result limit/ranking. + var resolved=candidates.Count==1 && candidates[0].UniqueWithinContext; + await repository.CompleteAsync(job,candidates.Count==0?"Unresolved":resolved?"Resolved":"Needs confirmation","Done",key,json, + resolved?JsonSerializer.Serialize(candidates[0]):null, + candidates.Count==0?"No reliable geographical match.":resolved?"Unique geographical match":"Choose a geographical match."); + } + catch(OperationCanceledException) when(cancellationToken.IsCancellationRequested) + { + // The lease expires durably; a subsequent worker recovers it. + throw; + } + catch(Exception ex) + { + if(ex is GeocodingHttpException http) + cooldown=http.StatusCode is 403 or 429 ? Math.Clamp((int)(http.RetryAfter?.TotalSeconds ?? 3600),900,86400) : 60; + var exhausted=job.Attempts>=3; + await repository.CompleteAsync(job,exhausted?"Unresolved":"Pending",exhausted?"Done":"Queued", + message:exhausted?"Provider lookup failed after four attempts. You can retry later.":"Provider temporarily unavailable.", + failure:true,delay:(int)Math.Pow(2,job.Attempts)*60); + } + finally + { + await repository.ReleaseAsync(job.Lease,cooldown); + } + return true; + } +} diff --git a/PlotLine/Services/NominatimGeocodingProvider.cs b/PlotLine/Services/NominatimGeocodingProvider.cs new file mode 100644 index 00000000..29a9a754 --- /dev/null +++ b/PlotLine/Services/NominatimGeocodingProvider.cs @@ -0,0 +1,93 @@ +using System.Globalization; +using System.Text.Json; +using Microsoft.Extensions.Options; +using PlotLine.Models; +namespace PlotLine.Services; + +public sealed class GeocodingOptions +{ + public bool Enabled { get; set; } + public string Provider { get; set; } = "Nominatim"; + public string Endpoint { get; set; } = "https://nominatim.openstreetmap.org/search"; + public string UserAgent { get; set; } = ""; + public string WorkerHost { get; set; } = ""; + public int MinimumIntervalSeconds { get; set; } = 15; +} + +// Configuration comes from IOptionsMonitor: the JSON settings provider supports changes without redeployment. +public sealed class NominatimGeocodingProvider(IOptionsMonitor options,IHttpClientFactory clients) : IGeocodingProvider +{ + public string Name => "Nominatim:"+options.CurrentValue.Endpoint; + public bool Enabled => options.CurrentValue is {Enabled:true,Provider:"Nominatim"} config + && string.Equals(config.WorkerHost,Environment.MachineName,StringComparison.OrdinalIgnoreCase) + && Valid(config); + // All author-triggered multi-place batches use the stricter 4/minute ceiling, even when small. + public TimeSpan MinimumInterval => TimeSpan.FromSeconds(Math.Clamp(options.CurrentValue.MinimumIntervalSeconds,15,86400)); + private static bool Valid(GeocodingOptions config) => Uri.TryCreate(config.Endpoint,UriKind.Absolute,out var uri) + && uri.Scheme=="https" && string.IsNullOrEmpty(uri.UserInfo) && string.IsNullOrEmpty(uri.Query) + && config.UserAgent.StartsWith("PlotDirector/",StringComparison.Ordinal) && config.UserAgent.Length>=25 + && (config.UserAgent.Contains("https://",StringComparison.Ordinal)||config.UserAgent.Contains('@')); + public async Task> SearchAsync(GeographicQuery query,CancellationToken cancellationToken) + { + var config=options.CurrentValue; + if(!Enabled)throw new InvalidOperationException("Geocoding is disabled or this host is not the designated worker."); + // Only public place names and geographical ancestors, never descriptions or story content. + var text=string.Join(", ",new[]{query.Name}.Concat(query.Ancestors.Reverse())); + var uri=config.Endpoint+"?format=jsonv2&addressdetails=1&namedetails=1&limit=10&dedupe=1&countrycodes=" + +Uri.EscapeDataString(query.CountryCode.ToLowerInvariant())+"&accept-language=en&q="+Uri.EscapeDataString(text); + using var request=new HttpRequestMessage(HttpMethod.Get,uri); + request.Headers.UserAgent.ParseAdd(config.UserAgent); + using var response=await clients.CreateClient("Geocoding").SendAsync(request,HttpCompletionOption.ResponseHeadersRead,cancellationToken); + if(!response.IsSuccessStatusCode) + throw new GeocodingHttpException((int)response.StatusCode, + response.Headers.RetryAfter?.Delta ?? (response.Headers.RetryAfter?.Date-DateTimeOffset.UtcNow)); + if(response.Content.Headers.ContentLength is >1_000_000)throw new InvalidDataException("Oversized provider response."); + await using var stream=await response.Content.ReadAsStreamAsync(cancellationToken); + using var buffer=new MemoryStream(); + var chunk=new byte[8192];int read; + while((read=await stream.ReadAsync(chunk,cancellationToken))>0){if(buffer.Length+read>1_000_000)throw new InvalidDataException("Oversized provider response.");buffer.Write(chunk,0,read);} + using var json=JsonDocument.Parse(buffer.ToArray()); + return Parse(query,json.RootElement); + } + public static IReadOnlyList Parse(GeographicQuery query,JsonElement response) + { + if(response.ValueKind!=JsonValueKind.Array)throw new InvalidDataException("Invalid provider response."); + var candidates=new List(); + var reliable=new HashSet(StringComparer.Ordinal); + static string Normalize(string value)=>string.Join(' ',value.Trim().ToUpperInvariant().Split((char[]?)null,StringSplitOptions.RemoveEmptyEntries)); + foreach(var row in response.EnumerateArray().Take(10)) + { + string Text(string field)=>row.TryGetProperty(field,out var value)?value.ToString():""; + var type=Text("addresstype"); + if(type is not ("country" or "state" or "region" or "county" or "city" or "town" or "village" or "hamlet" or "suburb" or "quarter" or "neighbourhood" or "administrative"))continue; + if(!row.TryGetProperty("address",out var address))continue; + var country=address.TryGetProperty("country_code",out var cc)?cc.GetString()?.ToUpperInvariant():null; + if(country!=query.CountryCode)continue; + var admin=address.EnumerateObject().Where(p=>p.Name is not ("postcode" or "country_code" or "house_number" or "road")) + .Select(p=>p.Value.ToString()).Distinct(StringComparer.OrdinalIgnoreCase).ToArray(); + if(query.SubdivisionCode is not null && !admin.Contains(query.SubdivisionCode,StringComparer.OrdinalIgnoreCase))continue; + if(!double.TryParse(Text("lat"),NumberStyles.Float,CultureInfo.InvariantCulture,out var lat) + ||!double.TryParse(Text("lon"),NumberStyles.Float,CultureInfo.InvariantCulture,out var lon))continue; + var identity=Text("osm_type")+":"+Text("osm_id"); + if(identity is ":"||string.IsNullOrEmpty(Text("osm_id")))continue; + var context=query.Ancestors.Skip(1).Select(Normalize).ToArray(); + var exactName=Normalize(Text("name"))==Normalize(query.Name); + var contextMatches=context.All(name=>admin.Any(a=>Normalize(a)==name)); + // Require exact place name plus more identifying context than a country-only query. + // A constituent/admin root or an additional matching ancestor supplies that context. + if(exactName && contextMatches && (query.SubdivisionCode is not null || context.Length>0))reliable.Add(identity); + candidates.Add(new("Nominatim",identity,Text("display_name"),lat,lon,country,admin, + "© OpenStreetMap contributors · ODbL 1.0 · https://www.openstreetmap.org/copyright",false)); + } + var valid=GeographicRules.Candidates(query,candidates); + // Ranked results alone are insufficient. Never auto-select a saturated result set or multiple candidates. + if(valid.Count==1 && response.GetArrayLength()<10 && reliable.Contains(valid[0].PlaceID)) + return new[]{valid[0] with {UniqueWithinContext=true}}; + return valid; + } +} +public sealed class GeocodingHttpException(int statusCode,TimeSpan? retryAfter) : Exception +{ + public int StatusCode { get; } = statusCode; + public TimeSpan? RetryAfter { get; } = retryAfter; +} diff --git a/PlotLine/Sql/253_LocationGeography.sql b/PlotLine/Sql/253_LocationGeography.sql new file mode 100644 index 00000000..ec327202 --- /dev/null +++ b/PlotLine/Sql/253_LocationGeography.sql @@ -0,0 +1,175 @@ +-- Forward-only geography infrastructure. No provider is enabled by this migration. +SET ANSI_NULLS ON; +SET QUOTED_IDENTIFIER ON; +GO +IF OBJECT_ID('dbo.GeographicCache','U') IS NULL +CREATE TABLE dbo.GeographicCache( + RequestKey char(64) NOT NULL PRIMARY KEY, + CandidatesJson nvarchar(max) NOT NULL CHECK(ISJSON(CandidatesJson)=1), + ResolvedAt datetime2 NOT NULL DEFAULT SYSUTCDATETIME() +); +IF OBJECT_ID('dbo.LocationGeography','U') IS NULL +CREATE TABLE dbo.LocationGeography( + LocationID int NOT NULL PRIMARY KEY REFERENCES dbo.Locations(LocationID) ON DELETE CASCADE, + Generation bigint NOT NULL DEFAULT 1, + Status varchar(24) NOT NULL DEFAULT 'Pending', + Confirmed bit NOT NULL DEFAULT 0, + IsExcluded bit NOT NULL DEFAULT 0, + CandidatesJson nvarchar(max) NULL, + MatchJson nvarchar(max) NULL, + RequestKey char(64) NULL, + Message nvarchar(200) NULL, + JobState varchar(24) NOT NULL DEFAULT 'Queued', + Attempts int NOT NULL DEFAULT 0, + NextAttempt datetime2 NOT NULL DEFAULT SYSUTCDATETIME(), + Lease uniqueidentifier NULL, + LeaseUntil datetime2 NULL, + LastRetry datetime2 NULL, + CHECK(Status IN('Pending','Resolved','Needs confirmation','Unresolved','Not eligible')) +); +IF OBJECT_ID('dbo.GeographicLookupLease','U') IS NULL +CREATE TABLE dbo.GeographicLookupLease(RequestKey char(64) NOT NULL PRIMARY KEY, Lease uniqueidentifier NOT NULL, LeaseUntil datetime2 NOT NULL); +IF OBJECT_ID('dbo.GeographicProviderGate','U') IS NULL +CREATE TABLE dbo.GeographicProviderGate(Provider nvarchar(100) NOT NULL PRIMARY KEY, NextRequest datetime2 NOT NULL); +GO +CREATE OR ALTER TRIGGER dbo.Location_GeographyChanged ON dbo.Locations AFTER INSERT, UPDATE AS +BEGIN + SET NOCOUNT ON; + IF NOT (UPDATE(LocationName) OR UPDATE(ParentLocationID) OR UPDATE(LocationTypeID) OR UPDATE(IsArchived)) RETURN; + ;WITH Changed AS ( + SELECT i.LocationID FROM inserted i LEFT JOIN deleted d ON d.LocationID=i.LocationID + WHERE d.LocationID IS NULL OR i.LocationName<>d.LocationName OR ISNULL(i.ParentLocationID,0)<>ISNULL(d.ParentLocationID,0) + OR ISNULL(i.LocationTypeID,0)<>ISNULL(d.LocationTypeID,0) OR i.IsArchived<>d.IsArchived + ), Descendants AS ( + SELECT LocationID FROM Changed UNION ALL + SELECT l.LocationID FROM dbo.Locations l JOIN Descendants p ON l.ParentLocationID=p.LocationID + ) + SELECT DISTINCT LocationID INTO #Affected FROM Descendants OPTION(MAXRECURSION 100); + UPDATE g SET Generation=Generation+1,Status=CASE WHEN IsExcluded=1 THEN 'Not eligible' ELSE 'Pending' END,Confirmed=0,CandidatesJson=NULL,MatchJson=NULL,RequestKey=NULL, + Message=NULL,JobState=CASE WHEN IsExcluded=1 THEN 'Done' ELSE 'Queued' END,Attempts=0,NextAttempt=SYSUTCDATETIME(),Lease=NULL,LeaseUntil=NULL + FROM dbo.LocationGeography g JOIN #Affected a ON a.LocationID=g.LocationID; + INSERT dbo.LocationGeography(LocationID) + SELECT a.LocationID FROM #Affected a WHERE NOT EXISTS(SELECT 1 FROM dbo.LocationGeography g WHERE g.LocationID=a.LocationID); +END; +GO +CREATE OR ALTER PROCEDURE dbo.Geography_Get @ProjectID int,@UserID int,@LocationID int=NULL AS +BEGIN + SET NOCOUNT ON; + EXEC dbo.StoryMap_Authorize @ProjectID,@UserID; + SELECT g.LocationID,g.Generation,g.Status,g.Confirmed,g.IsExcluded,g.CandidatesJson,g.MatchJson,g.Message + FROM dbo.LocationGeography g JOIN dbo.Locations l ON l.LocationID=g.LocationID + WHERE l.ProjectID=@ProjectID AND l.IsArchived=0 AND (@LocationID IS NULL OR l.LocationID=@LocationID); +END; +GO +CREATE OR ALTER PROCEDURE dbo.Geography_Claim @Enabled bit AS +BEGIN + SET NOCOUNT ON; SET XACT_ABORT ON; + DECLARE @Now datetime2=SYSUTCDATETIME(),@Lease uniqueidentifier=NEWID(); + ;WITH job AS (SELECT TOP(1) * FROM dbo.LocationGeography WITH(UPDLOCK,READPAST,ROWLOCK) + WHERE (JobState='Queued' OR (JobState='Waiting configuration' AND @Enabled=1) OR (JobState='Processing' AND LeaseUntil<@Now)) + AND NextAttempt<=@Now ORDER BY NextAttempt,LocationID) + UPDATE job SET JobState='Processing',Lease=@Lease,LeaseUntil=DATEADD(minute,2,@Now) + OUTPUT inserted.LocationID,inserted.Generation,inserted.Attempts,inserted.Lease; +END; +GO +CREATE OR ALTER PROCEDURE dbo.Geography_Chain @LocationID int AS +BEGIN + SET NOCOUNT ON; + ;WITH chain AS ( + SELECT LocationID,ParentLocationID,ProjectID,LocationName,LocationTypeID,0 Depth FROM dbo.Locations WHERE LocationID=@LocationID AND IsArchived=0 + UNION ALL SELECT p.LocationID,p.ParentLocationID,p.ProjectID,p.LocationName,p.LocationTypeID,c.Depth+1 + FROM dbo.Locations p JOIN chain c ON c.ParentLocationID=p.LocationID AND c.ProjectID=p.ProjectID WHERE p.IsArchived=0 + ) SELECT c.*,t.TypeName LocationTypeName FROM chain c LEFT JOIN dbo.LocationTypes t ON t.LocationTypeID=c.LocationTypeID + ORDER BY Depth OPTION(MAXRECURSION 100); +END; +GO +CREATE OR ALTER PROCEDURE dbo.Geography_Cache @RequestKey char(64) AS + SELECT CandidatesJson FROM dbo.GeographicCache WHERE RequestKey=@RequestKey; +GO +-- One database-wide gate per provider. Reservation persists across workers, processes and restarts. +CREATE OR ALTER PROCEDURE dbo.Geography_Reserve @Provider nvarchar(100),@IntervalMs int,@RequestKey char(64),@Lease uniqueidentifier AS +BEGIN + SET NOCOUNT ON; SET XACT_ABORT ON; + IF @IntervalMs<0 OR @IntervalMs>86400000 THROW 51000,'Invalid provider interval.',1; + BEGIN TRANSACTION; + DECLARE @Lock int; + EXEC @Lock=sys.sp_getapplock @Resource='PlotDirector.Geography.ProviderGate',@LockMode='Exclusive',@LockOwner='Transaction',@LockTimeout=1000; + IF @Lock<0 BEGIN ROLLBACK; SELECT CAST(0 AS bit); RETURN; END; + DECLARE @Now datetime2=SYSUTCDATETIME(); + DELETE dbo.GeographicLookupLease WHERE LeaseUntil<@Now; + IF EXISTS(SELECT 1 FROM dbo.GeographicLookupLease WHERE RequestKey=@RequestKey) + BEGIN COMMIT; SELECT CAST(0 AS bit); RETURN; END; + IF EXISTS(SELECT 1 FROM dbo.GeographicProviderGate WHERE Provider=@Provider AND NextRequest>@Now) + BEGIN COMMIT; SELECT CAST(0 AS bit); RETURN; END; + UPDATE dbo.GeographicProviderGate SET NextRequest=DATEADD(millisecond,@IntervalMs,@Now) WHERE Provider=@Provider; + IF @@ROWCOUNT=0 INSERT dbo.GeographicProviderGate VALUES(@Provider,DATEADD(millisecond,@IntervalMs,@Now)); + INSERT dbo.GeographicLookupLease VALUES(@RequestKey,@Lease,DATEADD(minute,2,@Now)); + COMMIT; SELECT CAST(1 AS bit); +END; +GO +CREATE OR ALTER PROCEDURE dbo.Geography_Complete + @LocationID int,@Generation bigint,@Lease uniqueidentifier,@Status varchar(24),@JobState varchar(24), + @RequestKey char(64)=NULL,@CandidatesJson nvarchar(max)=NULL,@MatchJson nvarchar(max)=NULL, + @Message nvarchar(200)=NULL,@Failure bit=0,@DelaySeconds int=0 +AS +BEGIN + SET NOCOUNT ON; SET XACT_ABORT ON; + BEGIN TRANSACTION; + DELETE dbo.GeographicLookupLease WHERE Lease=@Lease; + UPDATE dbo.LocationGeography SET Status=@Status,JobState=@JobState,RequestKey=@RequestKey,CandidatesJson=@CandidatesJson, + MatchJson=@MatchJson,Message=@Message,Attempts=Attempts+CONVERT(int,@Failure), + NextAttempt=DATEADD(second,@DelaySeconds,SYSUTCDATETIME()),Lease=NULL,LeaseUntil=NULL + WHERE LocationID=@LocationID AND Generation=@Generation AND Lease=@Lease AND Confirmed=0; + IF @@ROWCOUNT=1 AND @RequestKey IS NOT NULL AND @CandidatesJson IS NOT NULL + BEGIN + UPDATE dbo.GeographicCache WITH(UPDLOCK,SERIALIZABLE) SET CandidatesJson=@CandidatesJson,ResolvedAt=SYSUTCDATETIME() WHERE RequestKey=@RequestKey; + IF @@ROWCOUNT=0 INSERT dbo.GeographicCache(RequestKey,CandidatesJson) VALUES(@RequestKey,@CandidatesJson); + END; + COMMIT; +END; +GO +CREATE OR ALTER PROCEDURE dbo.Geography_Choose + @ProjectID int,@UserID int,@LocationID int,@Generation bigint,@CandidateIndex int +AS +BEGIN + SET NOCOUNT ON; SET XACT_ABORT ON; + EXEC dbo.StoryMap_Authorize @ProjectID,@UserID; + IF @CandidateIndex<0 OR @CandidateIndex>9 THROW 51000,'Invalid candidate.',1; + UPDATE g SET MatchJson=JSON_QUERY(g.CandidatesJson,CONCAT('$[',@CandidateIndex,']')),Status='Resolved',Confirmed=1, + JobState='Done',Lease=NULL,LeaseUntil=NULL,Message='Author confirmed' + FROM dbo.LocationGeography g JOIN dbo.Locations l ON l.LocationID=g.LocationID + WHERE l.ProjectID=@ProjectID AND l.IsArchived=0 AND g.LocationID=@LocationID AND g.Generation=@Generation + AND g.Status='Needs confirmation' AND JSON_QUERY(g.CandidatesJson,CONCAT('$[',@CandidateIndex,']')) IS NOT NULL; + IF @@ROWCOUNT<>1 THROW 51000,'Location changed. Refresh before choosing a match.',1; +END; +GO +CREATE OR ALTER PROCEDURE dbo.Geography_Retry @ProjectID int,@UserID int,@LocationID int,@Generation bigint,@ReplaceConfirmed bit=0 AS +BEGIN + SET NOCOUNT ON; + EXEC dbo.StoryMap_Authorize @ProjectID,@UserID; + UPDATE g SET Status='Pending',JobState='Queued',Attempts=0,NextAttempt=SYSUTCDATETIME(),Lease=NULL,LeaseUntil=NULL, + Generation=Generation+1,Confirmed=0,CandidatesJson=NULL,MatchJson=NULL,Message=NULL,LastRetry=SYSUTCDATETIME() + FROM dbo.LocationGeography g JOIN dbo.Locations l ON l.LocationID=g.LocationID + WHERE l.ProjectID=@ProjectID AND l.IsArchived=0 AND g.LocationID=@LocationID AND g.Generation=@Generation + AND g.IsExcluded=0 AND (g.Confirmed=0 OR @ReplaceConfirmed=1) AND g.Status IN('Unresolved','Needs confirmation','Resolved') + AND (g.LastRetry IS NULL OR g.LastRetry1 THROW 51000,'Retry is unavailable. Confirmed matches are preserved; other lookups can be retried once per hour.',1; +END; +GO +INSERT dbo.LocationGeography(LocationID) +SELECT l.LocationID FROM dbo.Locations l WHERE l.IsArchived=0 AND NOT EXISTS(SELECT 1 FROM dbo.LocationGeography g WHERE g.LocationID=l.LocationID); +GO + +CREATE OR ALTER PROCEDURE dbo.Geography_Exclude @ProjectID int,@UserID int,@LocationID int,@Generation bigint,@IsExcluded bit AS +BEGIN + SET NOCOUNT ON; + EXEC dbo.StoryMap_Authorize @ProjectID,@UserID; + UPDATE g SET IsExcluded=@IsExcluded,Generation=Generation+1,Confirmed=0,MatchJson=NULL,CandidatesJson=NULL, + Status=CASE WHEN @IsExcluded=1 THEN 'Not eligible' ELSE 'Pending' END, + JobState=CASE WHEN @IsExcluded=1 THEN 'Done' ELSE 'Queued' END, + Message=CASE WHEN @IsExcluded=1 THEN 'Excluded by author' ELSE NULL END,Attempts=0,NextAttempt=SYSUTCDATETIME(),Lease=NULL,LeaseUntil=NULL + FROM dbo.LocationGeography g JOIN dbo.Locations l ON l.LocationID=g.LocationID + WHERE l.ProjectID=@ProjectID AND l.IsArchived=0 AND g.LocationID=@LocationID AND g.Generation=@Generation; + IF @@ROWCOUNT<>1 THROW 51000,'Location changed. Refresh before changing geographical lookup.',1; +END; +GO diff --git a/PlotLine/Sql/254_GeographyAuthorHierarchyBatches.sql b/PlotLine/Sql/254_GeographyAuthorHierarchyBatches.sql new file mode 100644 index 00000000..aa7dbd36 --- /dev/null +++ b/PlotLine/Sql/254_GeographyAuthorHierarchyBatches.sql @@ -0,0 +1,138 @@ +-- Replaces automatic creation/backfill with bounded, explicit hierarchy requests. +SET ANSI_NULLS ON; +SET QUOTED_IDENTIFIER ON; +GO +IF OBJECT_ID('dbo.GeographicAuthorBatch','U') IS NULL +CREATE TABLE dbo.GeographicAuthorBatch( + BatchID bigint IDENTITY PRIMARY KEY, UserID int NOT NULL, RequestedAt datetime2 NOT NULL DEFAULT SYSUTCDATETIME(), LocationCount int NOT NULL +); +IF COL_LENGTH('dbo.GeographicProviderGate','Lease') IS NULL +ALTER TABLE dbo.GeographicProviderGate ADD Lease uniqueidentifier NULL,LeaseUntil datetime2 NULL,RequestDay date NULL,DailyRequests int NOT NULL DEFAULT 0; +GO +-- Cancel only legacy automatic jobs introduced by 253; they have never been author submitted. +UPDATE dbo.LocationGeography SET JobState='Awaiting hierarchy request',Status='Pending',Lease=NULL,LeaseUntil=NULL, + Message='Arrange or explicitly request resolution of this hierarchy to look up geographical places.' +WHERE JobState IN('Queued','Waiting configuration','Processing') AND Confirmed=0; +GO +CREATE OR ALTER TRIGGER dbo.Location_GeographyChanged ON dbo.Locations AFTER INSERT, UPDATE AS +BEGIN + SET NOCOUNT ON; + IF NOT (UPDATE(LocationName) OR UPDATE(ParentLocationID) OR UPDATE(LocationTypeID) OR UPDATE(IsArchived)) RETURN; + ;WITH Changed AS ( + SELECT i.LocationID FROM inserted i LEFT JOIN deleted d ON d.LocationID=i.LocationID + WHERE d.LocationID IS NULL OR i.LocationName<>d.LocationName OR ISNULL(i.ParentLocationID,0)<>ISNULL(d.ParentLocationID,0) + OR ISNULL(i.LocationTypeID,0)<>ISNULL(d.LocationTypeID,0) OR i.IsArchived<>d.IsArchived + ), Descendants AS ( + SELECT LocationID FROM Changed UNION ALL + SELECT l.LocationID FROM dbo.Locations l JOIN Descendants p ON l.ParentLocationID=p.LocationID + ) + SELECT DISTINCT LocationID INTO #Affected FROM Descendants OPTION(MAXRECURSION 100); + UPDATE g SET Generation=Generation+1,Status=CASE WHEN IsExcluded=1 THEN 'Not eligible' ELSE 'Pending' END,Confirmed=0, + CandidatesJson=NULL,MatchJson=NULL,RequestKey=NULL,Attempts=0,Lease=NULL,LeaseUntil=NULL, + JobState=CASE WHEN IsExcluded=1 THEN 'Done' ELSE 'Awaiting hierarchy request' END, + Message='Identifying context changed. Arrange or request resolution of this hierarchy.' + FROM dbo.LocationGeography g JOIN #Affected a ON a.LocationID=g.LocationID; + -- A new location does not trigger geocoding, even when it has a parent. + INSERT dbo.LocationGeography(LocationID,JobState,Message) + SELECT a.LocationID,'Awaiting hierarchy request','Arrange or request resolution of this hierarchy.' FROM #Affected a + WHERE NOT EXISTS(SELECT 1 FROM dbo.LocationGeography g WHERE g.LocationID=a.LocationID); +END; +GO +CREATE OR ALTER PROCEDURE dbo.Geography_BatchPermit @UserID int,@LocationCount int AS +BEGIN + SET NOCOUNT ON; + IF @@TRANCOUNT=0 THROW 51000,'Batch admission requires a transaction.',1; + DECLARE @Lock int; + EXEC @Lock=sys.sp_getapplock @Resource='PlotDirector.Geography.AuthorBatches',@LockMode='Exclusive',@LockOwner='Transaction',@LockTimeout=1000; + IF @Lock<0 THROW 51000,'Geographical lookup is busy. Try later.',1; + IF @LocationCount NOT BETWEEN 1 AND 20 THROW 51000,'Choose a hierarchy branch of at most 20 locations.',1; + IF EXISTS(SELECT 1 FROM dbo.GeographicAuthorBatch WHERE UserID=@UserID AND RequestedAt>DATEADD(hour,-1,SYSUTCDATETIME())) + OR (SELECT COUNT(*) FROM dbo.GeographicAuthorBatch WHERE RequestedAt>DATEADD(hour,-1,SYSUTCDATETIME()))>=6 + THROW 51000,'Geographical lookup batch limit reached. Try again in an hour.',1; + DELETE dbo.GeographicAuthorBatch WHERE RequestedAt'Resolved' AND g.JobState<>'Processing'; + COMMIT; +END; +GO +-- A single external request at a time across processes, on the designated configured host only. +-- 15 seconds between starts; 200/day application ceiling. Provider errors can extend cooldown. +CREATE OR ALTER PROCEDURE dbo.Geography_Reserve @Provider nvarchar(100),@IntervalMs int,@RequestKey char(64),@Lease uniqueidentifier AS +BEGIN + SET NOCOUNT ON; SET XACT_ABORT ON; + SET @IntervalMs=CASE WHEN @IntervalMs<15000 THEN 15000 ELSE @IntervalMs END; + IF @IntervalMs>86400000 THROW 51000,'Invalid provider interval.',1; + BEGIN TRANSACTION; + DECLARE @Lock int; + EXEC @Lock=sys.sp_getapplock @Resource='PlotDirector.Geography.ProviderGate',@LockMode='Exclusive',@LockOwner='Transaction',@LockTimeout=1000; + IF @Lock<0 BEGIN ROLLBACK; SELECT CAST(0 AS bit); RETURN; END; + DECLARE @Now datetime2=SYSUTCDATETIME(); + DELETE dbo.GeographicLookupLease WHERE LeaseUntil<@Now; + IF EXISTS(SELECT 1 FROM dbo.GeographicLookupLease WHERE RequestKey=@RequestKey) + OR EXISTS(SELECT 1 FROM dbo.GeographicProviderGate WHERE Provider=@Provider AND + (NextRequest>@Now OR LeaseUntil>@Now OR (RequestDay=CONVERT(date,@Now) AND DailyRequests>=200))) + BEGIN COMMIT; SELECT CAST(0 AS bit); RETURN; END; + UPDATE dbo.GeographicProviderGate SET NextRequest=DATEADD(millisecond,@IntervalMs,@Now),Lease=@Lease,LeaseUntil=DATEADD(minute,2,@Now), + DailyRequests=CASE WHEN RequestDay=CONVERT(date,@Now) THEN DailyRequests+1 ELSE 1 END,RequestDay=CONVERT(date,@Now) WHERE Provider=@Provider; + IF @@ROWCOUNT=0 INSERT dbo.GeographicProviderGate(Provider,NextRequest,Lease,LeaseUntil,RequestDay,DailyRequests) + VALUES(@Provider,DATEADD(millisecond,@IntervalMs,@Now),@Lease,DATEADD(minute,2,@Now),CONVERT(date,@Now),1); + INSERT dbo.GeographicLookupLease VALUES(@RequestKey,@Lease,DATEADD(minute,2,@Now)); + COMMIT; SELECT CAST(1 AS bit); +END; +GO +CREATE OR ALTER PROCEDURE dbo.Geography_ProviderRelease @Lease uniqueidentifier,@CooldownSeconds int=0 AS +BEGIN + SET NOCOUNT ON; + UPDATE dbo.GeographicProviderGate SET Lease=NULL,LeaseUntil=NULL, + NextRequest=CASE WHEN DATEADD(second,@CooldownSeconds,SYSUTCDATETIME())>NextRequest THEN DATEADD(second,@CooldownSeconds,SYSUTCDATETIME()) ELSE NextRequest END + WHERE Lease=@Lease; +END; +GO +CREATE OR ALTER PROCEDURE dbo.Geography_Retry @ProjectID int,@UserID int,@LocationID int,@Generation bigint,@ReplaceConfirmed bit=0 AS +BEGIN + SET NOCOUNT ON; SET XACT_ABORT ON; + EXEC dbo.StoryMap_Authorize @ProjectID,@UserID; + BEGIN TRANSACTION; + EXEC dbo.Geography_BatchPermit @UserID,1; + UPDATE g SET Status='Pending',JobState='Queued',Attempts=0,NextAttempt=SYSUTCDATETIME(),Lease=NULL,LeaseUntil=NULL, + Generation=Generation+1,Confirmed=0,CandidatesJson=NULL,MatchJson=NULL,Message=NULL,LastRetry=SYSUTCDATETIME() + FROM dbo.LocationGeography g JOIN dbo.Locations l ON l.LocationID=g.LocationID + WHERE l.ProjectID=@ProjectID AND l.IsArchived=0 AND g.LocationID=@LocationID AND g.Generation=@Generation AND g.IsExcluded=0 + AND (g.Confirmed=0 OR @ReplaceConfirmed=1) AND g.Status IN('Unresolved','Needs confirmation','Resolved'); + IF @@ROWCOUNT<>1 THROW 51000,'Retry is unavailable. Refresh the geographical status.',1; + COMMIT; +END; +GO +-- Re-enabling an excluded place waits for the next deliberate hierarchy request. +CREATE OR ALTER PROCEDURE dbo.Geography_Exclude @ProjectID int,@UserID int,@LocationID int,@Generation bigint,@IsExcluded bit AS +BEGIN + SET NOCOUNT ON; + EXEC dbo.StoryMap_Authorize @ProjectID,@UserID; + UPDATE g SET IsExcluded=@IsExcluded,Generation=Generation+1,Confirmed=0,MatchJson=NULL,CandidatesJson=NULL, + Status=CASE WHEN @IsExcluded=1 THEN 'Not eligible' ELSE 'Pending' END, + JobState=CASE WHEN @IsExcluded=1 THEN 'Done' ELSE 'Awaiting hierarchy request' END, + Message=CASE WHEN @IsExcluded=1 THEN 'Excluded by author' ELSE 'Arrange or request resolution of this hierarchy.' END, + Attempts=0,Lease=NULL,LeaseUntil=NULL + FROM dbo.LocationGeography g JOIN dbo.Locations l ON l.LocationID=g.LocationID + WHERE l.ProjectID=@ProjectID AND l.IsArchived=0 AND g.LocationID=@LocationID AND g.Generation=@Generation; + IF @@ROWCOUNT<>1 THROW 51000,'Location changed. Refresh before changing geographical lookup.',1; +END; +GO diff --git a/PlotLine/Sql/255_GeographyHierarchyStateWidth.sql b/PlotLine/Sql/255_GeographyHierarchyStateWidth.sql new file mode 100644 index 00000000..13f212c2 --- /dev/null +++ b/PlotLine/Sql/255_GeographyHierarchyStateWidth.sql @@ -0,0 +1,7 @@ +-- Repairs the state width discovered during Development qualification of 254. +-- Fresh installations: apply 253, this repair, then 254. Development: apply this repair and resume 254. +SET ANSI_NULLS ON; +SET QUOTED_IDENTIFIER ON; +GO +ALTER TABLE dbo.LocationGeography ALTER COLUMN JobState varchar(40) NOT NULL; +GO diff --git a/PlotLine/Sql/256_GeographyQueueIndex.sql b/PlotLine/Sql/256_GeographyQueueIndex.sql new file mode 100644 index 00000000..ecd152de --- /dev/null +++ b/PlotLine/Sql/256_GeographyQueueIndex.sql @@ -0,0 +1,8 @@ +SET ANSI_NULLS ON; +SET QUOTED_IDENTIFIER ON; +GO +IF NOT EXISTS(SELECT 1 FROM sys.indexes WHERE object_id=OBJECT_ID('dbo.LocationGeography') AND name='IX_LocationGeography_Queue') +CREATE INDEX IX_LocationGeography_Queue ON dbo.LocationGeography(JobState,NextAttempt) INCLUDE(LeaseUntil); +IF NOT EXISTS(SELECT 1 FROM sys.indexes WHERE object_id=OBJECT_ID('dbo.GeographicAuthorBatch') AND name='IX_GeographicAuthorBatch_Time') +CREATE INDEX IX_GeographicAuthorBatch_Time ON dbo.GeographicAuthorBatch(RequestedAt) INCLUDE(UserID); +GO diff --git a/PlotLine/Views/Locations/Details.cshtml b/PlotLine/Views/Locations/Details.cshtml index f375fe25..ac344e89 100644 --- a/PlotLine/Views/Locations/Details.cshtml +++ b/PlotLine/Views/Locations/Details.cshtml @@ -23,6 +23,12 @@ +
+
Geographical position: Loading…
+
+@Html.AntiForgeryToken() + +
diff --git a/PlotLine/Views/Locations/_LocationTree.cshtml b/PlotLine/Views/Locations/_LocationTree.cshtml index 14a29a2c..bde3b694 100644 --- a/PlotLine/Views/Locations/_LocationTree.cshtml +++ b/PlotLine/Views/Locations/_LocationTree.cshtml @@ -1,5 +1,9 @@ @model LocationListViewModel
+ @if (TempData["GeographyMessage"] is string geographyMessage) + { +

@geographyMessage

+ } @foreach (var location in Model.Locations) {
diff --git a/PlotLine/Views/Maps/Index.cshtml b/PlotLine/Views/Maps/Index.cshtml index 640fb2c9..8a202278 100644 --- a/PlotLine/Views/Maps/Index.cshtml +++ b/PlotLine/Views/Maps/Index.cshtml @@ -19,6 +19,7 @@
Map actions
+ @@ -65,6 +66,7 @@

New map

Starter layouts contain editable shapes only. You name and define your world.

Arrange from relationships

Preview an arrangement using directions and relative distances. Known distances never control spacing.

+

Position geographically

Preview shown on the map. Listed location markers will move; all other map objects retain their positions. North is up. Relative distances use one scale in both directions. Coincident places overlap.

Apply adds one Undo step. Use Save to persist the map. You can drag markers afterwards.

@Html.AntiForgeryToken() @@ -73,6 +75,7 @@ + diff --git a/PlotLine/wwwroot/js/location-geography.js b/PlotLine/wwwroot/js/location-geography.js new file mode 100644 index 00000000..61e736a7 --- /dev/null +++ b/PlotLine/wwwroot/js/location-geography.js @@ -0,0 +1,35 @@ +(() => { + 'use strict'; + const host=document.querySelector('[data-geography-location]'); + if(!host)return; + const projectId=host.dataset.projectId,locationId=host.dataset.geographyLocation; + const status=host.querySelector('[data-geography-status]'),body=host.querySelector('[data-geography-body]'); + const token=document.querySelector('input[name="__RequestVerificationToken"]')?.value; + async function change(action,data){ + const response=await fetch('/Geography/'+action,{method:'POST',headers:{RequestVerificationToken:token},body:new URLSearchParams({projectId,locationId,...data})}); + const result=await response.json().catch(()=>null); + if(!response.ok||response.redirected)throw Error(result?.message||'Could not update geographical match.'); + await load(); + if(result?.message)status.textContent=result.message; + } + function button(label,action){const b=document.createElement('button');b.type='button';b.className='btn btn-outline-secondary btn-sm';b.textContent=label;b.onclick=async()=>{b.disabled=true;try{await action();}catch(e){status.textContent=e.message;b.disabled=false;}};body.append(b);} + function line(text){const p=document.createElement('p');p.textContent=text;body.append(p);} + async function load(){ + const response=await fetch('/Geography/State?'+new URLSearchParams({projectId,locationId}),{cache:'no-store'}); + if(!response.ok||response.redirected)throw Error('Geographical status unavailable.'); + const rows=await response.json(),state=rows[0]; + status.textContent=state?.status||'Pending';body.replaceChildren(); + if(!state){line('Awaiting geographical classification.');return;} + if(state.message)line(state.message); + if(!state.isExcluded)button('Resolve this arranged hierarchy (up to 20 places)',()=>change('Hierarchy',{})); + button(state.isExcluded?'Enable automatic geographical lookup':'Exclude automatic geographical lookup',()=>change('Exclude',{generation:state.generation,isExcluded:!state.isExcluded})); + if(state.matchJson){const m=JSON.parse(state.matchJson);line(`${m.Name} · ${m.AdministrativeNames.join(', ')} · ${m.CountryCode}`);line(`${m.Latitude}, ${m.Longitude}`);line(m.Attribution);} + if(state.status==='Needs confirmation'){ + const candidates=JSON.parse(state.candidatesJson||'[]'); + candidates.forEach((m,index)=>button(`${m.Name} · ${m.AdministrativeNames.join(', ')} · ${m.CountryCode} (${m.Latitude}, ${m.Longitude}) — ${m.Attribution}`,()=>change('Confirm',{generation:state.generation,candidateIndex:index}))); + } + if(state.status==='Resolved')button('Change geographical match',()=>change('Retry',{generation:state.generation,replaceConfirmed:true})); + if(['Unresolved','Needs confirmation'].includes(state.status))button('Retry geographical lookup',()=>change('Retry',{generation:state.generation})); + } + load().catch(e=>status.textContent=e.message); +})(); diff --git a/PlotLine/wwwroot/js/maps-geography-engine.js b/PlotLine/wwwroot/js/maps-geography-engine.js new file mode 100644 index 00000000..b821f1ce --- /dev/null +++ b/PlotLine/wwwroot/js/maps-geography-engine.js @@ -0,0 +1,37 @@ +/* Spherical azimuthal equidistant projection, north up at the centre. + Refuse large extents: no flat projection preserves all worldwide distances/directions. */ +(function(root){ + 'use strict'; + function position(features,states,bounds){ + const rad=Math.PI/180,R=6371008.8,wrap=a=>Math.atan2(Math.sin(a),Math.cos(a)); + if(![bounds.x,bounds.y,bounds.w,bounds.h].every(Number.isFinite)||bounds.w<=0||bounds.h<=0)throw Error('Map area is unavailable.'); + const skipped=[],points=[],output=JSON.parse(JSON.stringify(features)); + for(const f of output){ + if(!f.locationID)continue; + const state=states.find(s=>s.locationID===f.locationID); + let match=null;try{match=JSON.parse(state?.matchJson||'null');}catch{} + const reason=f.isLocked?'Locked':f.geometryClass!=='Marker'?'Only location markers can be positioned':state?.status!=='Resolved'?(state?.status||'Pending'):!match?'Unresolved':null; + if(reason){skipped.push({name:f.name,reason});continue;} + if(!Number.isFinite(match.Latitude)||!Number.isFinite(match.Longitude)||Math.abs(match.Latitude)>90||Math.abs(match.Longitude)>180){skipped.push({name:f.name,reason:'Invalid geographical coordinates'});continue;} + points.push({feature:f,lat:match.Latitude*rad,lon:match.Longitude*rad,attribution:match.Attribution}); + } + if(!points.length)return {features:output,positioned:[],skipped}; + const sin=points.reduce((s,p)=>s+Math.sin(p.lon),0),cos=points.reduce((s,p)=>s+Math.cos(p.lon),0); + if(Math.hypot(sin,cos)<1e-9)throw Error('These locations span too much of the world. Use separate regional maps.'); + const lon0=Math.atan2(sin,cos),lat0=points.reduce((s,p)=>s+p.lat,0)/points.length; + for(const p of points){ + const dl=wrap(p.lon-lon0),cosc=Math.max(-1,Math.min(1,Math.sin(lat0)*Math.sin(p.lat)+Math.cos(lat0)*Math.cos(p.lat)*Math.cos(dl))),c=Math.acos(cosc); + if(c>15*rad)throw Error('These locations cover too large an area for reliable local positioning. Use separate regional maps (within about 1,650 km of their centre).'); + const k=c<1e-10?1:c/Math.sin(c); + p.x=R*k*Math.cos(p.lat)*Math.sin(dl); + p.y=-R*k*(Math.cos(lat0)*Math.sin(p.lat)-Math.sin(lat0)*Math.cos(p.lat)*Math.cos(dl)); + } + const xs=points.map(p=>p.x),ys=points.map(p=>p.y),left=Math.min(...xs),right=Math.max(...xs),top=Math.min(...ys),bottom=Math.max(...ys); + const pad=Math.min(80,bounds.w*.12,bounds.h*.12),w=bounds.w-2*pad,h=bounds.h-2*pad; + const scale=Math.min(right-left>1e-6?w/(right-left):Infinity,bottom-top>1e-6?h/(bottom-top):Infinity); + for(const p of points){p.feature.x=bounds.x+bounds.w/2+(p.x-(left+right)/2)*(Number.isFinite(scale)?scale:0);p.feature.y=bounds.y+bounds.h/2+(p.y-(top+bottom)/2)*(Number.isFinite(scale)?scale:0);p.feature.isPlaced=true;} + return {features:output,positioned:points.map(p=>({name:p.feature.name,attribution:p.attribution})),skipped}; + } + root.PlotDirectorGeography={position}; + if(typeof module!=='undefined')module.exports={position}; +})(typeof window!=='undefined'?window:globalThis); diff --git a/PlotLine/wwwroot/js/maps-workspace.js b/PlotLine/wwwroot/js/maps-workspace.js index 20443d72..a72a52ce 100644 --- a/PlotLine/wwwroot/js/maps-workspace.js +++ b/PlotLine/wwwroot/js/maps-workspace.js @@ -215,7 +215,7 @@ function previewArrange(){if(!doc||mode!=='create')return;preview=E.arrange(doc.features,doc.relationships,$('mapsOnlyNew').checked);$('mapsArrangeWarnings').textContent=preview.warnings.length?'Some intentions cannot all be represented exactly: '+preview.warnings.slice(0,5).join('; ')+'. You can still apply and adjust manually.':'Preview ready. Locked pieces and established anchors stay in place.';render();updateButtons();} // Delegated interaction continues to work after the PWA shell moves controls into its ribbon. document.addEventListener('click',e=>{ - const modeButton=e.target.closest('button[data-mode]');if(modeButton){if(preview)return;window.PlotDirectorMapAppearance?.completeAdjustment();if(modeButton.dataset.mode==='story'&&dirty){requestLeave(()=>modeButton.click());return;}mode=modeButton.dataset.mode;app.dataset.mode=mode;for(const id of ['mapsSave','mapsUndo','mapsRedo','mapsArrange'])$(id).hidden=mode!=='create';document.querySelectorAll('button[data-mode]').forEach(b=>b.setAttribute('aria-pressed',String(b===modeButton)));$('mapsStory').hidden=mode!=='story';pending=null;svg.classList.remove('placing');render();details();updateButtons();window.dispatchEvent(new CustomEvent('pd-map-mode',{detail:mode}));return;} + const modeButton=e.target.closest('button[data-mode]');if(modeButton){if(preview)return;window.PlotDirectorMapAppearance?.completeAdjustment();if(modeButton.dataset.mode==='story'&&dirty){requestLeave(()=>modeButton.click());return;}mode=modeButton.dataset.mode;app.dataset.mode=mode;for(const id of ['mapsSave','mapsUndo','mapsRedo','mapsArrange','mapsGeographic'])$(id).hidden=mode!=='create';document.querySelectorAll('button[data-mode]').forEach(b=>b.setAttribute('aria-pressed',String(b===modeButton)));$('mapsStory').hidden=mode!=='story';pending=null;svg.classList.remove('placing');render();details();updateButtons();window.dispatchEvent(new CustomEvent('pd-map-mode',{detail:mode}));return;} const asset=e.target.closest('[data-asset]'),loc=e.target.closest('[data-location]');if(asset||loc){pending={type:asset?.dataset.asset||'Settlement',locationID:loc?Number(loc.dataset.location):null};svg.classList.add('placing');status('Click the map to place '+(asset?.dataset.asset||'this Location')+'. Escape cancels.');return;} const actionButton=e.target.closest('[data-action]');if(actionButton)action(actionButton.dataset.action); const rel=e.target.closest('[data-edit-rel]');if(rel)relationEditor(rel.dataset.editRel); @@ -281,6 +281,7 @@ window.addEventListener('pd-workspace-message',e=>{if(e.detail.type==='map-saved'&&e.detail.payload.mapID===doc?.map.mapID&&e.detail.payload.revision>doc.map.revision)status('This map was saved in another window. Reload before editing further. Your current changes remain here.',true);}); document.addEventListener('keydown',e=>{ if(e.defaultPrevented||document.querySelector('.modal.show'))return; + if(e.key==='Escape'&&$('mapsGeographicDialog').open){e.preventDefault();cancelGeographic();return;} if((e.ctrlKey||e.metaKey)&&e.key.toLowerCase()==='s'&&!e.target.closest('dialog')){e.preventDefault();if(e.target.matches('[data-field]'))e.target.dispatchEvent(new Event('change',{bubbles:true}));save();return;} if(e.target.matches('input,textarea,select')||e.target.isContentEditable)return; if(e.key==='Escape'){if(!drag&&!pending&&app.classList.contains('maps-maximised'))return;e.preventDefault();svg.classList.remove('manipulating');if(drag&&drag.kind!=='pan'){doc=JSON.parse(history.pop());future=drag.redo;drag=null;}pending=null;selected.clear();shapeEdit=false;svg.classList.remove('placing');render();details();return;} @@ -307,6 +308,34 @@ $('mapsRename').onclick=async()=>{if(!doc)return;const answer=await window.PlotDirectorDialogs.choose({title:'Rename map',message:'Choose a name for this map.',input:{label:'Map name',value:doc.map.name},actions:[{label:'Rename',value:'rename',className:'btn-primary'},{label:'Cancel',value:'cancel'}]});if(answer?.value==='rename'&&answer.input.trim())safeEdit(()=>{doc.map.name=answer.input.trim().slice(0,200);crumbs();});}; $('mapsDuplicate').onclick=async()=>{if(!doc||busy||preview)return;if(dirty){requestLeave(()=>$('mapsDuplicate').click());return;}try{const result=await request('Create',{ProjectID:boot.projectId,Name:doc.map.name+' copy',Kind:doc.map.kind,...(doc.map.parentMapID?{ParentMapID:doc.map.parentMapID}:{})});const d=clone(doc);d.map.mapID=result.id;d.map.name+=' copy';d.map.revision=0;d.features.forEach(f=>f.createLocation=false);await request('Save',d,true);dirty=false;location.href=url(result.id);}catch(error){status(error.message,true);}}; $('mapsDelete').onclick=async()=>{if(!doc||busy||preview)return;const answer=await window.PlotDirectorDialogs.choose({title:'Delete map?',message:`Delete “${doc.map.name}”? Detailed child maps will become top-level maps. Story Locations, Floor Plans and project reference images are kept.`,actions:[{label:'Delete map',value:'delete',className:'btn-danger'},{label:'Cancel',value:'cancel'}]});if(answer?.value!=='delete')return;try{await request('Delete',{projectId:boot.projectId,id:doc.map.mapID,revision:doc.map.revision});dirty=false;location.href=url();}catch(error){status(error.message,true);}}; + $('mapsGeographic').onclick=async()=>{ + if(!doc||busy||preview||drag||mode!=='create'||window.PlotDirectorMapAppearance?.adjusting)return; + busy=true;updateButtons();const before=snapshot(); + try{ + const response=await fetch('/Geography/State?projectId='+boot.projectId,{cache:'no-store'}); + if(!response.ok||response.redirected)throw Error('Could not load geographical resolutions. Your map is unchanged.'); + const states=await response.json(); + if(snapshot()!==before)throw Error('The map changed while loading. Try positioning again.'); + const result=window.PlotDirectorGeography.position(doc.features,states,view); + const summary=$('mapsGeographicSummary');summary.replaceChildren(); + const add=text=>{const p=document.createElement('p');p.textContent=text;summary.append(p);}; + add(result.positioned.length+' location markers will move.'); + for(const item of result.positioned)add('Move: '+item.name); + for(const item of result.skipped)add('Keep: '+item.name+' — '+item.reason); + for(const attribution of new Set(result.positioned.map(p=>p.attribution).filter(Boolean)))add(attribution); + preview=result;render();$('mapsGeographicApply').disabled=!result.positioned.length; + $('mapsGeographicDialog').showModal(); + }catch(error){status(error.message,true);}finally{busy=false;updateButtons();} + }; + function cancelGeographic(){preview=null;$('mapsGeographicDialog').close();render();updateButtons();} + $('mapsGeographicCancel').onclick=cancelGeographic; + $('mapsGeographicDialog').oncancel=e=>{e.preventDefault();cancelGeographic();}; + $('mapsGeographicApply').onclick=()=>{ + if(!preview?.positioned?.length||busy||mode!=='create')return; + const result=preview;preview=null;checkpoint();doc.features=result.features; + changed('Geographical positions applied. Save to persist; Undo restores previous positions.'); + $('mapsGeographicDialog').close();render();details();updateButtons(); + }; $('mapsArrange').onclick=()=>{if(!doc||busy||mode!=='create')return;previewArrange();$('mapsArrangeDialog').showModal();};$('mapsOnlyNew').onchange=previewArrange; function cancelArrange(){preview=null;$('mapsArrangeDialog').close();render();updateButtons();} $('mapsArrangeCancel').onclick=cancelArrange;$('mapsArrangeDialog').oncancel=e=>{e.preventDefault();cancelArrange();};