countries 3.0.1 → 4.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (614) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/tests.yml +37 -0
  3. data/.gitignore +1 -0
  4. data/CHANGELOG.md +104 -1
  5. data/Gemfile +5 -0
  6. data/README.markdown +51 -35
  7. data/Rakefile +5 -3
  8. data/countries.gemspec +10 -5
  9. data/lib/countries/cache/countries.json +1 -1
  10. data/lib/countries/cache/locales/ab.json +1 -1
  11. data/lib/countries/cache/locales/af.json +1 -1
  12. data/lib/countries/cache/locales/ak.json +1 -1
  13. data/lib/countries/cache/locales/am.json +1 -1
  14. data/lib/countries/cache/locales/an.json +1 -1
  15. data/lib/countries/cache/locales/ar.json +1 -1
  16. data/lib/countries/cache/locales/as.json +1 -1
  17. data/lib/countries/cache/locales/ay.json +1 -1
  18. data/lib/countries/cache/locales/az.json +1 -1
  19. data/lib/countries/cache/locales/ba.json +1 -1
  20. data/lib/countries/cache/locales/be.json +1 -1
  21. data/lib/countries/cache/locales/bg.json +1 -1
  22. data/lib/countries/cache/locales/bi.json +1 -1
  23. data/lib/countries/cache/locales/bn-in.json +1 -1
  24. data/lib/countries/cache/locales/bn.json +1 -1
  25. data/lib/countries/cache/locales/br.json +1 -1
  26. data/lib/countries/cache/locales/bs.json +1 -1
  27. data/lib/countries/cache/locales/ca.json +1 -1
  28. data/lib/countries/cache/locales/ce.json +1 -1
  29. data/lib/countries/cache/locales/ch.json +1 -1
  30. data/lib/countries/cache/locales/cs.json +1 -1
  31. data/lib/countries/cache/locales/cv.json +1 -1
  32. data/lib/countries/cache/locales/cy.json +1 -1
  33. data/lib/countries/cache/locales/da.json +1 -1
  34. data/lib/countries/cache/locales/de.json +1 -1
  35. data/lib/countries/cache/locales/dv.json +1 -1
  36. data/lib/countries/cache/locales/dz.json +1 -1
  37. data/lib/countries/cache/locales/ee.json +1 -1
  38. data/lib/countries/cache/locales/el.json +1 -1
  39. data/lib/countries/cache/locales/en.json +1 -1
  40. data/lib/countries/cache/locales/eo.json +1 -1
  41. data/lib/countries/cache/locales/es.json +1 -1
  42. data/lib/countries/cache/locales/et.json +1 -1
  43. data/lib/countries/cache/locales/eu.json +1 -1
  44. data/lib/countries/cache/locales/fa.json +1 -1
  45. data/lib/countries/cache/locales/ff.json +1 -1
  46. data/lib/countries/cache/locales/fi.json +1 -1
  47. data/lib/countries/cache/locales/fo.json +1 -1
  48. data/lib/countries/cache/locales/fr.json +1 -1
  49. data/lib/countries/cache/locales/fy.json +1 -1
  50. data/lib/countries/cache/locales/ga.json +1 -1
  51. data/lib/countries/cache/locales/gl.json +1 -1
  52. data/lib/countries/cache/locales/gn.json +1 -1
  53. data/lib/countries/cache/locales/gu.json +1 -1
  54. data/lib/countries/cache/locales/gv.json +1 -1
  55. data/lib/countries/cache/locales/ha.json +1 -1
  56. data/lib/countries/cache/locales/he.json +1 -1
  57. data/lib/countries/cache/locales/hi.json +1 -1
  58. data/lib/countries/cache/locales/hr.json +1 -1
  59. data/lib/countries/cache/locales/ht.json +1 -1
  60. data/lib/countries/cache/locales/hu.json +1 -1
  61. data/lib/countries/cache/locales/hy.json +1 -1
  62. data/lib/countries/cache/locales/ia.json +1 -1
  63. data/lib/countries/cache/locales/id.json +1 -1
  64. data/lib/countries/cache/locales/io.json +1 -1
  65. data/lib/countries/cache/locales/is.json +1 -1
  66. data/lib/countries/cache/locales/it.json +1 -1
  67. data/lib/countries/cache/locales/iu.json +1 -1
  68. data/lib/countries/cache/locales/ja.json +1 -1
  69. data/lib/countries/cache/locales/ka.json +1 -1
  70. data/lib/countries/cache/locales/ki.json +1 -1
  71. data/lib/countries/cache/locales/kk.json +1 -1
  72. data/lib/countries/cache/locales/kl.json +1 -1
  73. data/lib/countries/cache/locales/km.json +1 -1
  74. data/lib/countries/cache/locales/kn.json +1 -1
  75. data/lib/countries/cache/locales/ko.json +1 -1
  76. data/lib/countries/cache/locales/ku.json +1 -1
  77. data/lib/countries/cache/locales/kv.json +1 -1
  78. data/lib/countries/cache/locales/kw.json +1 -1
  79. data/lib/countries/cache/locales/ky.json +1 -1
  80. data/lib/countries/cache/locales/lo.json +1 -1
  81. data/lib/countries/cache/locales/lt.json +1 -1
  82. data/lib/countries/cache/locales/lv.json +1 -1
  83. data/lib/countries/cache/locales/mi.json +1 -1
  84. data/lib/countries/cache/locales/mk.json +1 -1
  85. data/lib/countries/cache/locales/ml.json +1 -1
  86. data/lib/countries/cache/locales/mn.json +1 -1
  87. data/lib/countries/cache/locales/mr.json +1 -1
  88. data/lib/countries/cache/locales/ms.json +1 -1
  89. data/lib/countries/cache/locales/mt.json +1 -1
  90. data/lib/countries/cache/locales/my.json +1 -1
  91. data/lib/countries/cache/locales/na.json +1 -1
  92. data/lib/countries/cache/locales/nb.json +1 -1
  93. data/lib/countries/cache/locales/ne.json +1 -1
  94. data/lib/countries/cache/locales/nl.json +1 -1
  95. data/lib/countries/cache/locales/nn.json +1 -1
  96. data/lib/countries/cache/locales/nv.json +1 -1
  97. data/lib/countries/cache/locales/oc.json +1 -1
  98. data/lib/countries/cache/locales/or.json +1 -1
  99. data/lib/countries/cache/locales/pa.json +1 -1
  100. data/lib/countries/cache/locales/pi.json +1 -1
  101. data/lib/countries/cache/locales/pl.json +1 -1
  102. data/lib/countries/cache/locales/ps.json +1 -1
  103. data/lib/countries/cache/locales/pt-br.json +1 -1
  104. data/lib/countries/cache/locales/pt.json +1 -1
  105. data/lib/countries/cache/locales/ro.json +1 -1
  106. data/lib/countries/cache/locales/ru.json +1 -1
  107. data/lib/countries/cache/locales/rw.json +1 -1
  108. data/lib/countries/cache/locales/sc.json +1 -1
  109. data/lib/countries/cache/locales/sd.json +1 -1
  110. data/lib/countries/cache/locales/si.json +1 -1
  111. data/lib/countries/cache/locales/sk.json +1 -1
  112. data/lib/countries/cache/locales/sl.json +1 -1
  113. data/lib/countries/cache/locales/so.json +1 -1
  114. data/lib/countries/cache/locales/sq.json +1 -1
  115. data/lib/countries/cache/locales/sr.json +1 -1
  116. data/lib/countries/cache/locales/sv.json +1 -1
  117. data/lib/countries/cache/locales/sw.json +1 -1
  118. data/lib/countries/cache/locales/ta.json +1 -1
  119. data/lib/countries/cache/locales/te.json +1 -1
  120. data/lib/countries/cache/locales/tg.json +1 -1
  121. data/lib/countries/cache/locales/th.json +1 -1
  122. data/lib/countries/cache/locales/ti.json +1 -1
  123. data/lib/countries/cache/locales/tk.json +1 -1
  124. data/lib/countries/cache/locales/tl.json +1 -1
  125. data/lib/countries/cache/locales/tr.json +1 -1
  126. data/lib/countries/cache/locales/tt.json +1 -1
  127. data/lib/countries/cache/locales/ug.json +1 -1
  128. data/lib/countries/cache/locales/uk.json +1 -1
  129. data/lib/countries/cache/locales/ur.json +1 -1
  130. data/lib/countries/cache/locales/uz.json +1 -1
  131. data/lib/countries/cache/locales/ve.json +1 -1
  132. data/lib/countries/cache/locales/vi.json +1 -1
  133. data/lib/countries/cache/locales/wa.json +1 -1
  134. data/lib/countries/cache/locales/wo.json +1 -1
  135. data/lib/countries/cache/locales/xh.json +1 -1
  136. data/lib/countries/cache/locales/yo.json +1 -1
  137. data/lib/countries/cache/locales/zh-cn.json +1 -1
  138. data/lib/countries/cache/locales/zh-hk.json +1 -1
  139. data/lib/countries/cache/locales/zh-tw.json +1 -1
  140. data/lib/countries/cache/locales/zh.json +1 -1
  141. data/lib/countries/cache/locales/zu.json +1 -1
  142. data/lib/countries/country/class_methods.rb +18 -4
  143. data/lib/countries/country.rb +5 -0
  144. data/lib/countries/data/countries/AD.yaml +1 -0
  145. data/lib/countries/data/countries/AF.yaml +1 -0
  146. data/lib/countries/data/countries/AG.yaml +1 -1
  147. data/lib/countries/data/countries/AI.yaml +1 -0
  148. data/lib/countries/data/countries/AL.yaml +4 -3
  149. data/lib/countries/data/countries/AM.yaml +3 -2
  150. data/lib/countries/data/countries/AO.yaml +10 -10
  151. data/lib/countries/data/countries/AQ.yaml +3 -3
  152. data/lib/countries/data/countries/AR.yaml +1 -0
  153. data/lib/countries/data/countries/AS.yaml +3 -2
  154. data/lib/countries/data/countries/AT.yaml +4 -3
  155. data/lib/countries/data/countries/AU.yaml +1 -0
  156. data/lib/countries/data/countries/AX.yaml +1 -0
  157. data/lib/countries/data/countries/AZ.yaml +1 -0
  158. data/lib/countries/data/countries/BA.yaml +5 -4
  159. data/lib/countries/data/countries/BB.yaml +1 -0
  160. data/lib/countries/data/countries/BD.yaml +3 -2
  161. data/lib/countries/data/countries/BE.yaml +2 -1
  162. data/lib/countries/data/countries/BF.yaml +8 -8
  163. data/lib/countries/data/countries/BG.yaml +5 -4
  164. data/lib/countries/data/countries/BH.yaml +6 -5
  165. data/lib/countries/data/countries/BI.yaml +6 -6
  166. data/lib/countries/data/countries/BJ.yaml +2 -2
  167. data/lib/countries/data/countries/BL.yaml +1 -0
  168. data/lib/countries/data/countries/BM.yaml +1 -0
  169. data/lib/countries/data/countries/BN.yaml +2 -1
  170. data/lib/countries/data/countries/BO.yaml +1 -1
  171. data/lib/countries/data/countries/BQ.yaml +1 -1
  172. data/lib/countries/data/countries/BR.yaml +7 -6
  173. data/lib/countries/data/countries/BT.yaml +7 -6
  174. data/lib/countries/data/countries/BV.yaml +11 -11
  175. data/lib/countries/data/countries/BW.yaml +4 -4
  176. data/lib/countries/data/countries/BY.yaml +1 -0
  177. data/lib/countries/data/countries/BZ.yaml +1 -1
  178. data/lib/countries/data/countries/CA.yaml +1 -0
  179. data/lib/countries/data/countries/CC.yaml +3 -2
  180. data/lib/countries/data/countries/CF.yaml +2 -2
  181. data/lib/countries/data/countries/CG.yaml +2 -2
  182. data/lib/countries/data/countries/CH.yaml +4 -3
  183. data/lib/countries/data/countries/CI.yaml +2 -2
  184. data/lib/countries/data/countries/CL.yaml +8 -2
  185. data/lib/countries/data/countries/CN.yaml +5 -4
  186. data/lib/countries/data/countries/CO.yaml +5 -4
  187. data/lib/countries/data/countries/CR.yaml +3 -2
  188. data/lib/countries/data/countries/CU.yaml +1 -0
  189. data/lib/countries/data/countries/CV.yaml +3 -2
  190. data/lib/countries/data/countries/CW.yaml +1 -1
  191. data/lib/countries/data/countries/CX.yaml +1 -0
  192. data/lib/countries/data/countries/CY.yaml +3 -2
  193. data/lib/countries/data/countries/CZ.yaml +4 -3
  194. data/lib/countries/data/countries/DE.yaml +3 -2
  195. data/lib/countries/data/countries/DJ.yaml +6 -6
  196. data/lib/countries/data/countries/DK.yaml +3 -2
  197. data/lib/countries/data/countries/DO.yaml +1 -0
  198. data/lib/countries/data/countries/DZ.yaml +7 -6
  199. data/lib/countries/data/countries/EC.yaml +5 -4
  200. data/lib/countries/data/countries/EE.yaml +4 -3
  201. data/lib/countries/data/countries/EG.yaml +1 -0
  202. data/lib/countries/data/countries/EH.yaml +1 -0
  203. data/lib/countries/data/countries/ES.yaml +2 -1
  204. data/lib/countries/data/countries/ET.yaml +1 -0
  205. data/lib/countries/data/countries/FI.yaml +6 -5
  206. data/lib/countries/data/countries/FK.yaml +3 -2
  207. data/lib/countries/data/countries/FM.yaml +3 -2
  208. data/lib/countries/data/countries/FO.yaml +6 -5
  209. data/lib/countries/data/countries/FR.yaml +4 -3
  210. data/lib/countries/data/countries/GA.yaml +1 -1
  211. data/lib/countries/data/countries/GB.yaml +4 -0
  212. data/lib/countries/data/countries/GE.yaml +5 -4
  213. data/lib/countries/data/countries/GF.yaml +1 -0
  214. data/lib/countries/data/countries/GG.yaml +11 -10
  215. data/lib/countries/data/countries/GH.yaml +4 -4
  216. data/lib/countries/data/countries/GI.yaml +3 -2
  217. data/lib/countries/data/countries/GL.yaml +8 -7
  218. data/lib/countries/data/countries/GM.yaml +4 -4
  219. data/lib/countries/data/countries/GN.yaml +4 -3
  220. data/lib/countries/data/countries/GP.yaml +1 -0
  221. data/lib/countries/data/countries/GR.yaml +3 -2
  222. data/lib/countries/data/countries/GS.yaml +3 -2
  223. data/lib/countries/data/countries/GT.yaml +3 -2
  224. data/lib/countries/data/countries/GU.yaml +1 -0
  225. data/lib/countries/data/countries/GW.yaml +1 -0
  226. data/lib/countries/data/countries/HK.yaml +4 -4
  227. data/lib/countries/data/countries/HM.yaml +2 -1
  228. data/lib/countries/data/countries/HN.yaml +3 -2
  229. data/lib/countries/data/countries/HR.yaml +4 -3
  230. data/lib/countries/data/countries/HT.yaml +1 -0
  231. data/lib/countries/data/countries/HU.yaml +8 -7
  232. data/lib/countries/data/countries/ID.yaml +1 -0
  233. data/lib/countries/data/countries/IE.yaml +12 -11
  234. data/lib/countries/data/countries/IL.yaml +1 -0
  235. data/lib/countries/data/countries/IM.yaml +9 -8
  236. data/lib/countries/data/countries/IN.yaml +3 -2
  237. data/lib/countries/data/countries/IO.yaml +4 -3
  238. data/lib/countries/data/countries/IQ.yaml +3 -2
  239. data/lib/countries/data/countries/IR.yaml +1 -0
  240. data/lib/countries/data/countries/IS.yaml +6 -5
  241. data/lib/countries/data/countries/IT.yaml +2 -1
  242. data/lib/countries/data/countries/JE.yaml +1 -0
  243. data/lib/countries/data/countries/JO.yaml +3 -2
  244. data/lib/countries/data/countries/JP.yaml +1 -0
  245. data/lib/countries/data/countries/KE.yaml +4 -3
  246. data/lib/countries/data/countries/KG.yaml +3 -2
  247. data/lib/countries/data/countries/KH.yaml +1 -0
  248. data/lib/countries/data/countries/KI.yaml +6 -6
  249. data/lib/countries/data/countries/KP.yaml +3 -2
  250. data/lib/countries/data/countries/KR.yaml +1 -0
  251. data/lib/countries/data/countries/KW.yaml +1 -0
  252. data/lib/countries/data/countries/KY.yaml +1 -0
  253. data/lib/countries/data/countries/KZ.yaml +3 -2
  254. data/lib/countries/data/countries/LA.yaml +7 -6
  255. data/lib/countries/data/countries/LB.yaml +1 -0
  256. data/lib/countries/data/countries/LI.yaml +1 -0
  257. data/lib/countries/data/countries/LK.yaml +1 -0
  258. data/lib/countries/data/countries/LR.yaml +1 -0
  259. data/lib/countries/data/countries/LS.yaml +1 -0
  260. data/lib/countries/data/countries/LT.yaml +7 -6
  261. data/lib/countries/data/countries/LU.yaml +1 -0
  262. data/lib/countries/data/countries/LV.yaml +11 -4
  263. data/lib/countries/data/countries/LY.yaml +1 -1
  264. data/lib/countries/data/countries/MA.yaml +5 -4
  265. data/lib/countries/data/countries/MC.yaml +1 -0
  266. data/lib/countries/data/countries/MD.yaml +9 -8
  267. data/lib/countries/data/countries/ME.yaml +3 -2
  268. data/lib/countries/data/countries/MF.yaml +1 -0
  269. data/lib/countries/data/countries/MG.yaml +1 -0
  270. data/lib/countries/data/countries/MH.yaml +3 -2
  271. data/lib/countries/data/countries/MK.yaml +3 -2
  272. data/lib/countries/data/countries/ML.yaml +4 -4
  273. data/lib/countries/data/countries/MM.yaml +1 -0
  274. data/lib/countries/data/countries/MN.yaml +9 -8
  275. data/lib/countries/data/countries/MP.yaml +1 -0
  276. data/lib/countries/data/countries/MQ.yaml +1 -0
  277. data/lib/countries/data/countries/MR.yaml +2 -2
  278. data/lib/countries/data/countries/MT.yaml +3 -2
  279. data/lib/countries/data/countries/MU.yaml +2 -1
  280. data/lib/countries/data/countries/MV.yaml +3 -2
  281. data/lib/countries/data/countries/MW.yaml +2 -2
  282. data/lib/countries/data/countries/MX.yaml +5 -4
  283. data/lib/countries/data/countries/MY.yaml +3 -2
  284. data/lib/countries/data/countries/MZ.yaml +1 -0
  285. data/lib/countries/data/countries/NA.yaml +5 -4
  286. data/lib/countries/data/countries/NC.yaml +1 -0
  287. data/lib/countries/data/countries/NE.yaml +5 -4
  288. data/lib/countries/data/countries/NF.yaml +1 -0
  289. data/lib/countries/data/countries/NG.yaml +2 -1
  290. data/lib/countries/data/countries/NI.yaml +3 -2
  291. data/lib/countries/data/countries/NL.yaml +4 -3
  292. data/lib/countries/data/countries/NO.yaml +3 -2
  293. data/lib/countries/data/countries/NP.yaml +7 -6
  294. data/lib/countries/data/countries/NZ.yaml +3 -2
  295. data/lib/countries/data/countries/OM.yaml +3 -2
  296. data/lib/countries/data/countries/PA.yaml +2 -2
  297. data/lib/countries/data/countries/PE.yaml +5 -4
  298. data/lib/countries/data/countries/PF.yaml +5 -4
  299. data/lib/countries/data/countries/PG.yaml +1 -0
  300. data/lib/countries/data/countries/PH.yaml +5 -4
  301. data/lib/countries/data/countries/PK.yaml +5 -4
  302. data/lib/countries/data/countries/PL.yaml +5 -4
  303. data/lib/countries/data/countries/PM.yaml +1 -0
  304. data/lib/countries/data/countries/PN.yaml +1 -0
  305. data/lib/countries/data/countries/PR.yaml +9 -8
  306. data/lib/countries/data/countries/PS.yaml +1 -1
  307. data/lib/countries/data/countries/PT.yaml +6 -5
  308. data/lib/countries/data/countries/PW.yaml +1 -0
  309. data/lib/countries/data/countries/PY.yaml +3 -2
  310. data/lib/countries/data/countries/QA.yaml +2 -2
  311. data/lib/countries/data/countries/RE.yaml +1 -0
  312. data/lib/countries/data/countries/RO.yaml +7 -6
  313. data/lib/countries/data/countries/RS.yaml +1 -0
  314. data/lib/countries/data/countries/RU.yaml +3 -2
  315. data/lib/countries/data/countries/RW.yaml +2 -2
  316. data/lib/countries/data/countries/SA.yaml +4 -3
  317. data/lib/countries/data/countries/SB.yaml +1 -1
  318. data/lib/countries/data/countries/SC.yaml +2 -2
  319. data/lib/countries/data/countries/SD.yaml +3 -2
  320. data/lib/countries/data/countries/SE.yaml +5 -4
  321. data/lib/countries/data/countries/SG.yaml +1 -0
  322. data/lib/countries/data/countries/SH.yaml +5 -4
  323. data/lib/countries/data/countries/SI.yaml +5 -4
  324. data/lib/countries/data/countries/SJ.yaml +6 -5
  325. data/lib/countries/data/countries/SK.yaml +7 -6
  326. data/lib/countries/data/countries/SL.yaml +2 -2
  327. data/lib/countries/data/countries/SM.yaml +1 -0
  328. data/lib/countries/data/countries/SN.yaml +5 -4
  329. data/lib/countries/data/countries/SO.yaml +2 -1
  330. data/lib/countries/data/countries/SS.yaml +2 -2
  331. data/lib/countries/data/countries/SV.yaml +1 -0
  332. data/lib/countries/data/countries/SX.yaml +1 -1
  333. data/lib/countries/data/countries/SZ.yaml +1 -0
  334. data/lib/countries/data/countries/TC.yaml +1 -0
  335. data/lib/countries/data/countries/TD.yaml +1 -1
  336. data/lib/countries/data/countries/TF.yaml +5 -5
  337. data/lib/countries/data/countries/TG.yaml +7 -7
  338. data/lib/countries/data/countries/TH.yaml +3 -1
  339. data/lib/countries/data/countries/TJ.yaml +1 -0
  340. data/lib/countries/data/countries/TM.yaml +1 -0
  341. data/lib/countries/data/countries/TN.yaml +1 -0
  342. data/lib/countries/data/countries/TR.yaml +1 -0
  343. data/lib/countries/data/countries/TV.yaml +3 -3
  344. data/lib/countries/data/countries/TW.yaml +1 -0
  345. data/lib/countries/data/countries/TZ.yaml +4 -3
  346. data/lib/countries/data/countries/UA.yaml +7 -6
  347. data/lib/countries/data/countries/UG.yaml +4 -4
  348. data/lib/countries/data/countries/UM.yaml +1 -0
  349. data/lib/countries/data/countries/US.yaml +1 -0
  350. data/lib/countries/data/countries/UY.yaml +3 -2
  351. data/lib/countries/data/countries/UZ.yaml +1 -0
  352. data/lib/countries/data/countries/VA.yaml +1 -0
  353. data/lib/countries/data/countries/VC.yaml +3 -2
  354. data/lib/countries/data/countries/VE.yaml +3 -2
  355. data/lib/countries/data/countries/VG.yaml +2 -1
  356. data/lib/countries/data/countries/VI.yaml +1 -0
  357. data/lib/countries/data/countries/VN.yaml +11 -4
  358. data/lib/countries/data/countries/WF.yaml +1 -0
  359. data/lib/countries/data/countries/WS.yaml +3 -3
  360. data/lib/countries/data/countries/YT.yaml +1 -0
  361. data/lib/countries/data/countries/ZA.yaml +5 -4
  362. data/lib/countries/data/countries/ZM.yaml +5 -4
  363. data/lib/countries/data/countries/ZW.yaml +4 -4
  364. data/lib/countries/data/subdivisions/AD.yaml +35 -28
  365. data/lib/countries/data/subdivisions/AE.yaml +154 -63
  366. data/lib/countries/data/subdivisions/AF.yaml +605 -300
  367. data/lib/countries/data/subdivisions/AG.yaml +149 -67
  368. data/lib/countries/data/subdivisions/AI.yaml +139 -125
  369. data/lib/countries/data/subdivisions/AL.yaml +472 -144
  370. data/lib/countries/data/subdivisions/AM.yaml +236 -88
  371. data/lib/countries/data/subdivisions/AO.yaml +344 -144
  372. data/lib/countries/data/subdivisions/AR.yaml +450 -187
  373. data/lib/countries/data/subdivisions/AS.yaml +34 -15
  374. data/lib/countries/data/subdivisions/AT.yaml +202 -72
  375. data/lib/countries/data/subdivisions/AU.yaml +212 -64
  376. data/lib/countries/data/subdivisions/AW.yaml +9 -0
  377. data/lib/countries/data/subdivisions/AX.yaml +20 -9
  378. data/lib/countries/data/subdivisions/AZ.yaml +1550 -592
  379. data/lib/countries/data/subdivisions/BA.yaml +189 -16
  380. data/lib/countries/data/subdivisions/BB.yaml +190 -88
  381. data/lib/countries/data/subdivisions/BD.yaml +1192 -519
  382. data/lib/countries/data/subdivisions/BE.yaml +278 -88
  383. data/lib/countries/data/subdivisions/BF.yaml +993 -366
  384. data/lib/countries/data/subdivisions/BG.yaml +600 -219
  385. data/lib/countries/data/subdivisions/BH.yaml +72 -35
  386. data/lib/countries/data/subdivisions/BI.yaml +298 -123
  387. data/lib/countries/data/subdivisions/BJ.yaml +226 -96
  388. data/lib/countries/data/subdivisions/BL.yaml +11 -0
  389. data/lib/countries/data/subdivisions/BM.yaml +110 -99
  390. data/lib/countries/data/subdivisions/BN.yaml +63 -32
  391. data/lib/countries/data/subdivisions/BO.yaml +157 -72
  392. data/lib/countries/data/subdivisions/BQ.yaml +63 -24
  393. data/lib/countries/data/subdivisions/BR.yaml +689 -216
  394. data/lib/countries/data/subdivisions/BS.yaml +625 -108
  395. data/lib/countries/data/subdivisions/BT.yaml +346 -160
  396. data/lib/countries/data/subdivisions/BW.yaml +294 -72
  397. data/lib/countries/data/subdivisions/BY.yaml +140 -51
  398. data/lib/countries/data/subdivisions/BZ.yaml +97 -48
  399. data/lib/countries/data/subdivisions/CA.yaml +358 -105
  400. data/lib/countries/data/subdivisions/CD.yaml +451 -68
  401. data/lib/countries/data/subdivisions/CF.yaml +291 -136
  402. data/lib/countries/data/subdivisions/CG.yaml +217 -88
  403. data/lib/countries/data/subdivisions/CH.yaml +593 -208
  404. data/lib/countries/data/subdivisions/CI.yaml +431 -66
  405. data/lib/countries/data/subdivisions/CK.yaml +110 -99
  406. data/lib/countries/data/subdivisions/CL.yaml +262 -132
  407. data/lib/countries/data/subdivisions/CM.yaml +190 -80
  408. data/lib/countries/data/subdivisions/CN.yaml +725 -46
  409. data/lib/countries/data/subdivisions/CO.yaml +643 -264
  410. data/lib/countries/data/subdivisions/CP.yaml +4 -0
  411. data/lib/countries/data/subdivisions/CR.yaml +119 -56
  412. data/lib/countries/data/subdivisions/CU.yaml +268 -128
  413. data/lib/countries/data/subdivisions/CV.yaml +414 -126
  414. data/lib/countries/data/subdivisions/CW.yaml +9 -0
  415. data/lib/countries/data/subdivisions/CY.yaml +102 -48
  416. data/lib/countries/data/subdivisions/CZ.yaml +2430 -53
  417. data/lib/countries/data/subdivisions/DE.yaml +468 -128
  418. data/lib/countries/data/subdivisions/DJ.yaml +110 -48
  419. data/lib/countries/data/subdivisions/DK.yaml +186 -96
  420. data/lib/countries/data/subdivisions/DM.yaml +159 -80
  421. data/lib/countries/data/subdivisions/DO.yaml +660 -248
  422. data/lib/countries/data/subdivisions/DZ.yaml +809 -384
  423. data/lib/countries/data/subdivisions/EC.yaml +391 -192
  424. data/lib/countries/data/subdivisions/EE.yaml +543 -120
  425. data/lib/countries/data/subdivisions/EG.yaml +472 -216
  426. data/lib/countries/data/subdivisions/EH.yaml +24 -16
  427. data/lib/countries/data/subdivisions/ER.yaml +109 -48
  428. data/lib/countries/data/subdivisions/ES.yaml +1740 -437
  429. data/lib/countries/data/subdivisions/ET.yaml +207 -88
  430. data/lib/countries/data/subdivisions/FI.yaml +421 -37
  431. data/lib/countries/data/subdivisions/FJ.yaml +314 -40
  432. data/lib/countries/data/subdivisions/FM.yaml +63 -32
  433. data/lib/countries/data/subdivisions/FO.yaml +60 -54
  434. data/lib/countries/data/subdivisions/FR.yaml +2861 -922
  435. data/lib/countries/data/subdivisions/GA.yaml +159 -72
  436. data/lib/countries/data/subdivisions/GB.yaml +4979 -1771
  437. data/lib/countries/data/subdivisions/GD.yaml +114 -56
  438. data/lib/countries/data/subdivisions/GE.yaml +238 -96
  439. data/lib/countries/data/subdivisions/GF.yaml +11 -0
  440. data/lib/countries/data/subdivisions/GG.yaml +110 -99
  441. data/lib/countries/data/subdivisions/GH.yaml +266 -79
  442. data/lib/countries/data/subdivisions/GL.yaml +89 -0
  443. data/lib/countries/data/subdivisions/GM.yaml +124 -48
  444. data/lib/countries/data/subdivisions/GN.yaml +711 -274
  445. data/lib/countries/data/subdivisions/GP.yaml +11 -0
  446. data/lib/countries/data/subdivisions/GQ.yaml +143 -72
  447. data/lib/countries/data/subdivisions/GR.yaml +594 -165
  448. data/lib/countries/data/subdivisions/GT.yaml +351 -176
  449. data/lib/countries/data/subdivisions/GU.yaml +85 -58
  450. data/lib/countries/data/subdivisions/GW.yaml +192 -72
  451. data/lib/countries/data/subdivisions/GY.yaml +163 -80
  452. data/lib/countries/data/subdivisions/HK.yaml +86 -54
  453. data/lib/countries/data/subdivisions/HN.yaml +274 -144
  454. data/lib/countries/data/subdivisions/HR.yaml +429 -168
  455. data/lib/countries/data/subdivisions/HT.yaml +179 -72
  456. data/lib/countries/data/subdivisions/HU.yaml +791 -339
  457. data/lib/countries/data/subdivisions/IC.yaml +4 -0
  458. data/lib/countries/data/subdivisions/ID.yaml +2376 -1858
  459. data/lib/countries/data/subdivisions/IE.yaml +650 -259
  460. data/lib/countries/data/subdivisions/IL.yaml +114 -48
  461. data/lib/countries/data/subdivisions/IM.yaml +240 -216
  462. data/lib/countries/data/subdivisions/IN.yaml +1005 -298
  463. data/lib/countries/data/subdivisions/IQ.yaml +316 -139
  464. data/lib/countries/data/subdivisions/IR.yaml +596 -239
  465. data/lib/countries/data/subdivisions/IS.yaml +373 -67
  466. data/lib/countries/data/subdivisions/IT.yaml +2693 -880
  467. data/lib/countries/data/subdivisions/JE.yaml +120 -108
  468. data/lib/countries/data/subdivisions/JM.yaml +243 -112
  469. data/lib/countries/data/subdivisions/JO.yaml +193 -96
  470. data/lib/countries/data/subdivisions/JP.yaml +950 -376
  471. data/lib/countries/data/subdivisions/KE.yaml +807 -40
  472. data/lib/countries/data/subdivisions/KG.yaml +188 -64
  473. data/lib/countries/data/subdivisions/KH.yaml +437 -192
  474. data/lib/countries/data/subdivisions/KI.yaml +57 -24
  475. data/lib/countries/data/subdivisions/KM.yaml +49 -24
  476. data/lib/countries/data/subdivisions/KN.yaml +308 -112
  477. data/lib/countries/data/subdivisions/KP.yaml +365 -57
  478. data/lib/countries/data/subdivisions/KR.yaml +393 -128
  479. data/lib/countries/data/subdivisions/KW.yaml +87 -48
  480. data/lib/countries/data/subdivisions/KY.yaml +36 -24
  481. data/lib/countries/data/subdivisions/KZ.yaml +362 -135
  482. data/lib/countries/data/subdivisions/LA.yaml +300 -145
  483. data/lib/countries/data/subdivisions/LB.yaml +134 -48
  484. data/lib/countries/data/subdivisions/LC.yaml +166 -0
  485. data/lib/countries/data/subdivisions/LI.yaml +186 -88
  486. data/lib/countries/data/subdivisions/LK.yaml +544 -200
  487. data/lib/countries/data/subdivisions/LR.yaml +252 -110
  488. data/lib/countries/data/subdivisions/LS.yaml +149 -80
  489. data/lib/countries/data/subdivisions/LT.yaml +1042 -80
  490. data/lib/countries/data/subdivisions/LU.yaml +200 -17
  491. data/lib/countries/data/subdivisions/LV.yaml +2399 -223
  492. data/lib/countries/data/subdivisions/LY.yaml +339 -162
  493. data/lib/countries/data/subdivisions/MA.yaml +1443 -484
  494. data/lib/countries/data/subdivisions/MC.yaml +250 -0
  495. data/lib/countries/data/subdivisions/MD.yaml +638 -93
  496. data/lib/countries/data/subdivisions/ME.yaml +425 -168
  497. data/lib/countries/data/subdivisions/MF.yaml +9 -0
  498. data/lib/countries/data/subdivisions/MG.yaml +93 -48
  499. data/lib/countries/data/subdivisions/MH.yaml +422 -199
  500. data/lib/countries/data/subdivisions/MK.yaml +2972 -255
  501. data/lib/countries/data/subdivisions/ML.yaml +187 -71
  502. data/lib/countries/data/subdivisions/MM.yaml +287 -112
  503. data/lib/countries/data/subdivisions/MN.yaml +421 -176
  504. data/lib/countries/data/subdivisions/MO.yaml +9 -0
  505. data/lib/countries/data/subdivisions/MP.yaml +30 -12
  506. data/lib/countries/data/subdivisions/MQ.yaml +11 -0
  507. data/lib/countries/data/subdivisions/MR.yaml +245 -99
  508. data/lib/countries/data/subdivisions/MS.yaml +30 -27
  509. data/lib/countries/data/subdivisions/MT.yaml +1059 -544
  510. data/lib/countries/data/subdivisions/MU.yaml +317 -131
  511. data/lib/countries/data/subdivisions/MV.yaml +457 -163
  512. data/lib/countries/data/subdivisions/MW.yaml +537 -216
  513. data/lib/countries/data/subdivisions/MX.yaml +709 -256
  514. data/lib/countries/data/subdivisions/MY.yaml +336 -128
  515. data/lib/countries/data/subdivisions/MZ.yaml +191 -83
  516. data/lib/countries/data/subdivisions/NA.yaml +220 -107
  517. data/lib/countries/data/subdivisions/NC.yaml +26 -9
  518. data/lib/countries/data/subdivisions/NE.yaml +170 -64
  519. data/lib/countries/data/subdivisions/NG.yaml +870 -296
  520. data/lib/countries/data/subdivisions/NI.yaml +260 -136
  521. data/lib/countries/data/subdivisions/NL.yaml +381 -96
  522. data/lib/countries/data/subdivisions/NO.yaml +1087 -268
  523. data/lib/countries/data/subdivisions/NP.yaml +383 -112
  524. data/lib/countries/data/subdivisions/NR.yaml +260 -112
  525. data/lib/countries/data/subdivisions/NZ.yaml +318 -131
  526. data/lib/countries/data/subdivisions/OM.yaml +202 -52
  527. data/lib/countries/data/subdivisions/PA.yaml +203 -99
  528. data/lib/countries/data/subdivisions/PE.yaml +418 -208
  529. data/lib/countries/data/subdivisions/PF.yaml +30 -15
  530. data/lib/countries/data/subdivisions/PG.yaml +381 -155
  531. data/lib/countries/data/subdivisions/PH.yaml +1855 -662
  532. data/lib/countries/data/subdivisions/PK.yaml +185 -54
  533. data/lib/countries/data/subdivisions/PL.yaml +1176 -127
  534. data/lib/countries/data/subdivisions/PM.yaml +18 -6
  535. data/lib/countries/data/subdivisions/PR.yaml +326 -234
  536. data/lib/countries/data/subdivisions/PS.yaml +257 -0
  537. data/lib/countries/data/subdivisions/PT.yaml +342 -160
  538. data/lib/countries/data/subdivisions/PW.yaml +269 -128
  539. data/lib/countries/data/subdivisions/PY.yaml +321 -144
  540. data/lib/countries/data/subdivisions/QA.yaml +168 -65
  541. data/lib/countries/data/subdivisions/RE.yaml +11 -0
  542. data/lib/countries/data/subdivisions/RO.yaml +729 -336
  543. data/lib/countries/data/subdivisions/RS.yaml +589 -240
  544. data/lib/countries/data/subdivisions/RU.yaml +1875 -665
  545. data/lib/countries/data/subdivisions/RW.yaml +102 -40
  546. data/lib/countries/data/subdivisions/SA.yaml +234 -104
  547. data/lib/countries/data/subdivisions/SB.yaml +169 -80
  548. data/lib/countries/data/subdivisions/SC.yaml +462 -184
  549. data/lib/countries/data/subdivisions/SD.yaml +163 -22
  550. data/lib/countries/data/subdivisions/SE.yaml +435 -237
  551. data/lib/countries/data/subdivisions/SG.yaml +111 -19
  552. data/lib/countries/data/subdivisions/SH.yaml +67 -14
  553. data/lib/countries/data/subdivisions/SI.yaml +3570 -1549
  554. data/lib/countries/data/subdivisions/SJ.yaml +20 -18
  555. data/lib/countries/data/subdivisions/SK.yaml +129 -64
  556. data/lib/countries/data/subdivisions/SL.yaml +80 -31
  557. data/lib/countries/data/subdivisions/SM.yaml +159 -72
  558. data/lib/countries/data/subdivisions/SN.yaml +233 -88
  559. data/lib/countries/data/subdivisions/SO.yaml +311 -144
  560. data/lib/countries/data/subdivisions/SR.yaml +158 -80
  561. data/lib/countries/data/subdivisions/SS.yaml +196 -0
  562. data/lib/countries/data/subdivisions/ST.yaml +49 -16
  563. data/lib/countries/data/subdivisions/SV.yaml +231 -112
  564. data/lib/countries/data/subdivisions/SX.yaml +9 -0
  565. data/lib/countries/data/subdivisions/SY.yaml +220 -112
  566. data/lib/countries/data/subdivisions/SZ.yaml +65 -32
  567. data/lib/countries/data/subdivisions/TA.yaml +4 -0
  568. data/lib/countries/data/subdivisions/TD.yaml +409 -139
  569. data/lib/countries/data/subdivisions/TF.yaml +38 -20
  570. data/lib/countries/data/subdivisions/TG.yaml +75 -40
  571. data/lib/countries/data/subdivisions/TH.yaml +1451 -616
  572. data/lib/countries/data/subdivisions/TJ.yaml +100 -24
  573. data/lib/countries/data/subdivisions/TK.yaml +30 -27
  574. data/lib/countries/data/subdivisions/TL.yaml +209 -104
  575. data/lib/countries/data/subdivisions/TM.yaml +116 -40
  576. data/lib/countries/data/subdivisions/TN.yaml +412 -192
  577. data/lib/countries/data/subdivisions/TO.yaml +75 -40
  578. data/lib/countries/data/subdivisions/TR.yaml +1817 -648
  579. data/lib/countries/data/subdivisions/TT.yaml +296 -113
  580. data/lib/countries/data/subdivisions/TV.yaml +133 -59
  581. data/lib/countries/data/subdivisions/TW.yaml +481 -164
  582. data/lib/countries/data/subdivisions/TZ.yaml +661 -208
  583. data/lib/countries/data/subdivisions/UA.yaml +505 -216
  584. data/lib/countries/data/subdivisions/UG.yaml +2262 -640
  585. data/lib/countries/data/subdivisions/UM.yaml +216 -71
  586. data/lib/countries/data/subdivisions/US.yaml +1658 -464
  587. data/lib/countries/data/subdivisions/UY.yaml +367 -152
  588. data/lib/countries/data/subdivisions/UZ.yaml +289 -113
  589. data/lib/countries/data/subdivisions/VC.yaml +101 -48
  590. data/lib/countries/data/subdivisions/VE.yaml +456 -200
  591. data/lib/countries/data/subdivisions/VI.yaml +26 -9
  592. data/lib/countries/data/subdivisions/VN.yaml +3664 -2996
  593. data/lib/countries/data/subdivisions/VU.yaml +98 -48
  594. data/lib/countries/data/subdivisions/WF.yaml +73 -0
  595. data/lib/countries/data/subdivisions/WS.yaml +200 -88
  596. data/lib/countries/data/subdivisions/YE.yaml +375 -152
  597. data/lib/countries/data/subdivisions/YT.yaml +76 -51
  598. data/lib/countries/data/subdivisions/ZA.yaml +238 -72
  599. data/lib/countries/data/subdivisions/ZM.yaml +157 -72
  600. data/lib/countries/data/subdivisions/ZW.yaml +152 -73
  601. data/lib/countries/data/translation_corrections.yaml +10 -1
  602. data/lib/countries/data.rb +47 -18
  603. data/lib/countries/sources/cldr/downloader.rb +12 -13
  604. data/lib/countries/structure.rb +1 -0
  605. data/lib/countries/tasks/geocoding.rake +9 -16
  606. data/lib/countries/tasks/postal_codes.rake +48 -0
  607. data/lib/countries/translations.rb +1 -1
  608. data/lib/countries/version.rb +1 -1
  609. data/lib/countries.rb +0 -1
  610. data/spec/country_spec.rb +73 -2
  611. data/spec/data_spec.rb +4 -4
  612. data/spec/thread_safety_spec.rb +46 -0
  613. metadata +34 -26
  614. data/.travis.yml +0 -15
@@ -21,6 +21,7 @@ LI:
21
21
  nationality: Liechtensteiner
22
22
  eea_member: true
23
23
  postal_code: true
24
+ postal_code_format: 948[5-9]|949[0-8]
24
25
  unofficial_names:
25
26
  - Liechtenstein
26
27
  - リヒテンシュタイン
@@ -20,6 +20,7 @@ LK:
20
20
  un_locode: LK
21
21
  nationality: Sri Lankan
22
22
  postal_code: true
23
+ postal_code_format: "\\d{5}"
23
24
  unofficial_names:
24
25
  - Sri Lanka
25
26
  - スリランカ
@@ -22,6 +22,7 @@ LR:
22
22
  un_locode: LR
23
23
  nationality: Liberian
24
24
  postal_code: true
25
+ postal_code_format: "\\d{4}"
25
26
  unofficial_names:
26
27
  - Liberia
27
28
  - リベリア
@@ -21,6 +21,7 @@ LS:
21
21
  un_locode: LS
22
22
  nationality: Mosotho
23
23
  postal_code: true
24
+ postal_code_format: "\\d{3}"
24
25
  unofficial_names:
25
26
  - Lesotho
26
27
  - レソト
@@ -26,9 +26,10 @@ LT:
26
26
  reduced:
27
27
  - 5
28
28
  - 9
29
- super_reduced:
30
- parking:
29
+ super_reduced:
30
+ parking:
31
31
  postal_code: true
32
+ postal_code_format: "\\d{5}"
32
33
  unofficial_names:
33
34
  - Lithuania
34
35
  - Litauen
@@ -48,15 +49,15 @@ LT:
48
49
  longitude: 23.881275
49
50
  longitude_dec: '23.87092399597168'
50
51
  max_latitude: 56.45032089999999
51
- max_longitude: 26.8355913
52
- min_latitude: 53.89687869999999
52
+ max_longitude: 26.835523
53
+ min_latitude: 53.8967949
53
54
  min_longitude: 20.931
54
55
  bounds:
55
56
  northeast:
56
57
  lat: 56.45032089999999
57
- lng: 26.8355913
58
+ lng: 26.835523
58
59
  southwest:
59
- lat: 53.89687869999999
60
+ lat: 53.8967949
60
61
  lng: 20.931
61
62
  currency_code: EUR
62
63
  start_of_week: monday
@@ -34,6 +34,7 @@ LU:
34
34
  super_reduced: 3
35
35
  parking: 12
36
36
  postal_code: true
37
+ postal_code_format: "\\d{4}"
37
38
  unofficial_names:
38
39
  - Luxembourg
39
40
  - Luxemburg
@@ -1,6 +1,12 @@
1
1
  ---
2
2
  LV:
3
3
  continent: Europe
4
+ address_format: |-
5
+ {{recipient}}
6
+ {{street}}
7
+ {{region}}
8
+ {{city}} {{postalcode}}
9
+ {{country}}
4
10
  alpha2: LV
5
11
  alpha3: LVA
6
12
  country_code: '371'
@@ -25,9 +31,10 @@ LV:
25
31
  standard: 21
26
32
  reduced:
27
33
  - 12
28
- super_reduced:
29
- parking:
34
+ super_reduced:
35
+ parking:
30
36
  postal_code: true
37
+ postal_code_format: LV-\d{4}
31
38
  unofficial_names:
32
39
  - Latvia
33
40
  - Lettland
@@ -47,13 +54,13 @@ LV:
47
54
  max_latitude: 58.0855688
48
55
  max_longitude: 28.2414029
49
56
  min_latitude: 55.6747769
50
- min_longitude: 20.8465998
57
+ min_longitude: 20.8465999
51
58
  bounds:
52
59
  northeast:
53
60
  lat: 58.0855688
54
61
  lng: 28.2414029
55
62
  southwest:
56
63
  lat: 55.6747769
57
- lng: 20.8465998
64
+ lng: 20.8465999
58
65
  currency_code: EUR
59
66
  start_of_week: monday
@@ -20,7 +20,7 @@ LY:
20
20
  world_region: EMEA
21
21
  un_locode: LY
22
22
  nationality: Libyan
23
- postal_code: true
23
+ postal_code: false
24
24
  unofficial_names:
25
25
  - Libya
26
26
  - ليبيا
@@ -20,6 +20,7 @@ MA:
20
20
  un_locode: MA
21
21
  nationality: Moroccan
22
22
  postal_code: true
23
+ postal_code_format: "\\d{5}"
23
24
  unofficial_names:
24
25
  - Morocco
25
26
  - المغرب
@@ -37,15 +38,15 @@ MA:
37
38
  longitude: -7.092619999999999
38
39
  longitude_dec: "-8.953388214111328"
39
40
  max_latitude: 35.9344
40
- max_longitude: -0.996976
41
- min_latitude: 27.6672694
41
+ max_longitude: -0.9969759
42
+ min_latitude: 27.6672693
42
43
  min_longitude: -13.3044001
43
44
  bounds:
44
45
  northeast:
45
46
  lat: 35.9344
46
- lng: -0.996976
47
+ lng: -0.9969759
47
48
  southwest:
48
- lat: 27.6672694
49
+ lat: 27.6672693
49
50
  lng: -13.3044001
50
51
  currency_code: MAD
51
52
  start_of_week: monday
@@ -21,6 +21,7 @@ MC:
21
21
  un_locode: MC
22
22
  nationality: Monegasque
23
23
  postal_code: true
24
+ postal_code_format: 980\d{2}
24
25
  unofficial_names:
25
26
  - Monaco
26
27
  - Mónaco
@@ -20,6 +20,7 @@ MD:
20
20
  un_locode: MD
21
21
  nationality: Moldovan
22
22
  postal_code: true
23
+ postal_code_format: "\\d{4}"
23
24
  unofficial_names:
24
25
  - Moldova
25
26
  - Moldawien
@@ -37,16 +38,16 @@ MD:
37
38
  latitude_dec: '47.203704833984375'
38
39
  longitude: 28.369885
39
40
  longitude_dec: '28.46834373474121'
40
- max_latitude: 48.491944
41
- max_longitude: 30.162538
42
- min_latitude: 45.466904
43
- min_longitude: 26.6168559
41
+ max_latitude: 48.492029
42
+ max_longitude: 30.1635898
43
+ min_latitude: 45.4674379
44
+ min_longitude: 26.6164248
44
45
  bounds:
45
46
  northeast:
46
- lat: 48.491944
47
- lng: 30.162538
47
+ lat: 48.492029
48
+ lng: 30.1635898
48
49
  southwest:
49
- lat: 45.466904
50
- lng: 26.6168559
50
+ lat: 45.4674379
51
+ lng: 26.6164248
51
52
  currency_code: MDL
52
53
  start_of_week: monday
@@ -20,6 +20,7 @@ ME:
20
20
  un_locode: ME
21
21
  nationality: Montenegrin
22
22
  postal_code: true
23
+ postal_code_format: 8\d{4}
23
24
  unofficial_names:
24
25
  - Crna Gora
25
26
  - Montenegro
@@ -40,13 +41,13 @@ ME:
40
41
  longitude: 19.37439
41
42
  longitude_dec: '19.237918853759766'
42
43
  max_latitude: 43.558743
43
- max_longitude: 20.3574869
44
+ max_longitude: 20.352926
44
45
  min_latitude: 41.8297
45
46
  min_longitude: 18.4337921
46
47
  bounds:
47
48
  northeast:
48
49
  lat: 43.558743
49
- lng: 20.3574869
50
+ lng: 20.352926
50
51
  southwest:
51
52
  lat: 41.8297
52
53
  lng: 18.4337921
@@ -18,6 +18,7 @@ MF:
18
18
  un_locode: MF
19
19
  nationality: Saint Martin Islander
20
20
  postal_code: true
21
+ postal_code_format: 9[78][01]\d{2}
21
22
  unofficial_names:
22
23
  - Saint Martin
23
24
  - サン・マルタン(フランス領)
@@ -20,6 +20,7 @@ MG:
20
20
  un_locode: MG
21
21
  nationality: Malagasy
22
22
  postal_code: true
23
+ postal_code_format: "\\d{3}"
23
24
  unofficial_names:
24
25
  - Madagascar
25
26
  - Madagaskar
@@ -20,6 +20,7 @@ MH:
20
20
  un_locode: MH
21
21
  nationality: Marshallese
22
22
  postal_code: true
23
+ postal_code_format: "(969[67]\\d)(?:[ \\-](\\d{4}))?"
23
24
  unofficial_names:
24
25
  - Marshall Islands
25
26
  - Marshallinseln
@@ -34,9 +35,9 @@ MH:
34
35
  - en
35
36
  - mh
36
37
  geo:
37
- latitude: 6.0683017
38
+ latitude: 7.131474
38
39
  latitude_dec: '7.286207675933838'
39
- longitude: 171.9425583
40
+ longitude: 171.184478
40
41
  longitude_dec: '168.75140380859375'
41
42
  max_latitude: 15.0190749
42
43
  max_longitude: 172.5732421
@@ -26,6 +26,7 @@ MK:
26
26
  un_locode: MK
27
27
  nationality: Macedonian
28
28
  postal_code: true
29
+ postal_code_format: "\\d{4}"
29
30
  unofficial_names:
30
31
  - Macedonia
31
32
  - Mazedonien
@@ -45,13 +46,13 @@ MK:
45
46
  longitude: 21.745275
46
47
  longitude_dec: '21.700895309448242'
47
48
  max_latitude: 42.373646
48
- max_longitude: 23.034093
49
+ max_longitude: 23.0340441
49
50
  min_latitude: 40.8537826
50
51
  min_longitude: 20.452423
51
52
  bounds:
52
53
  northeast:
53
54
  lat: 42.373646
54
- lng: 23.034093
55
+ lng: 23.0340441
55
56
  southwest:
56
57
  lat: 40.8537826
57
58
  lng: 20.452423
@@ -33,15 +33,15 @@ ML:
33
33
  longitude: -3.996166
34
34
  longitude_dec: "-3.5273818969726562"
35
35
  max_latitude: 25.001084
36
- max_longitude: 4.2673828
36
+ max_longitude: 4.267382599999999
37
37
  min_latitude: 10.147811
38
- min_longitude: -12.2388849
38
+ min_longitude: -12.2403447
39
39
  bounds:
40
40
  northeast:
41
41
  lat: 25.001084
42
- lng: 4.2673828
42
+ lng: 4.267382599999999
43
43
  southwest:
44
44
  lat: 10.147811
45
- lng: -12.2388849
45
+ lng: -12.2403447
46
46
  currency_code: XOF
47
47
  start_of_week: monday
@@ -21,6 +21,7 @@ MM:
21
21
  un_locode: MM
22
22
  nationality: Myanmarian
23
23
  postal_code: true
24
+ postal_code_format: "\\d{5}"
24
25
  unofficial_names:
25
26
  - Myanmar
26
27
  - ミャンマー
@@ -23,6 +23,7 @@ MN:
23
23
  un_locode: MN
24
24
  nationality: Mongolian
25
25
  postal_code: true
26
+ postal_code_format: "\\d{5}"
26
27
  unofficial_names:
27
28
  - Mongolia
28
29
  - Mongolei
@@ -38,16 +39,16 @@ MN:
38
39
  latitude_dec: '46.83647918701172'
39
40
  longitude: 103.846656
40
41
  longitude_dec: '103.06689453125'
41
- max_latitude: 52.1486965
42
- max_longitude: 119.9319489
43
- min_latitude: 41.5815201
44
- min_longitude: 87.73761999999999
42
+ max_latitude: 52.148355
43
+ max_longitude: 119.9315098
44
+ min_latitude: 41.581833
45
+ min_longitude: 87.7344789
45
46
  bounds:
46
47
  northeast:
47
- lat: 52.1486965
48
- lng: 119.9319489
48
+ lat: 52.148355
49
+ lng: 119.9315098
49
50
  southwest:
50
- lat: 41.5815201
51
- lng: 87.73761999999999
51
+ lat: 41.581833
52
+ lng: 87.7344789
52
53
  currency_code: MNT
53
54
  start_of_week: monday
@@ -20,6 +20,7 @@ MP:
20
20
  un_locode: MP
21
21
  nationality: American
22
22
  postal_code: true
23
+ postal_code_format: "(9695[012])(?:[ \\-](\\d{4}))?"
23
24
  unofficial_names:
24
25
  - Northern Mariana Islands
25
26
  - Nördliche Marianen
@@ -20,6 +20,7 @@ MQ:
20
20
  un_locode: MQ
21
21
  nationality: French
22
22
  postal_code: true
23
+ postal_code_format: 9[78]2\d{2}
23
24
  unofficial_names:
24
25
  - Martinique
25
26
  - Martinica
@@ -39,13 +39,13 @@ MR:
39
39
  longitude: -10.940835
40
40
  longitude_dec: "-10.364437103271484"
41
41
  max_latitude: 27.3158916
42
- max_longitude: -4.8336008
42
+ max_longitude: -4.833334799999999
43
43
  min_latitude: 14.721273
44
44
  min_longitude: -17.0687276
45
45
  bounds:
46
46
  northeast:
47
47
  lat: 27.3158916
48
- lng: -4.8336008
48
+ lng: -4.833334799999999
49
49
  southwest:
50
50
  lat: 14.721273
51
51
  lng: -17.0687276
@@ -26,9 +26,10 @@ MT:
26
26
  reduced:
27
27
  - 5
28
28
  - 7
29
- super_reduced:
30
- parking:
29
+ super_reduced:
30
+ parking:
31
31
  postal_code: true
32
+ postal_code_format: "[A-Z]{3} ?\\d{2,4}"
32
33
  unofficial_names:
33
34
  - Malta
34
35
  - Malte
@@ -19,7 +19,8 @@ MU:
19
19
  world_region: EMEA
20
20
  un_locode: MU
21
21
  nationality: Mauritian
22
- postal_code: false
22
+ postal_code: true
23
+ postal_code_format: "\\d{3}(?:\\d{2}|[A-Z]{2}\\d{3})"
23
24
  unofficial_names:
24
25
  - Mauritius
25
26
  - Île Maurice
@@ -20,6 +20,7 @@ MV:
20
20
  un_locode: MV
21
21
  nationality: Maldivan
22
22
  postal_code: true
23
+ postal_code_format: "\\d{5}"
23
24
  unofficial_names:
24
25
  - Maldives
25
26
  - Malediven
@@ -31,9 +32,9 @@ MV:
31
32
  languages_spoken:
32
33
  - dv
33
34
  geo:
34
- latitude: 1.977247
35
+ latitude: 3.202778
35
36
  latitude_dec: '4.185884952545166'
36
- longitude: 73.5361035
37
+ longitude: 73.22068
37
38
  longitude_dec: '73.53071594238281'
38
39
  max_latitude: 7.5149809
39
40
  max_longitude: 74.7290038
@@ -34,13 +34,13 @@ MW:
34
34
  latitude_dec: "-13.523577690124512"
35
35
  longitude: 34.301525
36
36
  longitude_dec: '33.83546447753906'
37
- max_latitude: -9.367227399999999
37
+ max_latitude: -9.3672272
38
38
  max_longitude: 35.91857299999999
39
39
  min_latitude: -17.1295216
40
40
  min_longitude: 32.6725205
41
41
  bounds:
42
42
  northeast:
43
- lat: -9.367227399999999
43
+ lat: -9.3672272
44
44
  lng: 35.91857299999999
45
45
  southwest:
46
46
  lat: -17.1295216
@@ -29,9 +29,10 @@ MX:
29
29
  vat_rates:
30
30
  standard: 16
31
31
  reduced: []
32
- super_reduced:
33
- parking:
32
+ super_reduced:
33
+ parking:
34
34
  postal_code: true
35
+ postal_code_format: "\\d{5}"
35
36
  unofficial_names:
36
37
  - Mexico
37
38
  - Mexiko
@@ -47,13 +48,13 @@ MX:
47
48
  latitude_dec: '23.909093856811523'
48
49
  longitude: -102.552784
49
50
  longitude_dec: "-102.6333999633789"
50
- max_latitude: 32.7187629
51
+ max_latitude: 32.7186534
51
52
  max_longitude: -86.5887
52
53
  min_latitude: 14.3895
53
54
  min_longitude: -118.6523001
54
55
  bounds:
55
56
  northeast:
56
- lat: 32.7187629
57
+ lat: 32.7186534
57
58
  lng: -86.5887
58
59
  southwest:
59
60
  lat: 14.3895
@@ -21,6 +21,7 @@ MY:
21
21
  un_locode: MY
22
22
  nationality: Malaysian
23
23
  postal_code: true
24
+ postal_code_format: "\\d{5}"
24
25
  unofficial_names:
25
26
  - Malaysia
26
27
  - Malaisie
@@ -40,14 +41,14 @@ MY:
40
41
  longitude_dec: '102.96261596679688'
41
42
  max_latitude: 7.5191
42
43
  max_longitude: 119.4000001
43
- min_latitude: 0.8538209
44
+ min_latitude: 0.8539281000000001
44
45
  min_longitude: 98.9353999
45
46
  bounds:
46
47
  northeast:
47
48
  lat: 7.5191
48
49
  lng: 119.4000001
49
50
  southwest:
50
- lat: 0.8538209
51
+ lat: 0.8539281000000001
51
52
  lng: 98.9353999
52
53
  currency_code: MYR
53
54
  start_of_week: sunday
@@ -21,6 +21,7 @@ MZ:
21
21
  un_locode: MZ
22
22
  nationality: Mozambican
23
23
  postal_code: true
24
+ postal_code_format: "\\d{4}"
24
25
  unofficial_names:
25
26
  - Mozambique
26
27
  - Mosambik
@@ -22,6 +22,7 @@ NA:
22
22
  un_locode: NA
23
23
  nationality: Namibian
24
24
  postal_code: true
25
+ postal_code_format: "\\d{5}"
25
26
  unofficial_names:
26
27
  - Namibia
27
28
  - Namibie
@@ -38,16 +39,16 @@ NA:
38
39
  latitude_dec: "-22.150699615478516"
39
40
  longitude: 18.49041
40
41
  longitude_dec: '17.177526473999023'
41
- max_latitude: -16.9634851
42
+ max_latitude: -16.9634849
42
43
  max_longitude: 25.261752
43
- min_latitude: -28.9706391
44
+ min_latitude: -28.97063889999999
44
45
  min_longitude: 11.4696999
45
46
  bounds:
46
47
  northeast:
47
- lat: -16.9634851
48
+ lat: -16.9634849
48
49
  lng: 25.261752
49
50
  southwest:
50
- lat: -28.9706391
51
+ lat: -28.97063889999999
51
52
  lng: 11.4696999
52
53
  currency_code: NAD
53
54
  start_of_week: monday
@@ -20,6 +20,7 @@ NC:
20
20
  un_locode: NC
21
21
  nationality: New Caledonian
22
22
  postal_code: true
23
+ postal_code_format: 988\d{2}
23
24
  unofficial_names:
24
25
  - New Caledonia
25
26
  - Neukaledonien
@@ -20,6 +20,7 @@ NE:
20
20
  un_locode: NE
21
21
  nationality: Nigerian
22
22
  postal_code: true
23
+ postal_code_format: "\\d{4}"
23
24
  unofficial_names:
24
25
  - Niger
25
26
  - Níger
@@ -33,16 +34,16 @@ NE:
33
34
  latitude_dec: '17.424074172973633'
34
35
  longitude: 8.081666
35
36
  longitude_dec: '9.400633811950684'
36
- max_latitude: 23.4999999
37
+ max_latitude: 23.4999997
37
38
  max_longitude: 15.9990339
38
39
  min_latitude: 11.693756
39
- min_longitude: 0.1617178
40
+ min_longitude: 0.1617177
40
41
  bounds:
41
42
  northeast:
42
- lat: 23.4999999
43
+ lat: 23.4999997
43
44
  lng: 15.9990339
44
45
  southwest:
45
46
  lat: 11.693756
46
- lng: 0.1617178
47
+ lng: 0.1617177
47
48
  currency_code: XOF
48
49
  start_of_week: monday
@@ -20,6 +20,7 @@ NF:
20
20
  un_locode: NF
21
21
  nationality: Norfolk Islander
22
22
  postal_code: true
23
+ postal_code_format: '2899'
23
24
  unofficial_names:
24
25
  - Norfolk Island
25
26
  - Norfolkinsel
@@ -4,7 +4,7 @@ NG:
4
4
  alpha2: NG
5
5
  alpha3: NGA
6
6
  country_code: '234'
7
- international_prefix: 009
7
+ international_prefix: '009'
8
8
  ioc: NGR
9
9
  gec: NI
10
10
  name: Nigeria
@@ -26,6 +26,7 @@ NG:
26
26
  super_reduced:
27
27
  parking:
28
28
  postal_code: true
29
+ postal_code_format: "\\d{6}"
29
30
  unofficial_names:
30
31
  - Nigeria
31
32
  - Nigéria
@@ -20,6 +20,7 @@ NI:
20
20
  un_locode: NI
21
21
  nationality: Nicaraguan
22
22
  postal_code: true
23
+ postal_code_format: "\\d{5}"
23
24
  unofficial_names:
24
25
  - Nicaragua
25
26
  - ニカラグア
@@ -32,13 +33,13 @@ NI:
32
33
  latitude_dec: '12.903773307800293'
33
34
  longitude: -85.207229
34
35
  longitude_dec: "-84.92182159423828"
35
- max_latitude: 15.0302755
36
+ max_latitude: 15.0297369
36
37
  max_longitude: -82.2766
37
38
  min_latitude: 10.7080549
38
39
  min_longitude: -87.7588
39
40
  bounds:
40
41
  northeast:
41
- lat: 15.0302755
42
+ lat: 15.0297369
42
43
  lng: -82.2766
43
44
  southwest:
44
45
  lat: 10.7080549
@@ -29,10 +29,11 @@ NL:
29
29
  vat_rates:
30
30
  standard: 21
31
31
  reduced:
32
- - 6
33
- super_reduced:
34
- parking:
32
+ - 9
33
+ super_reduced:
34
+ parking:
35
35
  postal_code: true
36
+ postal_code_format: "\\d{4} ?[A-Z]{2}"
36
37
  unofficial_names:
37
38
  - Netherlands
38
39
  - The Netherlands
@@ -31,6 +31,7 @@
31
31
  super_reduced:
32
32
  parking:
33
33
  postal_code: true
34
+ postal_code_format: "\\d{4}"
34
35
  unofficial_names:
35
36
  - Norway
36
37
  - Norwegen
@@ -50,13 +51,13 @@
50
51
  longitude: 8.468945999999999
51
52
  longitude_dec: '14.899925231933594'
52
53
  max_latitude: 71.30780000000001
53
- max_longitude: 31.3549998
54
+ max_longitude: 31.3549999
54
55
  min_latitude: 57.8097
55
56
  min_longitude: 4.0649
56
57
  bounds:
57
58
  northeast:
58
59
  lat: 71.30780000000001
59
- lng: 31.3549998
60
+ lng: 31.3549999
60
61
  southwest:
61
62
  lat: 57.8097
62
63
  lng: 4.0649