{
 "code": "LV",
 "alpha3": "LVA",
 "numeric": "428",
 "flag": "🇱🇻",
 "name": "Latvia",
 "official": "Republic of Latvia",
 "native": [
  "Latvija"
 ],
 "independent": true,
 "status": "officially-assigned",
 "unMember": true,
 "region": "Europe",
 "subregion": "Northern Europe",
 "capital": [
  "Riga"
 ],
 "coords": [
  57,
  25
 ],
 "area": 64559,
 "landlocked": false,
 "borders": [
  "BY",
  "EE",
  "LT",
  "RU"
 ],
 "demonym": "Latvian",
 "tld": [
  ".lv"
 ],
 "cioc": "LAT",
 "population": 1801250,
 "gdp": 71150000000,
 "literacy": 99.8,
 "groups": [
  "154",
  "EU",
  "EZ",
  "UN"
 ],
 "languages": [
  {
   "code": "lv",
   "name": "Latvian",
   "percent": 61,
   "writing": null,
   "status": "official"
  },
  {
   "code": "en",
   "name": "English",
   "percent": 46,
   "writing": null,
   "status": null
  },
  {
   "code": "ru",
   "name": "Russian",
   "percent": 38,
   "writing": null,
   "status": null
  },
  {
   "code": "ltg",
   "name": "Latgalian",
   "percent": 8.9,
   "writing": null,
   "status": null
  }
 ],
 "locales": [
  "en-LV",
  "ltg-LV",
  "lv-LV"
 ],
 "currencies": [
  "EUR"
 ],
 "formerCurrencies": [
  "LVL",
  "LVR",
  "SUR"
 ],
 "timezones": [
  "Europe/Riga"
 ],
 "week": {
  "firstDay": "mon",
  "weekendStart": "sat",
  "weekendEnd": "sun",
  "minDays": 1
 },
 "hourCycle": {
  "preferred": "H",
  "allowed": [
   "H",
   "hB",
   "hb",
   "h"
  ]
 },
 "calendars": [
  "gregorian"
 ],
 "measurement": {
  "system": "metric",
  "temperature": null,
  "paper": "A4"
 },
 "callingCodes": [
  "+371"
 ],
 "phone": {
  "callingCode": "371",
  "mainForCode": false,
  "intlPrefix": "00",
  "preferredIntlPrefix": "",
  "nationalPrefix": "",
  "leadingDigits": "",
  "lengths": [
   8
  ],
  "types": {
   "fixedLine": {
    "pattern": "6\\d{7}",
    "example": "63123456",
    "lengths": [
     "8"
    ],
    "national": "63 123 456",
    "international": "+371 63 123 456",
    "e164": "+37163123456",
    "layout": "XX XXX XXX"
   },
   "mobile": {
    "pattern": "2333[0-8]\\d{3}|2(?:[0-24-9]\\d\\d|3(?:0[07]|[14-9]\\d|2[02-9]|3[0-24-9]))\\d{4}",
    "example": "21234567",
    "lengths": [
     "8"
    ],
    "national": "21 234 567",
    "international": "+371 21 234 567",
    "e164": "+37121234567",
    "layout": "XX XXX XXX"
   },
   "tollFree": {
    "pattern": "80\\d{6}",
    "example": "80123456",
    "lengths": [
     "8"
    ],
    "national": "80 123 456",
    "international": "+371 80 123 456",
    "e164": "+37180123456",
    "layout": "XX XXX XXX"
   },
   "premiumRate": {
    "pattern": "90\\d{6}",
    "example": "90123456",
    "lengths": [
     "8"
    ],
    "national": "90 123 456",
    "international": "+371 90 123 456",
    "e164": "+37190123456",
    "layout": "XX XXX XXX"
   },
   "sharedCost": {
    "pattern": "81\\d{6}",
    "example": "81123456",
    "lengths": [
     "8"
    ],
    "national": "81 123 456",
    "international": "+371 81 123 456",
    "e164": "+37181123456",
    "layout": "XX XXX XXX"
   }
  },
  "formats": [
   {
    "pattern": "(\\d{2})(\\d{3})(\\d{3})",
    "leading": [
     "[2679]|8[01]"
    ],
    "format": "$1 $2 $3",
    "prefixRule": ""
   }
  ],
  "emergency": {
   "pattern": "0[1-3]|11[023]",
   "example": "1",
   "lengths": "2,3"
  }
 },
 "address": {
  "format": "%N%n%O%n%A%n%S%n%C, %Z",
  "lines": [
   "{Name}",
   "{Organization}",
   "{Street address}",
   "{State/province}",
   "{City}, {Postal code}"
  ],
  "required": [
   "Street address",
   "City",
   "Postal code"
  ],
  "postalRegex": "LV-\\d{4}",
  "postalExamples": [
   "LV-1073",
   "LV-1000"
  ],
  "postUrl": "https://pasts.lv/lv/kategorija/pasta_nodalas/"
 }
}