worldlite 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (253) hide show
  1. data/README.md +565 -4
  2. data/Rakefile +1 -2
  3. data/lib/worldlite.rb +1 -0
  4. data/lib/worldlite/africa/ao_angola.rb +14 -9
  5. data/lib/worldlite/africa/bf_burkina_faso.rb +14 -9
  6. data/lib/worldlite/africa/bi_burundi.rb +14 -9
  7. data/lib/worldlite/africa/bj_benin.rb +14 -9
  8. data/lib/worldlite/africa/bw_botswana.rb +15 -9
  9. data/lib/worldlite/africa/cd_congo_dr.rb +14 -9
  10. data/lib/worldlite/africa/cf_central_african_republic.rb +14 -9
  11. data/lib/worldlite/africa/cg_congo.rb +14 -9
  12. data/lib/worldlite/africa/ci_cote_divoire.rb +14 -9
  13. data/lib/worldlite/africa/cm_cameroon.rb +15 -9
  14. data/lib/worldlite/africa/cv_cape_verde.rb +14 -9
  15. data/lib/worldlite/africa/dj_djibouti.rb +14 -9
  16. data/lib/worldlite/africa/dz_algeria.rb +14 -9
  17. data/lib/worldlite/africa/eg_egypt.rb +14 -9
  18. data/lib/worldlite/africa/er_eritrea.rb +14 -9
  19. data/lib/worldlite/africa/et_ethiopia.rb +14 -9
  20. data/lib/worldlite/africa/ga_gabon.rb +14 -9
  21. data/lib/worldlite/africa/gh_ghana.rb +15 -9
  22. data/lib/worldlite/africa/gm_gambia.rb +15 -9
  23. data/lib/worldlite/africa/gn_guinea.rb +14 -9
  24. data/lib/worldlite/africa/gq_equatorial_guinea.rb +14 -9
  25. data/lib/worldlite/africa/gw_guinea_bissau.rb +14 -9
  26. data/lib/worldlite/africa/ke_kenya.rb +15 -9
  27. data/lib/worldlite/africa/km_comoros.rb +14 -9
  28. data/lib/worldlite/africa/lr_liberia.rb +14 -9
  29. data/lib/worldlite/africa/ls_lesotho.rb +15 -9
  30. data/lib/worldlite/africa/ly_libya.rb +14 -9
  31. data/lib/worldlite/africa/ma_morocco.rb +14 -9
  32. data/lib/worldlite/africa/mg_madagascar.rb +14 -9
  33. data/lib/worldlite/africa/ml_mali.rb +14 -9
  34. data/lib/worldlite/africa/mr_mauritania.rb +14 -9
  35. data/lib/worldlite/africa/mu_mauritius.rb +15 -9
  36. data/lib/worldlite/africa/mw_malawi.rb +15 -9
  37. data/lib/worldlite/africa/mz_mozambique.rb +15 -9
  38. data/lib/worldlite/africa/na_namibia.rb +15 -9
  39. data/lib/worldlite/africa/ne_niger.rb +14 -9
  40. data/lib/worldlite/africa/ng_nigeria.rb +15 -9
  41. data/lib/worldlite/africa/re_reunion.rb +13 -10
  42. data/lib/worldlite/africa/rw_rwanda.rb +15 -9
  43. data/lib/worldlite/africa/sd_sudan.rb +14 -9
  44. data/lib/worldlite/africa/sl_sierra_leone.rb +15 -9
  45. data/lib/worldlite/africa/sn_senegal.rb +14 -9
  46. data/lib/worldlite/africa/so_somalia.rb +14 -9
  47. data/lib/worldlite/africa/ss_south_sudan.rb +14 -9
  48. data/lib/worldlite/africa/st_sao_tome_and_principe.rb +14 -9
  49. data/lib/worldlite/africa/sz_swaziland.rb +15 -9
  50. data/lib/worldlite/africa/td_chad.rb +14 -9
  51. data/lib/worldlite/africa/tg_togo.rb +14 -9
  52. data/lib/worldlite/africa/tn_tunisia.rb +14 -9
  53. data/lib/worldlite/africa/tz_tanzania.rb +15 -9
  54. data/lib/worldlite/africa/ug_uganda.rb +15 -9
  55. data/lib/worldlite/africa/yc_seychelles.rb +15 -9
  56. data/lib/worldlite/africa/yt_mayotte.rb +13 -10
  57. data/lib/worldlite/africa/za_south_africa.rb +16 -9
  58. data/lib/worldlite/africa/zm_zambia.rb +15 -9
  59. data/lib/worldlite/africa/zw_zimbabwe.rb +14 -9
  60. data/lib/worldlite/asia/af_afghanistan.rb +14 -9
  61. data/lib/worldlite/asia/bd_bangladesh.rb +15 -9
  62. data/lib/worldlite/asia/bn_brunei.rb +15 -9
  63. data/lib/worldlite/asia/bt_bhutan.rb +14 -9
  64. data/lib/worldlite/asia/cc_cocos_keeling_islands.rb +13 -10
  65. data/lib/worldlite/asia/cn_china.rb +13 -9
  66. data/lib/worldlite/asia/cx_christmas_island.rb +13 -10
  67. data/lib/worldlite/asia/hk_hong_kong.rb +13 -9
  68. data/lib/worldlite/asia/id_indonesia.rb +13 -9
  69. data/lib/worldlite/asia/in_india.rb +16 -9
  70. data/lib/worldlite/asia/io_british_indian_ocean_territory.rb +13 -10
  71. data/lib/worldlite/asia/jp_japan.rb +13 -9
  72. data/lib/worldlite/asia/kg_kyrgyzstan.rb +14 -9
  73. data/lib/worldlite/asia/kh_cambodia.rb +14 -9
  74. data/lib/worldlite/asia/kp_north_korea.rb +14 -9
  75. data/lib/worldlite/asia/kr_south_korea.rb +13 -9
  76. data/lib/worldlite/asia/kz_kazakhstan.rb +14 -9
  77. data/lib/worldlite/asia/la_laos.rb +14 -9
  78. data/lib/worldlite/asia/lk_sri_lanka.rb +15 -9
  79. data/lib/worldlite/asia/mm_myanmar.rb +14 -9
  80. data/lib/worldlite/asia/mn_mongolia.rb +14 -9
  81. data/lib/worldlite/asia/mo_macau.rb +13 -10
  82. data/lib/worldlite/asia/mv_maldives.rb +15 -9
  83. data/lib/worldlite/asia/my_malaysia.rb +15 -9
  84. data/lib/worldlite/asia/np_nepal.rb +14 -9
  85. data/lib/worldlite/asia/ph_philippines.rb +14 -9
  86. data/lib/worldlite/asia/pk_pakistan.rb +15 -9
  87. data/lib/worldlite/asia/sg_singapore.rb +15 -9
  88. data/lib/worldlite/asia/th_thailand.rb +14 -9
  89. data/lib/worldlite/asia/tj_tajikistan.rb +14 -9
  90. data/lib/worldlite/asia/tl_timor_leste.rb +14 -9
  91. data/lib/worldlite/asia/tm_turkmenistan.rb +14 -9
  92. data/lib/worldlite/asia/tw_taiwan.rb +13 -9
  93. data/lib/worldlite/asia/uz_uzbekistan.rb +14 -9
  94. data/lib/worldlite/asia/vn_vietnam.rb +14 -9
  95. data/lib/worldlite/caribbean/ag_antigua_and_barbuda.rb +15 -9
  96. data/lib/worldlite/caribbean/ai_anguilla.rb +13 -10
  97. data/lib/worldlite/caribbean/aw_aruba.rb +13 -10
  98. data/lib/worldlite/caribbean/bb_barbados.rb +15 -9
  99. data/lib/worldlite/caribbean/bl_saint_barthelemy.rb +13 -10
  100. data/lib/worldlite/caribbean/bm_bermuda.rb +13 -10
  101. data/lib/worldlite/caribbean/bs_bahamas.rb +15 -9
  102. data/lib/worldlite/caribbean/cu_cuba.rb +14 -9
  103. data/lib/worldlite/caribbean/cw_curacao.rb +13 -10
  104. data/lib/worldlite/caribbean/dm_dominica.rb +15 -9
  105. data/lib/worldlite/caribbean/do_dominican_republic.rb +14 -9
  106. data/lib/worldlite/caribbean/gd_grenada.rb +15 -9
  107. data/lib/worldlite/caribbean/gp_guadeloupe.rb +13 -10
  108. data/lib/worldlite/caribbean/ht_haiti.rb +14 -9
  109. data/lib/worldlite/caribbean/jm_jamaica.rb +15 -9
  110. data/lib/worldlite/caribbean/kn_saint_kitts_and_nevis.rb +15 -9
  111. data/lib/worldlite/caribbean/ky_cayman_islands.rb +13 -10
  112. data/lib/worldlite/caribbean/lc_saint_lucia.rb +15 -9
  113. data/lib/worldlite/caribbean/mf_saint_martin_french.rb +13 -10
  114. data/lib/worldlite/caribbean/mq_martinique.rb +13 -10
  115. data/lib/worldlite/caribbean/ms_montserrat.rb +13 -10
  116. data/lib/worldlite/caribbean/pr_puerto_rico.rb +13 -9
  117. data/lib/worldlite/caribbean/tc_turks_and_caicos_islands.rb +13 -10
  118. data/lib/worldlite/caribbean/tt_trinidad_and_tobago.rb +15 -9
  119. data/lib/worldlite/caribbean/vc_saint_vincent_and_the_grenadines.rb +15 -9
  120. data/lib/worldlite/caribbean/vg_british_virgin_islands.rb +13 -10
  121. data/lib/worldlite/caribbean/vi_united_states_virgin_islands.rb +13 -10
  122. data/lib/worldlite/central_america/bz_belize.rb +15 -9
  123. data/lib/worldlite/central_america/cr_costa_rica.rb +14 -9
  124. data/lib/worldlite/central_america/gt_guatemala.rb +14 -9
  125. data/lib/worldlite/central_america/hn_honduras.rb +14 -9
  126. data/lib/worldlite/central_america/ni_nicaragua.rb +14 -9
  127. data/lib/worldlite/central_america/pa_panama.rb +14 -9
  128. data/lib/worldlite/central_america/sv_el_salvador.rb +14 -9
  129. data/lib/worldlite/country.rb +67 -10
  130. data/lib/worldlite/europe/ad_andorra.rb +15 -9
  131. data/lib/worldlite/europe/al_albania.rb +15 -9
  132. data/lib/worldlite/europe/am_armenia.rb +15 -9
  133. data/lib/worldlite/europe/at_austria.rb +17 -9
  134. data/lib/worldlite/europe/ax_aland_islands.rb +14 -10
  135. data/lib/worldlite/europe/az_azerbaijan.rb +15 -9
  136. data/lib/worldlite/europe/ba_bosnia_and_herzegovina.rb +15 -9
  137. data/lib/worldlite/europe/be_belgium.rb +17 -9
  138. data/lib/worldlite/europe/bg_bulgaria.rb +16 -9
  139. data/lib/worldlite/europe/by_belarus.rb +15 -9
  140. data/lib/worldlite/europe/ch_switzerland.rb +15 -9
  141. data/lib/worldlite/europe/cy_cyprus.rb +18 -9
  142. data/lib/worldlite/europe/cz_czech_republic.rb +16 -9
  143. data/lib/worldlite/europe/de_germany.rb +19 -9
  144. data/lib/worldlite/europe/dk_denmark.rb +16 -9
  145. data/lib/worldlite/europe/ee_estonia.rb +17 -9
  146. data/lib/worldlite/europe/en_england.rb +14 -9
  147. data/lib/worldlite/europe/es_spain.rb +17 -9
  148. data/lib/worldlite/europe/eu_european_union.rb +15 -10
  149. data/lib/worldlite/europe/fi_finland.rb +17 -9
  150. data/lib/worldlite/europe/fo_faroe_islands.rb +14 -9
  151. data/lib/worldlite/europe/fr_france.rb +19 -9
  152. data/lib/worldlite/europe/gb_great_britain.rb +20 -10
  153. data/lib/worldlite/europe/ge_georgia.rb +15 -9
  154. data/lib/worldlite/europe/gg_guernsey.rb +14 -10
  155. data/lib/worldlite/europe/gi_gibraltar.rb +14 -10
  156. data/lib/worldlite/europe/gr_greece.rb +17 -9
  157. data/lib/worldlite/europe/hr_croatia.rb +15 -9
  158. data/lib/worldlite/europe/hu_hungary.rb +16 -9
  159. data/lib/worldlite/europe/ie_irland.rb +17 -9
  160. data/lib/worldlite/europe/im_isle_of_man.rb +14 -10
  161. data/lib/worldlite/europe/is_iceland.rb +15 -9
  162. data/lib/worldlite/europe/it_italy.rb +19 -9
  163. data/lib/worldlite/europe/je_jersey.rb +14 -10
  164. data/lib/worldlite/europe/li_liechtenstein.rb +15 -9
  165. data/lib/worldlite/europe/lt_lithuania.rb +16 -9
  166. data/lib/worldlite/europe/lu_luxembourg.rb +17 -9
  167. data/lib/worldlite/europe/lv_latvija.rb +16 -9
  168. data/lib/worldlite/europe/mc_monaco.rb +16 -10
  169. data/lib/worldlite/europe/md_moldova.rb +15 -9
  170. data/lib/worldlite/europe/me_montenegro.rb +15 -9
  171. data/lib/worldlite/europe/mk_macedonia.rb +15 -9
  172. data/lib/worldlite/europe/mt_malta.rb +18 -9
  173. data/lib/worldlite/europe/nd_northern_ireland.rb +14 -9
  174. data/lib/worldlite/europe/nl_netherlands.rb +17 -9
  175. data/lib/worldlite/europe/no_norway.rb +15 -9
  176. data/lib/worldlite/europe/pl_poland.rb +16 -9
  177. data/lib/worldlite/europe/pt_portugal.rb +17 -9
  178. data/lib/worldlite/europe/ro_romania.rb +16 -9
  179. data/lib/worldlite/europe/rs_serbia.rb +15 -9
  180. data/lib/worldlite/europe/ru_russia.rb +14 -9
  181. data/lib/worldlite/europe/sc_scotland.rb +14 -9
  182. data/lib/worldlite/europe/se_sweden.rb +16 -9
  183. data/lib/worldlite/europe/si_slovenia.rb +17 -9
  184. data/lib/worldlite/europe/sk_slovakia.rb +17 -9
  185. data/lib/worldlite/europe/sm_san_marino.rb +15 -9
  186. data/lib/worldlite/europe/tr_turkey.rb +14 -9
  187. data/lib/worldlite/europe/ua_ukraine.rb +15 -9
  188. data/lib/worldlite/europe/va_vatican_city.rb +15 -10
  189. data/lib/worldlite/europe/wa_wales.rb +14 -9
  190. data/lib/worldlite/middle_east/ae_united_arab_emirates.rb +14 -9
  191. data/lib/worldlite/middle_east/bh_bahrain.rb +14 -9
  192. data/lib/worldlite/middle_east/il_israel.rb +14 -9
  193. data/lib/worldlite/middle_east/iq_iraq.rb +14 -9
  194. data/lib/worldlite/middle_east/ir_iran.rb +14 -9
  195. data/lib/worldlite/middle_east/jo_jordan.rb +14 -9
  196. data/lib/worldlite/middle_east/kw_kuwait.rb +14 -9
  197. data/lib/worldlite/middle_east/lb_lebanon.rb +14 -9
  198. data/lib/worldlite/middle_east/om_oman.rb +14 -9
  199. data/lib/worldlite/middle_east/ps_palestine.rb +13 -9
  200. data/lib/worldlite/middle_east/qa_qatar.rb +14 -9
  201. data/lib/worldlite/middle_east/sa_saudi_arabia.rb +13 -9
  202. data/lib/worldlite/middle_east/sy_syria.rb +14 -9
  203. data/lib/worldlite/middle_east/ye_yemen.rb +14 -9
  204. data/lib/worldlite/north_america/ca_canada.rb +17 -9
  205. data/lib/worldlite/north_america/gl_greenland.rb +13 -10
  206. data/lib/worldlite/north_america/mx_mexico.rb +13 -9
  207. data/lib/worldlite/north_america/pm_saint_pierre_and_miquelon.rb +13 -10
  208. data/lib/worldlite/north_america/us_united_states.rb +13 -9
  209. data/lib/worldlite/pacific/as_american_samoa.rb +13 -10
  210. data/lib/worldlite/pacific/au_australia.rb +16 -9
  211. data/lib/worldlite/pacific/ck_cook_islands.rb +13 -10
  212. data/lib/worldlite/pacific/fj_fiji.rb +15 -9
  213. data/lib/worldlite/pacific/fm_micronesia.rb +15 -10
  214. data/lib/worldlite/pacific/gu_guam.rb +13 -10
  215. data/lib/worldlite/pacific/ki_kiribati.rb +16 -10
  216. data/lib/worldlite/pacific/mh_marshall_islands.rb +15 -10
  217. data/lib/worldlite/pacific/mp_northern_mariana_islands.rb +13 -10
  218. data/lib/worldlite/pacific/nc_new_caledonia.rb +13 -10
  219. data/lib/worldlite/pacific/nf_norfolk_island.rb +13 -10
  220. data/lib/worldlite/pacific/nr_nauru.rb +16 -10
  221. data/lib/worldlite/pacific/nu_niue.rb +13 -10
  222. data/lib/worldlite/pacific/nz_new_zealand.rb +15 -9
  223. data/lib/worldlite/pacific/pf_tahiti.rb +13 -10
  224. data/lib/worldlite/pacific/pg_papua_new_guinea.rb +15 -9
  225. data/lib/worldlite/pacific/pn_pitcairn_islands.rb +13 -10
  226. data/lib/worldlite/pacific/pw_palau.rb +15 -10
  227. data/lib/worldlite/pacific/sb_solomon_islands.rb +15 -9
  228. data/lib/worldlite/pacific/tk_tokelau.rb +13 -10
  229. data/lib/worldlite/pacific/to_tonga.rb +15 -9
  230. data/lib/worldlite/pacific/tv_tuvalu.rb +16 -10
  231. data/lib/worldlite/pacific/vu_vanuatu.rb +15 -9
  232. data/lib/worldlite/pacific/wf_wallis_and_futuna.rb +13 -10
  233. data/lib/worldlite/pacific/ws_samoa.rb +15 -9
  234. data/lib/worldlite/south_america/ar_argentina.rb +15 -9
  235. data/lib/worldlite/south_america/bo_bolivia.rb +14 -9
  236. data/lib/worldlite/south_america/br_brazil.rb +15 -9
  237. data/lib/worldlite/south_america/cl_chile.rb +14 -9
  238. data/lib/worldlite/south_america/co_colombia.rb +14 -9
  239. data/lib/worldlite/south_america/ec_ecuador.rb +14 -9
  240. data/lib/worldlite/south_america/fk_falkland_islands.rb +13 -10
  241. data/lib/worldlite/south_america/gf_french_guiana.rb +13 -10
  242. data/lib/worldlite/south_america/gs_south_georgia_and_south_sandwich.rb +13 -10
  243. data/lib/worldlite/south_america/gy_guyana.rb +15 -9
  244. data/lib/worldlite/south_america/pe_peru.rb +14 -9
  245. data/lib/worldlite/south_america/py_paraguay.rb +14 -9
  246. data/lib/worldlite/south_america/sh_saint_helena.rb +13 -10
  247. data/lib/worldlite/south_america/sr_suriname.rb +14 -9
  248. data/lib/worldlite/south_america/uy_uruguay.rb +14 -9
  249. data/lib/worldlite/south_america/ve_venezuela.rb +14 -9
  250. data/lib/worldlite/version.rb +1 -1
  251. data/test/helper.rb +1 -1
  252. data/test/test_world.rb +23 -1
  253. metadata +10 -10
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # worldlite - country data (lightweight - all data included as good ol' ruby code - no database, no dependencies)
1
+ # worldlite - lightweight public domain country data (all data included as good ol' ruby code - no database, no dependencies, no copyright)
2
2
 
3
3
  * home :: [github.com/worlddb/world.lite.ruby](https://github.com/worlddb/world.lite.ruby)
4
4
  * bugs :: [github.com/worlddb/world.lite.ruby/issues](https://github.com/worlddb/world.lite.ruby/issues)
@@ -9,17 +9,578 @@
9
9
 
10
10
  ## Usage
11
11
 
12
- TBD
12
+ All data included as good ol' ruby code. Example:
13
+
14
+ ```ruby
15
+
16
+ module WorldLite
17
+
18
+ c = Country.new
19
+ c.name = 'Austria'
20
+ c.key = 'at'
21
+ c.alpah2 = 'AT' # iso two-letter country code (ISO 3166-1 alpha-2)
22
+ c.alpha3 = 'AUT' # iso three-letter country code (ISO 3166-1 alpha-3)
23
+ c.fifa = 'AUT' # football country code (fifa = Fédération Internationale de Football Association)
24
+ c.ioc = 'AUT' # olympics country code (ioc = International Olympic Committee)
25
+ c.net = 'at' # internet top level domain
26
+ c.motor = 'A' # motor vehicle license plate code
27
+ c.num3 = '040' # iso numeric three-digits code as string (ISO 3166-1 numeric)
28
+ c.num = 40 # iso numeric code as number
29
+
30
+ c.continent_name = 'Europe'
31
+
32
+ c.un = true # United Nations member? -- 193 member countries
33
+ c.eu = true # European Union member? -- 27 member countries
34
+ c.euro = true # Euro Zone member? -- 17 member countries
35
+
36
+ c.wikipedia = 'Austria' # e.g. see en.wikipedia.org/wiki/Austria
37
+ c.wikidata = 40 # e.g. see wikidata.org/wiki/Q40
38
+ c.factbook = 'au' # e.g. see www.cia.gov/library/publications/the-world-factbook/geos/au.html
39
+
40
+
41
+ AT = c
42
+
43
+ WORLD << AT
44
+ WORLD_UN << AT
45
+ WORLD_ISO << AT
46
+ WORLD_FIFA << AT
47
+
48
+ EUROPE << AT
49
+ EUROPE_EU << AT
50
+ EUROPE_EURO << AT
51
+
52
+ end # module WorldLite
53
+ ```
54
+
55
+ (Source: [`worldlite/europe/at-austria.rb`](https://github.com/worlddb/world.lite.ruby/blob/master/lib/worldlite/europe/at_austria.rb))
56
+
57
+
58
+ Use like:
59
+
60
+ ```
61
+ >> require 'worldlite'
62
+ >> include WorldLite
63
+
64
+ >> WORLD.size
65
+ => 245
66
+ >> WORLD_UN.size
67
+ => 193
68
+ >> WORLD_G20.size
69
+ => 20
70
+ >> WORLD_COMMONWEALTH.size
71
+ => 54
72
+ >> WORLD_FIFA.size
73
+ => 243
74
+ >> WORLD_WTO.size
75
+ => 157
76
+ >> WORLD_OECD.size
77
+ => 34
78
+ >> EUROPE.size
79
+ => 51
80
+ >> EUROPE_UEFA.size
81
+ => 54
82
+ >> EUROPE_EU.size
83
+ => 27
84
+ >> EUROPE_EURO.size
85
+ => 17
86
+
87
+ >> AT.class.name
88
+ => WorldLite::Country
89
+ >> AT.name # get name for country AT
90
+ => Austria
91
+ >> AT.continent_name
92
+ => Europe
93
+ >> AT.alpha3
94
+ => AUT
95
+ >> AT.slug
96
+ => austria
97
+ >> AT.un?
98
+ => true
99
+ >> AT.fifa?
100
+ => true
101
+ >> AT.g20?
102
+ => false
103
+ >> AT.eu?
104
+ => true
105
+ >> AT.euro?
106
+ => true
107
+ >> AT.wikpedia
108
+ => Austria
109
+ >> AT.wikidata
110
+ => 40
111
+ >> AT.wikpedia_url
112
+ => http://en.wikipedia.org/wiki/Austria
113
+ >> AT.wikidata_url
114
+ => http://www.wikidata.org/wiki/Q40
115
+ >> AT.factbook
116
+ => au
117
+ >> AT.factbook_url
118
+ => http://www.cia.gov/library/publications/the-world-factbook/geos/au.html
119
+ ```
120
+
121
+ ## Bonus: World Factbook
122
+
123
+ ```
124
+ >> require 'factbook'
125
+ >> page = Factbook::Page.new( AT.factbook ) ## will fetch and parse data from online World Factbook
126
+
127
+ >> page.data['geo']['location']['text']
128
+ => Central Europe, north of Italy and Slovenia
129
+
130
+ >> page.data['geo']['land_boundaries']['border_countries']
131
+ => Czech Republic 362 km, Germany 784 km, Hungary 366 km, Italy 430 km, Liechtenstein 35 km, Slovakia 91 km, Slovenia 330 km, Switzerland 164 km
132
+
133
+ >> page.data['geo']['elevation_extremes']['lowest_point']
134
+ => Neusiedler See 115 m
135
+
136
+ >> page.data['comm']['telephones_mobile_cellular']['text']
137
+ => 13.023 million (2011)
138
+
139
+ >> page.data['comm']['internet_hosts']['text']
140
+ => 3.512 million (2012)
141
+
142
+ >> pp page.data
143
+ ```
144
+
145
+ ```json
146
+ {
147
+ "intro": {
148
+ "background": {
149
+ "text": "Once the center of power for the large Austro-Hungarian Empire,
150
+ Austria was reduced to a small republic after its defeat in World War ..."
151
+ }
152
+ },
153
+ "geo": {
154
+ "location": {
155
+ "text": "Central Europe, north of Italy and Slovenia"
156
+ },
157
+ "geographic_coordinates": {
158
+ "text": "47 20 N, 13 20 E"
159
+ },
160
+ "map_references": {
161
+ "text": "Europe"
162
+ },
163
+ "area": {
164
+ "total": "83,871 sq km",
165
+ "land": "82,445 sq km",
166
+ "water": "1,426 sq km"
167
+ },
168
+ "area_comparative": {
169
+ "text": "slightly smaller than Maine"
170
+ },
171
+ "land_boundaries": {
172
+ "total": "2,562 km",
173
+ "border_countries": "Czech Republic 362 km, Germany 784 km, Hungary 366 km, Italy 430 km, Liechtenstein 35 km, Slovakia 91 km, Slovenia 330 km, Switzerland 164 km"
174
+ },
175
+ "coastline": {
176
+ "text": "0 km (landlocked)"
177
+ },
178
+ "maritime_claims": {
179
+ "text": "none (landlocked)"
180
+ },
181
+ "climate": {
182
+ "text": "temperate; continental, cloudy; cold winters with frequent rain and some snow in lowlands and snow in mountains; moderate summers with occasional showers"
183
+ },
184
+ "terrain": {
185
+ "text": "in the west and south mostly mountains (Alps); along the eastern and northern margins mostly flat or gently sloping"
186
+ },
187
+ "elevation_extremes": {
188
+ "lowest_point": "Neusiedler See 115 m",
189
+ "highest_point": "Grossglockner 3,798 m"
190
+ },
191
+ "natural_resources": {
192
+ "text": "oil, coal, lignite, timber, iron ore, copper, zinc, antimony, magnesite, tungsten, graphite, salt, hydropower"
193
+ },
194
+ ...
195
+ ```
196
+
197
+ ## worldlite Countries Summary
198
+
199
+ ### 1 Supras / 196 Countries / 48 Territories
200
+
201
+ #### Europe - 1 Supras / 49 Countries / 10 Territories
202
+
203
+ 1:
204
+ `eu` European Union (?)
205
+
206
+
207
+ 49:
208
+ `al` Albania (ALB)
209
+ `ad` Andorra (AND)
210
+ `am` Armenia (ARM)
211
+ `at` Austria (AUT)
212
+ `az` Azerbaijan (AZE)
213
+ `by` Belarus (BLR)
214
+ `be` Belgium (BEL)
215
+ `ba` Bosnia and Herzegovina (BIH)
216
+ `bg` Bulgaria (BGR)
217
+ `hr` Croatia (HRV)
218
+ `cy` Cyprus (CYP)
219
+ `cz` Czech Republic (CZE)
220
+ `dk` Denmark (DNK)
221
+ `ee` Estonia (EST)
222
+ `fi` Finland (FIN)
223
+ `fr` France (FRA)
224
+ `ge` Georgia (GEO)
225
+ `de` Germany (DEU)
226
+ `gb` Great Britain (GBR)
227
+ `gr` Greece (GRC)
228
+ `hu` Hungary (HUN)
229
+ `is` Iceland (ISL)
230
+ `ie` Irland (IRL)
231
+ `it` Italy (ITA)
232
+ `lv` Latvija (LVA)
233
+ `li` Liechtenstein (LIE)
234
+ `lt` Lithuania (LTU)
235
+ `lu` Luxembourg (LUX)
236
+ `mk` Macedonia (MKD)
237
+ `mt` Malta (MLT)
238
+ `md` Moldova (MDA)
239
+ `mc` Monaco (MCO)
240
+ `me` Montenegro (MNE)
241
+ `nl` Netherlands (NLD)
242
+ `no` Norway (NOR)
243
+ `pl` Poland (POL)
244
+ `pt` Portugal (PRT)
245
+ `ro` Romania (ROU)
246
+ `ru` Russia (RUS)
247
+ `sm` San Marino (SMR)
248
+ `rs` Serbia (SRB)
249
+ `sk` Slovakia (SVK)
250
+ `si` Slovenia (SVN)
251
+ `es` Spain (ESP)
252
+ `se` Sweden (SWE)
253
+ `ch` Switzerland (CHE)
254
+ `tr` Turkey (TUR)
255
+ `ua` Ukraine (UKR)
256
+ `va` Vatican City (VAT)
257
+
258
+
259
+ 10:
260
+ `en` England (?)
261
+ `fo` Faroe Islands (FRO)
262
+ `gi` Gibraltar (GIB)
263
+ `gg` Guernsey (GGY)
264
+ `im` Isle of Man (IMN)
265
+ `je` Jersey (JEY)
266
+ `nd` Northern Ireland (?)
267
+ `sc` Scotland (?)
268
+ `wa` Wales (?)
269
+ `ax` Åland Islands (ALA)
270
+
271
+
272
+
273
+ #### South America - 12 Countries / 4 Territories
274
+
275
+
276
+
277
+ 12:
278
+ `ar` Argentina (ARG)
279
+ `bo` Bolivia (BOL)
280
+ `br` Brazil (BRA)
281
+ `cl` Chile (CHL)
282
+ `co` Colombia (COL)
283
+ `ec` Ecuador (ECU)
284
+ `gy` Guyana (GUY)
285
+ `py` Paraguay (PRY)
286
+ `pe` Peru (PER)
287
+ `sr` Suriname (SUR)
288
+ `uy` Uruguay (URY)
289
+ `ve` Venezuela (VEN)
290
+
291
+
292
+ 4:
293
+ `fk` Falkland Islands (FLK)
294
+ `gf` French Guiana (GUF)
295
+ `sh` Saint Helena (SHN)
296
+ `gs` South Georgia and South Sandwich (SGS)
297
+
298
+
299
+
300
+ #### North America - 3 Countries / 2 Territories
301
+
302
+
303
+
304
+ 3:
305
+ `ca` Canada (CAN)
306
+ `mx` México (MEX)
307
+ `us` United States (USA)
308
+
309
+
310
+ 2:
311
+ `gl` Greenland (GRL)
312
+ `pm` Saint Pierre and Miquelon (SPM)
313
+
314
+
315
+
316
+ #### Central America - 7 Countries / 0 Territories
13
317
 
14
318
 
15
319
 
320
+ 7:
321
+ `bz` Belize (BLZ)
322
+ `cr` Costa Rica (CRI)
323
+ `sv` El Salvador (SLV)
324
+ `gt` Guatemala (GTM)
325
+ `hn` Honduras (HND)
326
+ `ni` Nicaragua (NIC)
327
+ `pa` Panamá (PAN)
328
+
329
+
330
+
331
+
332
+
333
+ #### Caribbean - 13 Countries / 14 Territories
334
+
335
+
336
+
337
+ 13:
338
+ `ag` Antigua and Barbuda (ATG)
339
+ `bs` Bahamas (BHS)
340
+ `bb` Barbados (BRB)
341
+ `cu` Cuba (CUB)
342
+ `dm` Dominica (DMA)
343
+ `do` Dominican Republic (DOM)
344
+ `gd` Grenada (GRD)
345
+ `ht` Haiti (HTI)
346
+ `jm` Jamaica (JAM)
347
+ `kn` Saint Kitts and Nevis (KNA)
348
+ `lc` Saint Lucia (LCA)
349
+ `vc` Saint Vincent and the Grenadines (VCT)
350
+ `tt` Trinidad and Tobago (TTO)
351
+
352
+
353
+ 14:
354
+ `ai` Anguilla (AIA)
355
+ `aw` Aruba (ABW)
356
+ `bm` Bermuda (BMU)
357
+ `vg` British Virgin Islands (VGB)
358
+ `ky` Cayman Islands (CYM)
359
+ `cw` Curaçao (CUW)
360
+ `gp` Guadeloupe (GPE)
361
+ `mq` Martinique (MTQ)
362
+ `ms` Montserrat (MSR)
363
+ `pr` Puerto Rico (PUR)
364
+ `bl` Saint Barthélemy (BLM)
365
+ `mf` Saint Martin (French) (MAF)
366
+ `tc` Turks and Caicos Islands (TCA)
367
+ `vi` United States Virgin Islands (VIR)
368
+
369
+
370
+
371
+ #### Africa - 54 Countries / 2 Territories
372
+
373
+
374
+
375
+ 54:
376
+ `dz` Algeria (DZA)
377
+ `ao` Angola (AGO)
378
+ `bj` Benin (BEN)
379
+ `bw` Botswana (BWA)
380
+ `bf` Burkina Faso (BFA)
381
+ `bi` Burundi (BDI)
382
+ `cm` Cameroon (CMR)
383
+ `cv` Cape Verde (CPV)
384
+ `cf` Central African Republic (CAF)
385
+ `td` Chad (TCD)
386
+ `km` Comoros (COM)
387
+ `cg` Congo (COG)
388
+ `cd` Congo DR (COD)
389
+ `ci` Côte d'Ivoire (CIV)
390
+ `dj` Djibouti (DJI)
391
+ `eg` Egypt (EGY)
392
+ `gq` Equatorial Guinea (GNQ)
393
+ `er` Eritrea (ERI)
394
+ `et` Ethiopia (ETH)
395
+ `ga` Gabon (GAB)
396
+ `gm` Gambia (GMB)
397
+ `gh` Ghana (GHA)
398
+ `gn` Guinea (GIN)
399
+ `gw` Guinea-Bissau (GNB)
400
+ `ke` Kenya (KEN)
401
+ `ls` Lesotho (LSO)
402
+ `lr` Liberia (LBR)
403
+ `ly` Libya (LBY)
404
+ `mg` Madagascar (MDG)
405
+ `mw` Malawi (MWI)
406
+ `ml` Mali (MLI)
407
+ `mr` Mauritania (MRT)
408
+ `mu` Mauritius (MUS)
409
+ `ma` Morocco (MAR)
410
+ `mz` Mozambique (MOZ)
411
+ `na` Namibia (NAM)
412
+ `ne` Niger (NER)
413
+ `ng` Nigeria (NGA)
414
+ `rw` Rwanda (RWA)
415
+ `sn` Senegal (SEN)
416
+ `yc` Seychelles (SYC)
417
+ `sl` Sierra Leone (SLE)
418
+ `so` Somalia (SOM)
419
+ `za` South Africa (ZAF)
420
+ `ss` South Sudan (SSD)
421
+ `sd` Sudan (SDN)
422
+ `sz` Swaziland (SWZ)
423
+ `st` São Tomé and Príncipe (STP)
424
+ `tz` Tanzania (TZA)
425
+ `tg` Togo (TGO)
426
+ `tn` Tunisia (TUN)
427
+ `ug` Uganda (UGA)
428
+ `zm` Zambia (ZMB)
429
+ `zw` Zimbabwe (ZWE)
430
+
431
+
432
+ 2:
433
+ `yt` Mayotte (MYT)
434
+ `re` Réunion (REU)
435
+
436
+
437
+
438
+ #### Middle East - 14 Countries / 0 Territories
439
+
440
+
441
+
442
+ 14:
443
+ `bh` Bahrain (BHR)
444
+ `ir` Iran (IRN)
445
+ `iq` Iraq (IRQ)
446
+ `il` Israel (ISR)
447
+ `jo` Jordan (JOR)
448
+ `kw` Kuwait (KWT)
449
+ `lb` Lebanon (LBN)
450
+ `om` Oman (OMN)
451
+ `ps` Palestine (PSE)
452
+ `qa` Qatar (QAT)
453
+ `sa` Saudi Arabia (SAU)
454
+ `sy` Syria (SYR)
455
+ `ae` United Arab Emirates (ARE)
456
+ `ye` Yemen (YEM)
457
+
458
+
459
+
460
+
461
+
462
+ #### Asia - 30 Countries / 5 Territories
463
+
464
+
465
+
466
+ 30:
467
+ `af` Afghanistan (AFG)
468
+ `bd` Bangladesh (BGD)
469
+ `bt` Bhutan (BTN)
470
+ `bn` Brunei (BRN)
471
+ `kh` Cambodia (KHM)
472
+ `cn` China (CHN)
473
+ `in` India (IND)
474
+ `id` Indonesia (IDN)
475
+ `jp` Japan (JPN)
476
+ `kz` Kazakhstan (KAZ)
477
+ `kg` Kyrgyzstan (KGZ)
478
+ `la` Laos (LAO)
479
+ `my` Malaysia (MYS)
480
+ `mv` Maldives (MDV)
481
+ `mn` Mongolia (MNG)
482
+ `mm` Myanmar (MMR)
483
+ `np` Nepal (NPL)
484
+ `kp` North Korea (PRK)
485
+ `pk` Pakistan (PAK)
486
+ `ph` Philippines (PHL)
487
+ `sg` Singapore (SGB)
488
+ `kr` South Korea (KOR)
489
+ `lk` Sri Lanka (LKA)
490
+ `tw` Taiwan (TWN)
491
+ `tj` Tajikistan (TJK)
492
+ `th` Thailand (THA)
493
+ `tl` Timor-Leste (TLS)
494
+ `tm` Turkmenistan (TKM)
495
+ `uz` Uzbekistan (UZB)
496
+ `vn` Vietnam (VNM)
497
+
498
+
499
+ 5:
500
+ `io` British Indian Ocean Territory (IOT)
501
+ `cx` Christmas Island (CXR)
502
+ `cc` Cocos (Keeling) Islands (CCK)
503
+ `hk` Hong Kong (HKG)
504
+ `mo` Macau (MAC)
505
+
506
+
507
+
508
+ #### Pacific - 14 Countries / 11 Territories
509
+
510
+
511
+
512
+ 14:
513
+ `au` Australia (AUS)
514
+ `fj` Fiji (FJI)
515
+ `ki` Kiribati (KIR)
516
+ `mh` Marshall Islands (MHL)
517
+ `fm` Micronesia (FSM)
518
+ `nr` Nauru (NRU)
519
+ `nz` New Zealand (NZL)
520
+ `pw` Palau (PLW)
521
+ `pg` Papua New Guinea (PNG)
522
+ `ws` Samoa (WSM)
523
+ `sb` Solomon Islands (SLB)
524
+ `to` Tonga (TON)
525
+ `tv` Tuvalu (TUV)
526
+ `vu` Vanuatu (VUT)
527
+
528
+
529
+ 11:
530
+ `as` American Samoa (ASM)
531
+ `ck` Cook Islands (COK)
532
+ `gu` Guam (GUM)
533
+ `nc` New Caledonia (NCL)
534
+ `nu` Niue (NIU)
535
+ `nf` Norfolk Island (NFK)
536
+ `mp` Northern Mariana Islands (MNP)
537
+ `pn` Pitcairn Islands (PCN)
538
+ `pf` Tahiti (TAH)
539
+ `tk` Tokelau (TKL)
540
+ `wf` Wallis and Futuna (WLF)
541
+
542
+
543
+
544
+ #### Others - 0 Countries / 0 Territories
545
+
16
546
 
17
547
  ## Alternatives Libraries and Gems
18
548
 
19
549
  Ruby
20
550
 
21
- - [countries gem](https://github.com/hexorx/countries) by Josh Robinson (aka hexorx)
22
- - [world gem](https://github.com/gferraz/world) by Gilson Ferraz César (aka gferraz); work-in-progress
551
+ - [countries gem](https://github.com/hexorx/countries)
552
+ by Josh Robinson (aka hexorx);
553
+ iso country codes n more
554
+
555
+ - [iso_country_codes gem](https://github.com/alexrabarts/iso_country_codes)
556
+ by Alex Rabarts;
557
+ iso country codes n more
558
+
559
+ - [carmen gem](https://github.com/jim/carmen)
560
+ by Jim Benton (aka jim);
561
+ iso country codes n more
562
+
563
+ - [i18n_data](https://github.com/grosser/i18n_data)
564
+ by Michael Grosser (aka grosser);
565
+ iso country codes; country/language names in 85 languages
566
+
567
+ - [iso-639 gem](https://github.com/alphabetum/iso-639)
568
+ by William Melody (aka alphabetum);
569
+ iso language codes
570
+
571
+ - [world gem](https://github.com/gferraz/world)
572
+ by Gilson Ferraz César (aka gferraz);
573
+ work-in-progress
574
+
575
+ - Search the Ruby Toolbox w/
576
+ [`country`](https://www.ruby-toolbox.com/search?q=country),
577
+ [`world`](https://www.ruby-toolbox.com/search?q=world),
578
+ [`iso+code`](https://www.ruby-toolbox.com/search?q=iso+code)
579
+
580
+ - Search RubyGems w/
581
+ [`country`](https://rubygems.org/search?query=country),
582
+ [`world`](https://rubygems.org/search?query=world),
583
+ [`iso+code`](https://rubygems.org/search?query=iso+code)
23
584
 
24
585
  Others
25
586