countries 4.2.3 → 5.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (520) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/codeql-analysis.yml +70 -0
  3. data/.github/workflows/tests.yml +3 -7
  4. data/.rubocop.yml +40 -1
  5. data/.rubocop_todo.yml +8 -41
  6. data/CHANGELOG.md +35 -2
  7. data/Gemfile +5 -3
  8. data/README.markdown +56 -62
  9. data/Rakefile +21 -45
  10. data/UPGRADE.md +39 -0
  11. data/bin/console +1 -0
  12. data/countries.gemspec +7 -6
  13. data/lib/countries/cache/countries.json +1 -1
  14. data/lib/countries/cache/locales/ab.json +1 -1
  15. data/lib/countries/cache/locales/af.json +1 -1
  16. data/lib/countries/cache/locales/ak.json +1 -1
  17. data/lib/countries/cache/locales/am.json +1 -1
  18. data/lib/countries/cache/locales/an.json +1 -1
  19. data/lib/countries/cache/locales/ar.json +1 -1
  20. data/lib/countries/cache/locales/as.json +1 -1
  21. data/lib/countries/cache/locales/ay.json +1 -1
  22. data/lib/countries/cache/locales/az.json +1 -1
  23. data/lib/countries/cache/locales/ba.json +1 -1
  24. data/lib/countries/cache/locales/be.json +1 -1
  25. data/lib/countries/cache/locales/bg.json +1 -1
  26. data/lib/countries/cache/locales/bi.json +1 -1
  27. data/lib/countries/cache/locales/bn-in.json +1 -1
  28. data/lib/countries/cache/locales/bn.json +1 -1
  29. data/lib/countries/cache/locales/br.json +1 -1
  30. data/lib/countries/cache/locales/bs.json +1 -1
  31. data/lib/countries/cache/locales/ca.json +1 -1
  32. data/lib/countries/cache/locales/ce.json +1 -1
  33. data/lib/countries/cache/locales/ch.json +1 -1
  34. data/lib/countries/cache/locales/cs.json +1 -1
  35. data/lib/countries/cache/locales/cv.json +1 -1
  36. data/lib/countries/cache/locales/cy.json +1 -1
  37. data/lib/countries/cache/locales/da.json +1 -1
  38. data/lib/countries/cache/locales/de.json +1 -1
  39. data/lib/countries/cache/locales/dv.json +1 -1
  40. data/lib/countries/cache/locales/dz.json +1 -1
  41. data/lib/countries/cache/locales/ee.json +1 -1
  42. data/lib/countries/cache/locales/el.json +1 -1
  43. data/lib/countries/cache/locales/en.json +1 -1
  44. data/lib/countries/cache/locales/eo.json +1 -1
  45. data/lib/countries/cache/locales/es.json +1 -1
  46. data/lib/countries/cache/locales/et.json +1 -1
  47. data/lib/countries/cache/locales/eu.json +1 -1
  48. data/lib/countries/cache/locales/fa.json +1 -1
  49. data/lib/countries/cache/locales/ff.json +1 -1
  50. data/lib/countries/cache/locales/fi.json +1 -1
  51. data/lib/countries/cache/locales/fo.json +1 -1
  52. data/lib/countries/cache/locales/fr.json +1 -1
  53. data/lib/countries/cache/locales/fy.json +1 -1
  54. data/lib/countries/cache/locales/ga.json +1 -1
  55. data/lib/countries/cache/locales/gl.json +1 -1
  56. data/lib/countries/cache/locales/gn.json +1 -1
  57. data/lib/countries/cache/locales/gu.json +1 -1
  58. data/lib/countries/cache/locales/gv.json +1 -1
  59. data/lib/countries/cache/locales/ha.json +1 -1
  60. data/lib/countries/cache/locales/he.json +1 -1
  61. data/lib/countries/cache/locales/hi.json +1 -1
  62. data/lib/countries/cache/locales/hr.json +1 -1
  63. data/lib/countries/cache/locales/ht.json +1 -1
  64. data/lib/countries/cache/locales/hu.json +1 -1
  65. data/lib/countries/cache/locales/hy.json +1 -1
  66. data/lib/countries/cache/locales/ia.json +1 -1
  67. data/lib/countries/cache/locales/id.json +1 -1
  68. data/lib/countries/cache/locales/io.json +1 -1
  69. data/lib/countries/cache/locales/is.json +1 -1
  70. data/lib/countries/cache/locales/it.json +1 -1
  71. data/lib/countries/cache/locales/iu.json +1 -1
  72. data/lib/countries/cache/locales/ja.json +1 -1
  73. data/lib/countries/cache/locales/ka.json +1 -1
  74. data/lib/countries/cache/locales/ki.json +1 -1
  75. data/lib/countries/cache/locales/kk.json +1 -1
  76. data/lib/countries/cache/locales/kl.json +1 -1
  77. data/lib/countries/cache/locales/km.json +1 -1
  78. data/lib/countries/cache/locales/kn.json +1 -1
  79. data/lib/countries/cache/locales/ko.json +1 -1
  80. data/lib/countries/cache/locales/kv.json +1 -1
  81. data/lib/countries/cache/locales/kw.json +1 -1
  82. data/lib/countries/cache/locales/ky.json +1 -1
  83. data/lib/countries/cache/locales/lo.json +1 -1
  84. data/lib/countries/cache/locales/lt.json +1 -1
  85. data/lib/countries/cache/locales/lv.json +1 -1
  86. data/lib/countries/cache/locales/mi.json +1 -1
  87. data/lib/countries/cache/locales/mk.json +1 -1
  88. data/lib/countries/cache/locales/ml.json +1 -1
  89. data/lib/countries/cache/locales/mn.json +1 -1
  90. data/lib/countries/cache/locales/mr.json +1 -1
  91. data/lib/countries/cache/locales/ms.json +1 -1
  92. data/lib/countries/cache/locales/mt.json +1 -1
  93. data/lib/countries/cache/locales/my.json +1 -1
  94. data/lib/countries/cache/locales/na.json +1 -1
  95. data/lib/countries/cache/locales/nb.json +1 -1
  96. data/lib/countries/cache/locales/ne.json +1 -1
  97. data/lib/countries/cache/locales/nl.json +1 -1
  98. data/lib/countries/cache/locales/nn.json +1 -1
  99. data/lib/countries/cache/locales/nv.json +1 -1
  100. data/lib/countries/cache/locales/oc.json +1 -1
  101. data/lib/countries/cache/locales/or.json +1 -1
  102. data/lib/countries/cache/locales/pa.json +1 -1
  103. data/lib/countries/cache/locales/pi.json +1 -1
  104. data/lib/countries/cache/locales/pl.json +1 -1
  105. data/lib/countries/cache/locales/ps.json +1 -1
  106. data/lib/countries/cache/locales/pt-br.json +1 -1
  107. data/lib/countries/cache/locales/pt.json +1 -1
  108. data/lib/countries/cache/locales/ro.json +1 -1
  109. data/lib/countries/cache/locales/ru.json +1 -1
  110. data/lib/countries/cache/locales/rw.json +1 -1
  111. data/lib/countries/cache/locales/sc.json +1 -1
  112. data/lib/countries/cache/locales/sd.json +1 -1
  113. data/lib/countries/cache/locales/si.json +1 -1
  114. data/lib/countries/cache/locales/sk.json +1 -1
  115. data/lib/countries/cache/locales/sl.json +1 -1
  116. data/lib/countries/cache/locales/so.json +1 -1
  117. data/lib/countries/cache/locales/sq.json +1 -1
  118. data/lib/countries/cache/locales/sr.json +1 -1
  119. data/lib/countries/cache/locales/sv.json +1 -1
  120. data/lib/countries/cache/locales/sw.json +1 -1
  121. data/lib/countries/cache/locales/ta.json +1 -1
  122. data/lib/countries/cache/locales/te.json +1 -1
  123. data/lib/countries/cache/locales/tg.json +1 -1
  124. data/lib/countries/cache/locales/th.json +1 -1
  125. data/lib/countries/cache/locales/ti.json +1 -1
  126. data/lib/countries/cache/locales/tk.json +1 -1
  127. data/lib/countries/cache/locales/tl.json +1 -1
  128. data/lib/countries/cache/locales/tr.json +1 -1
  129. data/lib/countries/cache/locales/tt.json +1 -1
  130. data/lib/countries/cache/locales/ug.json +1 -1
  131. data/lib/countries/cache/locales/uk.json +1 -1
  132. data/lib/countries/cache/locales/ur.json +1 -1
  133. data/lib/countries/cache/locales/uz.json +1 -1
  134. data/lib/countries/cache/locales/ve.json +1 -1
  135. data/lib/countries/cache/locales/vi.json +1 -1
  136. data/lib/countries/cache/locales/wa.json +1 -1
  137. data/lib/countries/cache/locales/wo.json +1 -1
  138. data/lib/countries/cache/locales/xh.json +1 -1
  139. data/lib/countries/cache/locales/yo.json +1 -1
  140. data/lib/countries/cache/locales/zh-cn.json +1 -1
  141. data/lib/countries/cache/locales/zh-hk.json +1 -1
  142. data/lib/countries/cache/locales/zh-tw.json +1 -1
  143. data/lib/countries/cache/locales/zu.json +1 -1
  144. data/lib/countries/configuration.rb +2 -0
  145. data/lib/countries/country/class_methods.rb +20 -103
  146. data/lib/countries/country/currency_methods.rb +2 -0
  147. data/lib/countries/country/emoji.rb +2 -3
  148. data/lib/countries/country/finder_methods.rb +81 -0
  149. data/lib/countries/country.rb +32 -43
  150. data/lib/countries/data/countries/KN.yaml +0 -1
  151. data/lib/countries/data/subdivisions/AD.yaml +14 -7
  152. data/lib/countries/data/subdivisions/AE.yaml +14 -7
  153. data/lib/countries/data/subdivisions/AF.yaml +196 -201
  154. data/lib/countries/data/subdivisions/AG.yaml +16 -22
  155. data/lib/countries/data/subdivisions/AL.yaml +24 -12
  156. data/lib/countries/data/subdivisions/AM.yaml +22 -11
  157. data/lib/countries/data/subdivisions/AO.yaml +36 -18
  158. data/lib/countries/data/subdivisions/AR.yaml +48 -24
  159. data/lib/countries/data/subdivisions/AT.yaml +18 -9
  160. data/lib/countries/data/subdivisions/AU.yaml +16 -8
  161. data/lib/countries/data/subdivisions/AZ.yaml +434 -412
  162. data/lib/countries/data/subdivisions/BA.yaml +75 -223
  163. data/lib/countries/data/subdivisions/BB.yaml +22 -11
  164. data/lib/countries/data/subdivisions/BD.yaml +188 -116
  165. data/lib/countries/data/subdivisions/BE.yaml +174 -161
  166. data/lib/countries/data/subdivisions/BF.yaml +2918 -2860
  167. data/lib/countries/data/subdivisions/BG.yaml +56 -28
  168. data/lib/countries/data/subdivisions/BH.yaml +8 -21
  169. data/lib/countries/data/subdivisions/BI.yaml +176 -157
  170. data/lib/countries/data/subdivisions/BJ.yaml +24 -12
  171. data/lib/countries/data/subdivisions/BN.yaml +8 -4
  172. data/lib/countries/data/subdivisions/BO.yaml +18 -9
  173. data/lib/countries/data/subdivisions/BQ.yaml +6 -3
  174. data/lib/countries/data/subdivisions/BR.yaml +54 -27
  175. data/lib/countries/data/subdivisions/BS.yaml +575 -697
  176. data/lib/countries/data/subdivisions/BT.yaml +40 -20
  177. data/lib/countries/data/subdivisions/BW.yaml +337 -321
  178. data/lib/countries/data/subdivisions/BY.yaml +106 -116
  179. data/lib/countries/data/subdivisions/BZ.yaml +12 -6
  180. data/lib/countries/data/subdivisions/CA.yaml +26 -13
  181. data/lib/countries/data/subdivisions/CD.yaml +488 -525
  182. data/lib/countries/data/subdivisions/CF.yaml +34 -17
  183. data/lib/countries/data/subdivisions/CG.yaml +40 -28
  184. data/lib/countries/data/subdivisions/CH.yaml +52 -26
  185. data/lib/countries/data/subdivisions/CI.yaml +244 -516
  186. data/lib/countries/data/subdivisions/CL.yaml +81 -65
  187. data/lib/countries/data/subdivisions/CM.yaml +20 -10
  188. data/lib/countries/data/subdivisions/CN.yaml +2152 -2084
  189. data/lib/countries/data/subdivisions/CO.yaml +66 -33
  190. data/lib/countries/data/subdivisions/CR.yaml +14 -7
  191. data/lib/countries/data/subdivisions/CU.yaml +32 -16
  192. data/lib/countries/data/subdivisions/CV.yaml +427 -401
  193. data/lib/countries/data/subdivisions/CY.yaml +12 -6
  194. data/lib/countries/data/subdivisions/CZ.yaml +1116 -85
  195. data/lib/countries/data/subdivisions/DE.yaml +32 -16
  196. data/lib/countries/data/subdivisions/DJ.yaml +12 -6
  197. data/lib/countries/data/subdivisions/DK.yaml +25 -17
  198. data/lib/countries/data/subdivisions/DM.yaml +20 -10
  199. data/lib/countries/data/subdivisions/DO.yaml +84 -42
  200. data/lib/countries/data/subdivisions/DZ.yaml +96 -48
  201. data/lib/countries/data/subdivisions/EC.yaml +158 -134
  202. data/lib/countries/data/subdivisions/EE.yaml +501 -334
  203. data/lib/countries/data/subdivisions/EG.yaml +54 -27
  204. data/lib/countries/data/subdivisions/ER.yaml +12 -6
  205. data/lib/countries/data/subdivisions/ES.yaml +1459 -1390
  206. data/lib/countries/data/subdivisions/ET.yaml +22 -11
  207. data/lib/countries/data/subdivisions/FI.yaml +185 -1
  208. data/lib/countries/data/subdivisions/FJ.yaml +443 -424
  209. data/lib/countries/data/subdivisions/FM.yaml +8 -4
  210. data/lib/countries/data/subdivisions/FR.yaml +438 -275
  211. data/lib/countries/data/subdivisions/GA.yaml +18 -9
  212. data/lib/countries/data/subdivisions/GB.yaml +1185 -1708
  213. data/lib/countries/data/subdivisions/GD.yaml +14 -7
  214. data/lib/countries/data/subdivisions/GE.yaml +24 -12
  215. data/lib/countries/data/subdivisions/GH.yaml +114 -155
  216. data/lib/countries/data/subdivisions/GL.yaml +24 -79
  217. data/lib/countries/data/subdivisions/GM.yaml +12 -6
  218. data/lib/countries/data/subdivisions/GN.yaml +444 -403
  219. data/lib/countries/data/subdivisions/GQ.yaml +24 -13
  220. data/lib/countries/data/subdivisions/GR.yaml +114 -73
  221. data/lib/countries/data/subdivisions/GT.yaml +44 -22
  222. data/lib/countries/data/subdivisions/GW.yaml +69 -57
  223. data/lib/countries/data/subdivisions/GY.yaml +20 -10
  224. data/lib/countries/data/subdivisions/HN.yaml +36 -18
  225. data/lib/countries/data/subdivisions/HR.yaml +42 -21
  226. data/lib/countries/data/subdivisions/HT.yaml +73 -63
  227. data/lib/countries/data/subdivisions/HU.yaml +106 -63
  228. data/lib/countries/data/subdivisions/ID.yaml +229 -188
  229. data/lib/countries/data/subdivisions/IE.yaml +128 -97
  230. data/lib/countries/data/subdivisions/IL.yaml +12 -6
  231. data/lib/countries/data/subdivisions/IN.yaml +245 -396
  232. data/lib/countries/data/subdivisions/IQ.yaml +111 -91
  233. data/lib/countries/data/subdivisions/IR.yaml +1463 -1451
  234. data/lib/countries/data/subdivisions/IS.yaml +160 -25
  235. data/lib/countries/data/subdivisions/IT.yaml +8740 -8292
  236. data/lib/countries/data/subdivisions/JM.yaml +28 -14
  237. data/lib/countries/data/subdivisions/JO.yaml +24 -12
  238. data/lib/countries/data/subdivisions/JP.yaml +94 -47
  239. data/lib/countries/data/subdivisions/KE.yaml +95 -48
  240. data/lib/countries/data/subdivisions/KG.yaml +95 -86
  241. data/lib/countries/data/subdivisions/KH.yaml +64 -39
  242. data/lib/countries/data/subdivisions/KI.yaml +6 -3
  243. data/lib/countries/data/subdivisions/KM.yaml +6 -3
  244. data/lib/countries/data/subdivisions/KN.yaml +32 -16
  245. data/lib/countries/data/subdivisions/KP.yaml +24 -227
  246. data/lib/countries/data/subdivisions/KR.yaml +34 -17
  247. data/lib/countries/data/subdivisions/KW.yaml +12 -6
  248. data/lib/countries/data/subdivisions/KZ.yaml +47 -102
  249. data/lib/countries/data/subdivisions/LA.yaml +36 -34
  250. data/lib/countries/data/subdivisions/LB.yaml +71 -63
  251. data/lib/countries/data/subdivisions/LC.yaml +116 -106
  252. data/lib/countries/data/subdivisions/LI.yaml +22 -11
  253. data/lib/countries/data/subdivisions/LK.yaml +445 -411
  254. data/lib/countries/data/subdivisions/LR.yaml +146 -129
  255. data/lib/countries/data/subdivisions/LS.yaml +20 -10
  256. data/lib/countries/data/subdivisions/LT.yaml +1706 -1636
  257. data/lib/countries/data/subdivisions/LU.yaml +24 -12
  258. data/lib/countries/data/subdivisions/LV.yaml +1623 -1577
  259. data/lib/countries/data/subdivisions/LY.yaml +44 -22
  260. data/lib/countries/data/subdivisions/MA.yaml +810 -1589
  261. data/lib/countries/data/subdivisions/MC.yaml +261 -244
  262. data/lib/countries/data/subdivisions/MD.yaml +74 -79
  263. data/lib/countries/data/subdivisions/ME.yaml +217 -195
  264. data/lib/countries/data/subdivisions/MG.yaml +12 -6
  265. data/lib/countries/data/subdivisions/MH.yaml +167 -140
  266. data/lib/countries/data/subdivisions/MK.yaml +160 -80
  267. data/lib/countries/data/subdivisions/ML.yaml +48 -37
  268. data/lib/countries/data/subdivisions/MM.yaml +30 -15
  269. data/lib/countries/data/subdivisions/MN.yaml +44 -22
  270. data/lib/countries/data/subdivisions/MR.yaml +30 -34
  271. data/lib/countries/data/subdivisions/MT.yaml +136 -68
  272. data/lib/countries/data/subdivisions/MU.yaml +24 -262
  273. data/lib/countries/data/subdivisions/MV.yaml +161 -254
  274. data/lib/countries/data/subdivisions/MW.yaml +250 -219
  275. data/lib/countries/data/subdivisions/MX.yaml +67 -47
  276. data/lib/countries/data/subdivisions/MY.yaml +32 -16
  277. data/lib/countries/data/subdivisions/MZ.yaml +22 -11
  278. data/lib/countries/data/subdivisions/NA.yaml +58 -44
  279. data/lib/countries/data/subdivisions/NE.yaml +16 -8
  280. data/lib/countries/data/subdivisions/NG.yaml +74 -37
  281. data/lib/countries/data/subdivisions/NI.yaml +34 -17
  282. data/lib/countries/data/subdivisions/NL.yaml +303 -285
  283. data/lib/countries/data/subdivisions/NO.yaml +39 -17
  284. data/lib/countries/data/subdivisions/NP.yaml +302 -276
  285. data/lib/countries/data/subdivisions/NR.yaml +28 -14
  286. data/lib/countries/data/subdivisions/NZ.yaml +34 -17
  287. data/lib/countries/data/subdivisions/OM.yaml +260 -311
  288. data/lib/countries/data/subdivisions/PA.yaml +57 -44
  289. data/lib/countries/data/subdivisions/PE.yaml +107 -81
  290. data/lib/countries/data/subdivisions/PG.yaml +163 -158
  291. data/lib/countries/data/subdivisions/PH.yaml +5062 -4992
  292. data/lib/countries/data/subdivisions/PK.yaml +145 -235
  293. data/lib/countries/data/subdivisions/PL.yaml +51 -3
  294. data/lib/countries/data/subdivisions/PS.yaml +32 -16
  295. data/lib/countries/data/subdivisions/PT.yaml +53 -33
  296. data/lib/countries/data/subdivisions/PW.yaml +32 -16
  297. data/lib/countries/data/subdivisions/PY.yaml +36 -18
  298. data/lib/countries/data/subdivisions/QA.yaml +27 -78
  299. data/lib/countries/data/subdivisions/RO.yaml +84 -42
  300. data/lib/countries/data/subdivisions/RS.yaml +104 -72
  301. data/lib/countries/data/subdivisions/RU.yaml +166 -83
  302. data/lib/countries/data/subdivisions/RW.yaml +10 -5
  303. data/lib/countries/data/subdivisions/SA.yaml +26 -13
  304. data/lib/countries/data/subdivisions/SB.yaml +20 -10
  305. data/lib/countries/data/subdivisions/SC.yaml +54 -25
  306. data/lib/countries/data/subdivisions/SD.yaml +798 -780
  307. data/lib/countries/data/subdivisions/SE.yaml +42 -21
  308. data/lib/countries/data/subdivisions/SG.yaml +15 -10
  309. data/lib/countries/data/subdivisions/SH.yaml +21 -32
  310. data/lib/countries/data/subdivisions/SI.yaml +475 -263
  311. data/lib/countries/data/subdivisions/SK.yaml +16 -8
  312. data/lib/countries/data/subdivisions/SL.yaml +23 -18
  313. data/lib/countries/data/subdivisions/SM.yaml +18 -9
  314. data/lib/countries/data/subdivisions/SN.yaml +188 -174
  315. data/lib/countries/data/subdivisions/SO.yaml +36 -18
  316. data/lib/countries/data/subdivisions/SR.yaml +20 -10
  317. data/lib/countries/data/subdivisions/SS.yaml +20 -10
  318. data/lib/countries/data/subdivisions/ST.yaml +38 -52
  319. data/lib/countries/data/subdivisions/SV.yaml +28 -14
  320. data/lib/countries/data/subdivisions/SY.yaml +28 -14
  321. data/lib/countries/data/subdivisions/SZ.yaml +8 -4
  322. data/lib/countries/data/subdivisions/TD.yaml +312 -303
  323. data/lib/countries/data/subdivisions/TG.yaml +10 -5
  324. data/lib/countries/data/subdivisions/TH.yaml +211 -133
  325. data/lib/countries/data/subdivisions/TJ.yaml +161 -156
  326. data/lib/countries/data/subdivisions/TL.yaml +26 -13
  327. data/lib/countries/data/subdivisions/TM.yaml +12 -6
  328. data/lib/countries/data/subdivisions/TN.yaml +48 -24
  329. data/lib/countries/data/subdivisions/TO.yaml +10 -5
  330. data/lib/countries/data/subdivisions/TR.yaml +162 -81
  331. data/lib/countries/data/subdivisions/TT.yaml +128 -160
  332. data/lib/countries/data/subdivisions/TV.yaml +57 -63
  333. data/lib/countries/data/subdivisions/TW.yaml +143 -183
  334. data/lib/countries/data/subdivisions/TZ.yaml +62 -31
  335. data/lib/countries/data/subdivisions/UA.yaml +55 -28
  336. data/lib/countries/data/subdivisions/UG.yaml +4806 -4660
  337. data/lib/countries/data/subdivisions/UM.yaml +18 -9
  338. data/lib/countries/data/subdivisions/US.yaml +114 -57
  339. data/lib/countries/data/subdivisions/UY.yaml +99 -80
  340. data/lib/countries/data/subdivisions/UZ.yaml +28 -14
  341. data/lib/countries/data/subdivisions/VC.yaml +12 -6
  342. data/lib/countries/data/subdivisions/VE.yaml +50 -25
  343. data/lib/countries/data/subdivisions/VN.yaml +3576 -3513
  344. data/lib/countries/data/subdivisions/VU.yaml +12 -6
  345. data/lib/countries/data/subdivisions/WF.yaml +6 -3
  346. data/lib/countries/data/subdivisions/WS.yaml +22 -11
  347. data/lib/countries/data/subdivisions/YE.yaml +222 -200
  348. data/lib/countries/data/subdivisions/ZA.yaml +86 -100
  349. data/lib/countries/data/subdivisions/ZM.yaml +20 -10
  350. data/lib/countries/data/subdivisions/ZW.yaml +20 -10
  351. data/lib/countries/data/translations/countries-ab.yaml +254 -0
  352. data/lib/countries/data/translations/countries-af.yaml +254 -0
  353. data/lib/countries/data/translations/countries-ak.yaml +254 -0
  354. data/lib/countries/data/translations/countries-am.yaml +254 -0
  355. data/lib/countries/data/translations/countries-an.yaml +254 -0
  356. data/lib/countries/data/translations/countries-ar.yaml +254 -0
  357. data/lib/countries/data/translations/countries-as.yaml +254 -0
  358. data/lib/countries/data/translations/countries-ay.yaml +254 -0
  359. data/lib/countries/data/translations/countries-az.yaml +254 -0
  360. data/lib/countries/data/translations/countries-ba.yaml +254 -0
  361. data/lib/countries/data/translations/countries-be.yaml +254 -0
  362. data/lib/countries/data/translations/countries-bg.yaml +254 -0
  363. data/lib/countries/data/translations/countries-bi.yaml +254 -0
  364. data/lib/countries/data/translations/countries-bn.yaml +254 -0
  365. data/lib/countries/data/translations/countries-bn_IN.yaml +254 -0
  366. data/lib/countries/data/translations/countries-br.yaml +254 -0
  367. data/lib/countries/data/translations/countries-bs.yaml +254 -0
  368. data/lib/countries/data/translations/countries-ca.yaml +254 -0
  369. data/lib/countries/data/translations/countries-ce.yaml +254 -0
  370. data/lib/countries/data/translations/countries-ch.yaml +254 -0
  371. data/lib/countries/data/translations/countries-cs.yaml +254 -0
  372. data/lib/countries/data/translations/countries-cv.yaml +254 -0
  373. data/lib/countries/data/translations/countries-cy.yaml +254 -0
  374. data/lib/countries/data/translations/countries-da.yaml +254 -0
  375. data/lib/countries/data/translations/countries-de.yaml +254 -0
  376. data/lib/countries/data/translations/countries-dv.yaml +254 -0
  377. data/lib/countries/data/translations/countries-dz.yaml +254 -0
  378. data/lib/countries/data/translations/countries-ee.yaml +254 -0
  379. data/lib/countries/data/translations/countries-el.yaml +254 -0
  380. data/lib/countries/data/translations/countries-en.yaml +254 -0
  381. data/lib/countries/data/translations/countries-eo.yaml +254 -0
  382. data/lib/countries/data/translations/countries-es.yaml +254 -0
  383. data/lib/countries/data/translations/countries-et.yaml +254 -0
  384. data/lib/countries/data/translations/countries-eu.yaml +254 -0
  385. data/lib/countries/data/translations/countries-fa.yaml +254 -0
  386. data/lib/countries/data/translations/countries-ff.yaml +254 -0
  387. data/lib/countries/data/translations/countries-fi.yaml +254 -0
  388. data/lib/countries/data/translations/countries-fo.yaml +254 -0
  389. data/lib/countries/data/translations/countries-fr.yaml +254 -0
  390. data/lib/countries/data/translations/countries-fy.yaml +254 -0
  391. data/lib/countries/data/translations/countries-ga.yaml +254 -0
  392. data/lib/countries/data/translations/countries-gl.yaml +254 -0
  393. data/lib/countries/data/translations/countries-gn.yaml +254 -0
  394. data/lib/countries/data/translations/countries-gu.yaml +254 -0
  395. data/lib/countries/data/translations/countries-gv.yaml +254 -0
  396. data/lib/countries/data/translations/countries-ha.yaml +254 -0
  397. data/lib/countries/data/translations/countries-he.yaml +254 -0
  398. data/lib/countries/data/translations/countries-hi.yaml +254 -0
  399. data/lib/countries/data/translations/countries-hr.yaml +254 -0
  400. data/lib/countries/data/translations/countries-ht.yaml +254 -0
  401. data/lib/countries/data/translations/countries-hu.yaml +254 -0
  402. data/lib/countries/data/translations/countries-hy.yaml +254 -0
  403. data/lib/countries/data/translations/countries-ia.yaml +254 -0
  404. data/lib/countries/data/translations/countries-id.yaml +254 -0
  405. data/lib/countries/data/translations/countries-io.yaml +254 -0
  406. data/lib/countries/data/translations/countries-is.yaml +254 -0
  407. data/lib/countries/data/translations/countries-it.yaml +254 -0
  408. data/lib/countries/data/translations/countries-iu.yaml +254 -0
  409. data/lib/countries/data/translations/countries-ja.yaml +254 -0
  410. data/lib/countries/data/translations/countries-ka.yaml +254 -0
  411. data/lib/countries/data/translations/countries-ki.yaml +254 -0
  412. data/lib/countries/data/translations/countries-kk.yaml +254 -0
  413. data/lib/countries/data/translations/countries-kl.yaml +254 -0
  414. data/lib/countries/data/translations/countries-km.yaml +254 -0
  415. data/lib/countries/data/translations/countries-kn.yaml +254 -0
  416. data/lib/countries/data/translations/countries-ko.yaml +254 -0
  417. data/lib/countries/data/translations/countries-ku.yaml +254 -0
  418. data/lib/countries/data/translations/countries-kv.yaml +254 -0
  419. data/lib/countries/data/translations/countries-kw.yaml +254 -0
  420. data/lib/countries/data/translations/countries-ky.yaml +254 -0
  421. data/lib/countries/data/translations/countries-lo.yaml +254 -0
  422. data/lib/countries/data/translations/countries-lt.yaml +254 -0
  423. data/lib/countries/data/translations/countries-lv.yaml +254 -0
  424. data/lib/countries/data/translations/countries-mi.yaml +254 -0
  425. data/lib/countries/data/translations/countries-mk.yaml +254 -0
  426. data/lib/countries/data/translations/countries-ml.yaml +254 -0
  427. data/lib/countries/data/translations/countries-mn.yaml +254 -0
  428. data/lib/countries/data/translations/countries-mr.yaml +254 -0
  429. data/lib/countries/data/translations/countries-ms.yaml +254 -0
  430. data/lib/countries/data/translations/countries-mt.yaml +254 -0
  431. data/lib/countries/data/translations/countries-my.yaml +254 -0
  432. data/lib/countries/data/translations/countries-na.yaml +254 -0
  433. data/lib/countries/data/translations/countries-nb.yaml +254 -0
  434. data/lib/countries/data/translations/countries-ne.yaml +254 -0
  435. data/lib/countries/data/translations/countries-nl.yaml +254 -0
  436. data/lib/countries/data/translations/countries-nn.yaml +254 -0
  437. data/lib/countries/data/translations/countries-nv.yaml +254 -0
  438. data/lib/countries/data/translations/countries-oc.yaml +254 -0
  439. data/lib/countries/data/translations/countries-or.yaml +254 -0
  440. data/lib/countries/data/translations/countries-pa.yaml +254 -0
  441. data/lib/countries/data/translations/countries-pi.yaml +254 -0
  442. data/lib/countries/data/translations/countries-pl.yaml +254 -0
  443. data/lib/countries/data/translations/countries-ps.yaml +254 -0
  444. data/lib/countries/data/translations/countries-pt.yaml +254 -0
  445. data/lib/countries/data/translations/countries-pt_BR.yaml +254 -0
  446. data/lib/countries/data/translations/countries-ro.yaml +254 -0
  447. data/lib/countries/data/translations/countries-ru.yaml +254 -0
  448. data/lib/countries/data/translations/countries-rw.yaml +254 -0
  449. data/lib/countries/data/translations/countries-sc.yaml +254 -0
  450. data/lib/countries/data/translations/countries-sd.yaml +254 -0
  451. data/lib/countries/data/translations/countries-si.yaml +254 -0
  452. data/lib/countries/data/translations/countries-sk.yaml +254 -0
  453. data/lib/countries/data/translations/countries-sl.yaml +254 -0
  454. data/lib/countries/data/translations/countries-so.yaml +254 -0
  455. data/lib/countries/data/translations/countries-sq.yaml +254 -0
  456. data/lib/countries/data/translations/countries-sr.yaml +254 -0
  457. data/lib/countries/data/translations/countries-sv.yaml +254 -0
  458. data/lib/countries/data/translations/countries-sw.yaml +254 -0
  459. data/lib/countries/data/translations/countries-ta.yaml +254 -0
  460. data/lib/countries/data/translations/countries-te.yaml +254 -0
  461. data/lib/countries/data/translations/countries-tg.yaml +254 -0
  462. data/lib/countries/data/translations/countries-th.yaml +254 -0
  463. data/lib/countries/data/translations/countries-ti.yaml +254 -0
  464. data/lib/countries/data/translations/countries-tk.yaml +254 -0
  465. data/lib/countries/data/translations/countries-tl.yaml +254 -0
  466. data/lib/countries/data/translations/countries-tr.yaml +254 -0
  467. data/lib/countries/data/translations/countries-tt.yaml +254 -0
  468. data/lib/countries/data/translations/countries-ug.yaml +254 -0
  469. data/lib/countries/data/translations/countries-uk.yaml +254 -0
  470. data/lib/countries/data/translations/countries-ur.yaml +254 -0
  471. data/lib/countries/data/translations/countries-uz.yaml +254 -0
  472. data/lib/countries/data/translations/countries-ve.yaml +254 -0
  473. data/lib/countries/data/translations/countries-vi.yaml +254 -0
  474. data/lib/countries/data/translations/countries-wa.yaml +254 -0
  475. data/lib/countries/data/translations/countries-wo.yaml +254 -0
  476. data/lib/countries/data/translations/countries-xh.yaml +254 -0
  477. data/lib/countries/data/translations/countries-yo.yaml +254 -0
  478. data/lib/countries/data/translations/countries-zh_CN.yaml +254 -0
  479. data/lib/countries/data/translations/countries-zh_HK.yaml +254 -0
  480. data/lib/countries/data/translations/countries-zh_TW.yaml +254 -0
  481. data/lib/countries/data/translations/countries-zu.yaml +254 -0
  482. data/lib/countries/data.rb +45 -42
  483. data/lib/countries/global.rb +2 -0
  484. data/lib/countries/iso3166.rb +3 -1
  485. data/lib/countries/kwarg_struct.rb +2 -0
  486. data/lib/countries/mongoid.rb +2 -0
  487. data/lib/countries/sources/cldr/downloader.rb +8 -8
  488. data/lib/countries/sources/cldr/subdivision.rb +3 -0
  489. data/lib/countries/sources/cldr/subdivision_updater.rb +23 -17
  490. data/lib/countries/sources/local/cached_loader.rb +3 -0
  491. data/lib/countries/sources/local/subdivision.rb +5 -2
  492. data/lib/countries/sources.rb +2 -0
  493. data/lib/countries/structure.rb +1 -1
  494. data/lib/countries/subdivision.rb +21 -8
  495. data/lib/countries/tasks/geocoding.rake +15 -6
  496. data/lib/countries/tasks/postal_codes.rake +5 -3
  497. data/lib/countries/timezones.rb +5 -2
  498. data/lib/countries/translations.rb +2 -0
  499. data/lib/countries/version.rb +3 -1
  500. data/lib/countries.rb +2 -0
  501. data/spec/00_global_spec.rb +2 -0
  502. data/spec/configuration_spec.rb +11 -5
  503. data/spec/country_spec.rb +131 -38
  504. data/spec/data_spec.rb +85 -21
  505. data/spec/mongoid_spec.rb +2 -2
  506. data/spec/perf_spec.rb +16 -16
  507. data/spec/spec_helper.rb +2 -0
  508. data/spec/subdivision_spec.rb +6 -4
  509. data/spec/thread_safety_spec.rb +4 -3
  510. data/spec/timezone_spec.rb +2 -0
  511. metadata +146 -34
  512. data/lib/countries/cache/locales/zh.json +0 -1
  513. data/lib/countries/data/subdivisions/AI.yaml +0 -197
  514. data/lib/countries/data/subdivisions/BM.yaml +0 -155
  515. data/lib/countries/data/subdivisions/CK.yaml +0 -155
  516. data/lib/countries/data/subdivisions/EH.yaml +0 -80
  517. data/lib/countries/data/subdivisions/SJ.yaml +0 -29
  518. data/lib/countries/data/subdivisions/TK.yaml +0 -43
  519. data/lib/countries/data/translation_corrections.yaml +0 -51
  520. data/lib/countries/setup.rb +0 -18
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  AMA:
3
3
  name: Amazonas
4
- code:
4
+ code: AMA
5
5
  unofficial_names: Amazonas
6
6
  geo:
7
7
  latitude: -1.4429123
@@ -68,9 +68,10 @@ AMA:
68
68
  'no': Amazonas
69
69
  yo_BJ: Amazonas Department
70
70
  comments:
71
+ type: department
71
72
  ANT:
72
73
  name: Antioquia
73
- code:
74
+ code: ANT
74
75
  unofficial_names: Antioquia
75
76
  geo:
76
77
  latitude: 7.1986064
@@ -142,9 +143,10 @@ ANT:
142
143
  'no': Antioquia
143
144
  yo_BJ: Antioquia Department
144
145
  comments:
146
+ type: department
145
147
  ARA:
146
148
  name: Arauca
147
- code:
149
+ code: ARA
148
150
  unofficial_names: Arauca
149
151
  geo:
150
152
  latitude: 7.079371
@@ -209,9 +211,10 @@ ARA:
209
211
  'no': Arauca
210
212
  yo_BJ: Arauca Department
211
213
  comments:
214
+ type: department
212
215
  ATL:
213
216
  name: Atlántico
214
- code:
217
+ code: ATL
215
218
  unofficial_names: Atlántico
216
219
  geo:
217
220
  latitude: 10.6966159
@@ -277,9 +280,10 @@ ATL:
277
280
  'no': Atlántico
278
281
  yo_BJ: Atlántico Department
279
282
  comments:
283
+ type: department
280
284
  BOL:
281
285
  name: Bolívar
282
- code:
286
+ code: BOL
283
287
  unofficial_names: Bolívar
284
288
  geo:
285
289
  latitude: 8.6704382
@@ -343,9 +347,10 @@ BOL:
343
347
  'no': Bolívar
344
348
  yo_BJ: Bolívar Department
345
349
  comments:
350
+ type: department
346
351
  BOY:
347
352
  name: Boyacá
348
- code:
353
+ code: BOY
349
354
  unofficial_names: Boyacá
350
355
  geo:
351
356
  latitude: 5.45
@@ -409,9 +414,10 @@ BOY:
409
414
  'no': Boyacá
410
415
  yo_BJ: Boyacá Department
411
416
  comments:
417
+ type: department
412
418
  CAL:
413
419
  name: Caldas
414
- code:
420
+ code: CAL
415
421
  unofficial_names: Caldas
416
422
  geo:
417
423
  latitude: 5.4815477
@@ -474,9 +480,10 @@ CAL:
474
480
  'no': Caldas
475
481
  yo_BJ: Caldas Department
476
482
  comments:
483
+ type: department
477
484
  CAQ:
478
485
  name: Caquetá
479
- code:
486
+ code: CAQ
480
487
  unofficial_names: Caquetá
481
488
  geo:
482
489
  latitude: 0.869892
@@ -538,9 +545,10 @@ CAQ:
538
545
  'no': Caquetá
539
546
  yo_BJ: Caquetá Department
540
547
  comments:
548
+ type: department
541
549
  CAS:
542
550
  name: Casanare
543
- code:
551
+ code: CAS
544
552
  unofficial_names: Casanare
545
553
  geo:
546
554
  latitude: 5.7589269
@@ -601,9 +609,10 @@ CAS:
601
609
  'no': Casanare
602
610
  yo_BJ: Casanare Department
603
611
  comments:
612
+ type: department
604
613
  CAU:
605
614
  name: Cauca
606
- code:
615
+ code: CAU
607
616
  unofficial_names: Cauca
608
617
  geo:
609
618
  latitude: 2.5725523
@@ -667,9 +676,10 @@ CAU:
667
676
  'no': Cauca
668
677
  yo_BJ: Cauca Department
669
678
  comments:
679
+ type: department
670
680
  CES:
671
681
  name: Cesar
672
- code:
682
+ code: CES
673
683
  unofficial_names: Cesar
674
684
  geo:
675
685
  latitude: 9.3372948
@@ -731,9 +741,10 @@ CES:
731
741
  'no': Cesar
732
742
  yo_BJ: Cesar Department
733
743
  comments:
744
+ type: department
734
745
  CHO:
735
746
  name: Chocó
736
- code:
747
+ code: CHO
737
748
  unofficial_names: Chocó
738
749
  geo:
739
750
  latitude: 5.2528033
@@ -797,9 +808,10 @@ CHO:
797
808
  'no': Chocó
798
809
  yo_BJ: Chocó Department
799
810
  comments:
811
+ type: department
800
812
  COR:
801
813
  name: Córdoba
802
- code:
814
+ code: COR
803
815
  unofficial_names: Córdoba
804
816
  geo:
805
817
  latitude: 8.4029253
@@ -861,9 +873,10 @@ COR:
861
873
  'no': Córdoba
862
874
  yo_BJ: Córdoba Department
863
875
  comments:
876
+ type: department
864
877
  CUN:
865
878
  name: Cundinamarca
866
- code:
879
+ code: CUN
867
880
  unofficial_names: Cundinamarca
868
881
  geo:
869
882
  latitude: 5.026002999999999
@@ -925,9 +938,10 @@ CUN:
925
938
  'no': Cundinamarca
926
939
  yo_BJ: Cundinamarca Department
927
940
  comments:
941
+ type: department
928
942
  DC:
929
943
  name: Distrito Capital de Bogotá
930
- code:
944
+ code: DC
931
945
  unofficial_names:
932
946
  - Santafé de Bogotá Distrito Capital
933
947
  geo:
@@ -1021,9 +1035,10 @@ DC:
1021
1035
  'no': Bogotá
1022
1036
  yo_BJ: Bogotá
1023
1037
  comments:
1038
+ type: capital_district
1024
1039
  GUA:
1025
1040
  name: Guainía
1026
- code:
1041
+ code: GUA
1027
1042
  unofficial_names: Guainía
1028
1043
  geo:
1029
1044
  latitude: 2.585393
@@ -1083,9 +1098,10 @@ GUA:
1083
1098
  'no': Guainía
1084
1099
  yo_BJ: Guainía Department
1085
1100
  comments:
1101
+ type: department
1086
1102
  GUV:
1087
1103
  name: Guaviare
1088
- code:
1104
+ code: GUV
1089
1105
  unofficial_names: Guaviare
1090
1106
  geo:
1091
1107
  latitude: 1.0619181
@@ -1146,9 +1162,10 @@ GUV:
1146
1162
  'no': Guaviare
1147
1163
  yo_BJ: Guaviare Department
1148
1164
  comments:
1165
+ type: department
1149
1166
  HUI:
1150
1167
  name: Huila
1151
- code:
1168
+ code: HUI
1152
1169
  unofficial_names: Huila
1153
1170
  geo:
1154
1171
  latitude: 2.5359349
@@ -1209,9 +1226,10 @@ HUI:
1209
1226
  'no': Huila
1210
1227
  yo_BJ: Huila Department
1211
1228
  comments:
1229
+ type: department
1212
1230
  LAG:
1213
1231
  name: La Guajira
1214
- code:
1232
+ code: LAG
1215
1233
  unofficial_names: La Guajira
1216
1234
  geo:
1217
1235
  latitude: 11.3547743
@@ -1271,9 +1289,10 @@ LAG:
1271
1289
  'no': La Guajira
1272
1290
  yo_BJ: La Guajira Department
1273
1291
  comments:
1292
+ type: department
1274
1293
  MAG:
1275
1294
  name: Magdalena
1276
- code:
1295
+ code: MAG
1277
1296
  unofficial_names: Magdalena
1278
1297
  geo:
1279
1298
  latitude: 10.4113014
@@ -1340,9 +1359,10 @@ MAG:
1340
1359
  'no': Magdalena
1341
1360
  yo_BJ: Magdalena Department
1342
1361
  comments:
1362
+ type: department
1343
1363
  MET:
1344
1364
  name: Meta
1345
- code:
1365
+ code: MET
1346
1366
  unofficial_names: Meta
1347
1367
  geo:
1348
1368
  latitude: 3.2719904
@@ -1403,9 +1423,10 @@ MET:
1403
1423
  'no': Meta
1404
1424
  yo_BJ: Meta Department
1405
1425
  comments:
1426
+ type: department
1406
1427
  NAR:
1407
1428
  name: Nariño
1408
- code:
1429
+ code: NAR
1409
1430
  unofficial_names: Nariño
1410
1431
  geo:
1411
1432
  latitude: 1.289822
@@ -1469,9 +1490,10 @@ NAR:
1469
1490
  'no': Nariño
1470
1491
  yo_BJ: Nariño Department
1471
1492
  comments:
1493
+ type: department
1472
1494
  NSA:
1473
1495
  name: Norte de Santander
1474
- code:
1496
+ code: NSA
1475
1497
  unofficial_names: Norte de Santander
1476
1498
  geo:
1477
1499
  latitude: 7.9462831
@@ -1534,9 +1556,10 @@ NSA:
1534
1556
  'no': Norte de Santander
1535
1557
  yo_BJ: Norte de Santander Department
1536
1558
  comments:
1559
+ type: department
1537
1560
  PUT:
1538
1561
  name: Putumayo
1539
- code:
1562
+ code: PUT
1540
1563
  unofficial_names: Putumayo
1541
1564
  geo:
1542
1565
  latitude: 0.4359506
@@ -1597,9 +1620,10 @@ PUT:
1597
1620
  'no': Putumayo
1598
1621
  yo_BJ: Putumayo Department
1599
1622
  comments:
1623
+ type: department
1600
1624
  QUI:
1601
1625
  name: Quindío
1602
- code:
1626
+ code: QUI
1603
1627
  unofficial_names: Quindío
1604
1628
  geo:
1605
1629
  latitude: 4.4610191
@@ -1660,9 +1684,10 @@ QUI:
1660
1684
  'no': Quindío
1661
1685
  yo_BJ: Quindío Department
1662
1686
  comments:
1687
+ type: department
1663
1688
  RIS:
1664
1689
  name: Risaralda
1665
- code:
1690
+ code: RIS
1666
1691
  unofficial_names: Risaralda
1667
1692
  geo:
1668
1693
  latitude: 4.99243
@@ -1723,9 +1748,10 @@ RIS:
1723
1748
  'no': Risaralda
1724
1749
  yo_BJ: Risaralda Department
1725
1750
  comments:
1751
+ type: department
1726
1752
  SAN:
1727
1753
  name: Santander
1728
- code:
1754
+ code: SAN
1729
1755
  unofficial_names: Santander
1730
1756
  geo:
1731
1757
  latitude: 6.6437076
@@ -1785,9 +1811,10 @@ SAN:
1785
1811
  'no': Santander
1786
1812
  yo_BJ: Santander Department
1787
1813
  comments:
1814
+ type: department
1788
1815
  SAP:
1789
1816
  name: San Andrés, Providencia y Santa Catalina
1790
- code:
1817
+ code: SAP
1791
1818
  unofficial_names: San Andrés, Providencia y Santa Catalina
1792
1819
  geo:
1793
1820
  latitude: 13.35395
@@ -1853,9 +1880,10 @@ SAP:
1853
1880
  'no': San Andrés y Providencia
1854
1881
  yo_BJ: San Andrés, Providencia àti Santa Catalina
1855
1882
  comments:
1883
+ type: department
1856
1884
  SUC:
1857
1885
  name: Sucre
1858
- code:
1886
+ code: SUC
1859
1887
  unofficial_names: Sucre
1860
1888
  geo:
1861
1889
  latitude: 8.813889999999999
@@ -1915,9 +1943,10 @@ SUC:
1915
1943
  'no': Sucre
1916
1944
  yo_BJ: Sucre Department
1917
1945
  comments:
1946
+ type: department
1918
1947
  TOL:
1919
1948
  name: Tolima
1920
- code:
1949
+ code: TOL
1921
1950
  unofficial_names: Tolima
1922
1951
  geo:
1923
1952
  latitude: 4.092516799999999
@@ -1978,9 +2007,10 @@ TOL:
1978
2007
  'no': Tolima
1979
2008
  yo_BJ: Tolima Department
1980
2009
  comments:
2010
+ type: department
1981
2011
  VAC:
1982
2012
  name: Valle del Cauca
1983
- code:
2013
+ code: VAC
1984
2014
  unofficial_names: Valle del Cauca
1985
2015
  geo:
1986
2016
  latitude: 3.8008893
@@ -2043,9 +2073,10 @@ VAC:
2043
2073
  'no': Valle del Cauca
2044
2074
  yo_BJ: Valle del Cauca Department
2045
2075
  comments:
2076
+ type: department
2046
2077
  VAU:
2047
2078
  name: Vaupés
2048
- code:
2079
+ code: VAU
2049
2080
  unofficial_names: Vaupés
2050
2081
  geo:
2051
2082
  latitude: 0.8553561
@@ -2106,9 +2137,10 @@ VAU:
2106
2137
  'no': Vaupés
2107
2138
  yo_BJ: Vaupés Department
2108
2139
  comments:
2140
+ type: department
2109
2141
  VID:
2110
2142
  name: Vichada
2111
- code:
2143
+ code: VID
2112
2144
  unofficial_names: Vichada
2113
2145
  geo:
2114
2146
  latitude: 4.4234452
@@ -2168,3 +2200,4 @@ VID:
2168
2200
  'no': Vichada
2169
2201
  yo_BJ: Vichada Department
2170
2202
  comments:
2203
+ type: department
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  A:
3
3
  name: Alajuela
4
- code:
4
+ code: A
5
5
  unofficial_names: Alajuela
6
6
  geo:
7
7
  latitude: 10.391583
@@ -63,9 +63,10 @@ A:
63
63
  eu: Alajuela (probintzia)
64
64
  'no': Alajuela
65
65
  comments:
66
+ type: province
66
67
  C:
67
68
  name: Cartago
68
- code:
69
+ code: C
69
70
  unofficial_names: Cartago
70
71
  geo:
71
72
  latitude: 9.7539596
@@ -115,9 +116,10 @@ C:
115
116
  eu: Cartago (probintzia)
116
117
  'no': Cartago
117
118
  comments:
119
+ type: province
118
120
  G:
119
121
  name: Guanacaste
120
- code:
122
+ code: G
121
123
  unofficial_names: Guanacaste
122
124
  geo:
123
125
  latitude: 10.4957971
@@ -177,9 +179,10 @@ G:
177
179
  ccp: "\U00011109\U0001112A\U00011120\U0001111A\U00011107\U0001110C\U00011134\U00011111\U0001112C"
178
180
  'no': Guanacaste
179
181
  comments:
182
+ type: province
180
183
  H:
181
184
  name: Heredia
182
- code:
185
+ code: H
183
186
  unofficial_names: Heredia
184
187
  geo:
185
188
  latitude: 10.473523
@@ -231,9 +234,10 @@ H:
231
234
  eu: Heredia (probintzia)
232
235
  'no': Heredia
233
236
  comments:
237
+ type: province
234
238
  L:
235
239
  name: Limón
236
- code:
240
+ code: L
237
241
  unofficial_names: Limón
238
242
  geo:
239
243
  latitude: 9.983333
@@ -281,9 +285,10 @@ L:
281
285
  ccp: "\U00011123\U00011128\U0001111F\U00011127\U0001111A\U00011134"
282
286
  'no': Limón
283
287
  comments:
288
+ type: province
284
289
  P:
285
290
  name: Puntarenas
286
- code:
291
+ code: P
287
292
  unofficial_names: Puntarenas
288
293
  geo:
289
294
  latitude: 9.9778439
@@ -343,9 +348,10 @@ P:
343
348
  eu: Puntarenas (probintzia)
344
349
  'no': Puntarenas
345
350
  comments:
351
+ type: province
346
352
  SJ:
347
353
  name: San José
348
- code:
354
+ code: SJ
349
355
  unofficial_names: San José
350
356
  geo:
351
357
  latitude: 9.9280694
@@ -406,3 +412,4 @@ SJ:
406
412
  be: правінцыя Сан-Хасэ
407
413
  'no': San José
408
414
  comments:
415
+ type: province
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  '01':
3
3
  name: Pinar del Río
4
- code:
4
+ code: '01'
5
5
  unofficial_names: Pinar del Río
6
6
  geo:
7
7
  latitude: 22.412222
@@ -63,9 +63,10 @@
63
63
  mk: Пинар дел Рио
64
64
  'no': Pinar del Rio
65
65
  comments:
66
+ type: province
66
67
  '03':
67
68
  name: La Habana
68
- code:
69
+ code: '03'
69
70
  unofficial_names: La Habana
70
71
  geo:
71
72
  latitude: 23.159167
@@ -90,9 +91,10 @@
90
91
  sv: Provincia de Ciudad de La Habana
91
92
  ccp: "\U00011126\U0001111E\U0001111A"
92
93
  comments:
94
+ type: province
93
95
  '04':
94
96
  name: Matanzas
95
- code:
97
+ code: '04'
96
98
  unofficial_names: Matanzas
97
99
  geo:
98
100
  latitude: 22.5767123
@@ -155,9 +157,10 @@
155
157
  mk: Матансас
156
158
  'no': Matanzas
157
159
  comments:
160
+ type: province
158
161
  '05':
159
162
  name: Villa Clara
160
- code:
163
+ code: '05'
161
164
  unofficial_names: Villa Clara
162
165
  geo:
163
166
  latitude: 22.4937204
@@ -221,9 +224,10 @@
221
224
  mk: Виља Клара
222
225
  'no': Villa Clara Provinsen
223
226
  comments:
227
+ type: province
224
228
  '06':
225
229
  name: Cienfuegos
226
- code:
230
+ code: '06'
227
231
  unofficial_names: Cienfuegos
228
232
  geo:
229
233
  latitude: 22.2379783
@@ -283,9 +287,10 @@
283
287
  mk: Сиенфуегос
284
288
  'no': Cienfuegos
285
289
  comments:
290
+ type: province
286
291
  '07':
287
292
  name: Sancti Spíritus
288
- code:
293
+ code: '07'
289
294
  unofficial_names: Sancti Spíritus
290
295
  geo:
291
296
  latitude: 21.9938214
@@ -342,9 +347,10 @@
342
347
  mk: Санкти Спиритус
343
348
  'no': Sancti Spíritus
344
349
  comments:
350
+ type: province
345
351
  '08':
346
352
  name: Ciego de Ávila
347
- code:
353
+ code: '08'
348
354
  unofficial_names: Ciego de Ávila
349
355
  geo:
350
356
  latitude: 21.9329515
@@ -403,9 +409,10 @@
403
409
  mk: Сиего де Авила
404
410
  'no': Ciego de Avila
405
411
  comments:
412
+ type: province
406
413
  '09':
407
414
  name: Camagüey
408
- code:
415
+ code: '09'
409
416
  unofficial_names: Camagüey
410
417
  geo:
411
418
  latitude: 21.3926035
@@ -466,9 +473,10 @@
466
473
  mk: Камагвеј
467
474
  'no': Camagüey
468
475
  comments:
476
+ type: province
469
477
  '10':
470
478
  name: Las Tunas
471
- code:
479
+ code: '10'
472
480
  unofficial_names: Las Tunas
473
481
  geo:
474
482
  latitude: 21.0605162
@@ -528,9 +536,10 @@
528
536
  mk: Лас Тунас
529
537
  'no': Las Tunas
530
538
  comments:
539
+ type: province
531
540
  '11':
532
541
  name: Holguín
533
- code:
542
+ code: '11'
534
543
  unofficial_names: Holguín
535
544
  geo:
536
545
  latitude: 20.7837893
@@ -594,9 +603,10 @@
594
603
  mk: Олгин
595
604
  'no': Holguín
596
605
  comments:
606
+ type: province
597
607
  '12':
598
608
  name: Granma
599
- code:
609
+ code: '12'
600
610
  unofficial_names: Granma
601
611
  geo:
602
612
  latitude: 20.3844902
@@ -659,9 +669,10 @@
659
669
  mk: Гранма
660
670
  'no': Granma
661
671
  comments:
672
+ type: province
662
673
  '13':
663
674
  name: Santiago de Cuba
664
- code:
675
+ code: '13'
665
676
  unofficial_names: Santiago de Cuba
666
677
  geo:
667
678
  latitude: 20.01693
@@ -720,9 +731,10 @@
720
731
  mk: Сантјаго де Куба
721
732
  'no': Santiago de Cuba
722
733
  comments:
734
+ type: province
723
735
  '14':
724
736
  name: Guantánamo
725
- code:
737
+ code: '14'
726
738
  unofficial_names: Guantánamo
727
739
  geo:
728
740
  latitude: 20.136667
@@ -768,9 +780,10 @@
768
780
  mk: Гвантанамо
769
781
  'no': Guantánamo
770
782
  comments:
783
+ type: province
771
784
  '15':
772
785
  name: Artemisa
773
- code:
786
+ code: '15'
774
787
  unofficial_names: Artemisa
775
788
  geo:
776
789
  latitude: 22.7522903
@@ -828,9 +841,10 @@
828
841
  mk: Артемиса
829
842
  'no': Artemisa provins
830
843
  comments:
844
+ type: province
831
845
  '16':
832
846
  name: Mayabeque
833
- code:
847
+ code: '16'
834
848
  unofficial_names: Mayabeque
835
849
  geo:
836
850
  latitude: 22.8926529
@@ -887,9 +901,10 @@
887
901
  mk: Мајабеке
888
902
  'no': Mayabeque provins
889
903
  comments:
904
+ type: province
890
905
  '99':
891
906
  name: Isla de la Juventud
892
- code:
907
+ code: '99'
893
908
  unofficial_names: Isla de la Juventud
894
909
  geo:
895
910
  latitude: 21.6066405
@@ -955,3 +970,4 @@
955
970
  mk: Исла де ла Хувентуд
956
971
  'no': Isla de la Juventud
957
972
  comments:
973
+ type: special_municipality