Permalink
Browse files

updated to latest GeoCity database (Oct 4 2011), added new countries …

…reflected in the most recent version of the C API
  • Loading branch information...
1 parent fd7ab93 commit 98f72d6edcbb9eb9c9988c850ba9c375e104b21f @emad emad committed Oct 26, 2011
Showing with 71 additions and 65 deletions.
  1. +71 −65 include/egeoip.hrl
  2. BIN priv/GeoLiteCity.dat
View
136 include/egeoip.hrl
@@ -26,16 +26,16 @@
-define(GEOIP_DIALUP_SPEED, 1).
-define(GEOIP_CABLEDSL_SPEED, 2).
-define(GEOIP_CORPORATE_SPEED, 3).
--define(GEOIP_NUM_COUNTRIES, 252).
+-define(GEOIP_NUM_COUNTRIES, 253).
-define(GEOIP_COUNTRY_CODES, {
- "AP","EU","AD","AE","AF","AG","AI","AL","AM","AN",
+ "AP","EU","AD","AE","AF","AG","AI","AL","AM","CW",
"AO","AQ","AR","AS","AT","AU","AW","AZ","BA","BB",
"BD","BE","BF","BG","BH","BI","BJ","BM","BN","BO",
"BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD",
"CF","CG","CH","CI","CK","CL","CM","CN","CO","CR",
"CU","CV","CX","CY","CZ","DE","DJ","DK","DM","DO",
"DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ",
- "FK","FM","FO","FR","FX","GA","GB","GD","GE","GF",
+ "FK","FM","FO","FR","SX","GA","GB","GD","GE","GF",
"GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT",
"GU","GW","GY","HK","HM","HN","HR","HT","HU","ID",
"IE","IL","IN","IO","IQ","IR","IS","IT","JM","JO",
@@ -53,19 +53,20 @@
"TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE",
"VG","VI","VN","VU","WF","WS","YE","YT","RS","ZA",
"ZM","ME","ZW","A1","A2","O1","AX","GG","IM","JE",
- "BL","MF"}).
+ "BL","MF", "BQ"}).
+
-define(GEOIP_COUNTRY_CODES3, {
- "AP","EU","AND","ARE","AFG","ATG","AIA","ALB","ARM","ANT",
- "AGO","AQ","ARG","ASM","AUT","AUS","ABW","AZE","BIH","BRB",
+ "AP","EU","AND","ARE","AFG","ATG","AIA","ALB","ARM","CUW",
+ "AGO","ATA","ARG","ASM","AUT","AUS","ABW","AZE","BIH","BRB",
"BGD","BEL","BFA","BGR","BHR","BDI","BEN","BMU","BRN","BOL",
- "BRA","BHS","BTN","BV","BWA","BLR","BLZ","CAN","CC","COD",
+ "BRA","BHS","BTN","BVT","BWA","BLR","BLZ","CAN","CCK","COD",
"CAF","COG","CHE","CIV","COK","CHL","CMR","CHN","COL","CRI",
- "CUB","CPV","CX","CYP","CZE","DEU","DJI","DNK","DMA","DOM",
+ "CUB","CPV","CXR","CYP","CZE","DEU","DJI","DNK","DMA","DOM",
"DZA","ECU","EST","EGY","ESH","ERI","ESP","ETH","FIN","FJI",
- "FLK","FSM","FRO","FRA","FX","GAB","GBR","GRD","GEO","GUF",
- "GHA","GIB","GRL","GMB","GIN","GLP","GNQ","GRC","GS","GTM",
- "GUM","GNB","GUY","HKG","HM","HND","HRV","HTI","HUN","IDN",
- "IRL","ISR","IND","IO","IRQ","IRN","ISL","ITA","JAM","JOR",
+ "FLK","FSM","FRO","FRA","SXM","GAB","GBR","GRD","GEO","GUF",
+ "GHA","GIB","GRL","GMB","GIN","GLP","GNQ","GRC","SGS","GTM",
+ "GUM","GNB","GUY","HKG","HMD","HND","HRV","HTI","HUN","IDN",
+ "IRL","ISR","IND","IOT","IRQ","IRN","ISL","ITA","JAM","JOR",
"JPN","KEN","KGZ","KHM","KIR","COM","KNA","PRK","KOR","KWT",
"CYM","KAZ","LAO","LBN","LCA","LIE","LKA","LBR","LSO","LTU",
"LUX","LVA","LBY","MAR","MCO","MDA","MDG","MHL","MKD","MLI",
@@ -75,73 +76,78 @@
"PNG","PHL","PAK","POL","SPM","PCN","PRI","PSE","PRT","PLW",
"PRY","QAT","REU","ROU","RUS","RWA","SAU","SLB","SYC","SDN",
"SWE","SGP","SHN","SVN","SJM","SVK","SLE","SMR","SEN","SOM",
- "SUR","STP","SLV","SYR","SWZ","TCA","TCD","TF","TGO","THA",
+ "SUR","STP","SLV","SYR","SWZ","TCA","TCD","ATF","TGO","THA",
"TJK","TKL","TKM","TUN","TON","TLS","TUR","TTO","TUV","TWN",
- "TZA","UKR","UGA","UM","USA","URY","UZB","VAT","VCT","VEN",
- "VGB","VIR","VNM","VUT","WLF","WSM","YEM","YT","SRB","ZAF",
+ "TZA","UKR","UGA","UMI","USA","URY","UZB","VAT","VCT","VEN",
+ "VGB","VIR","VNM","VUT","WLF","WSM","YEM","MYT","SRB","ZAF",
"ZMB","MNE","ZWE","A1","A2","O1","ALA","GGY","IMN","JEY",
- "BLM","MAF"}).
+ "BLM","MAF", "BES"}).
+
-define(GEOIP_COUNTRY_NAMES, {
"Asia/Pacific Region","Europe","Andorra",
- "United Arab Emirates","Afghanistan","Antigua and Barbuda",
- "Anguilla","Albania","Armenia","Netherlands Antilles",
- "Angola","Antarctica","Argentina","American Samoa","Austria",
- "Australia","Aruba","Azerbaijan","Bosnia and Herzegovina",
- "Barbados", "Bangladesh","Belgium","Burkina Faso","Bulgaria",
- "Bahrain","Burundi","Benin","Bermuda","Brunei Darussalam","Bolivia",
- "Brazil","Bahamas","Bhutan","Bouvet Island","Botswana","Belarus",
- "Belize","Canada","Cocos (Keeling) Islands",
- "Congo, The Democratic Republic of the",
- "Central African Republic","Congo","Switzerland","Cote D'Ivoire",
- "Cook Islands","Chile","Cameroon","China","Colombia","Costa Rica",
- "Cuba","Cape Verde","Christmas Island","Cyprus","Czech Republic",
- "Germany","Djibouti","Denmark","Dominica","Dominican Republic",
- "Algeria","Ecuador","Estonia","Egypt","Western Sahara","Eritrea",
- "Spain","Ethiopia","Finland","Fiji", "Falkland Islands (Malvinas)",
- "Micronesia, Federated States of","Faroe Islands","France",
- "France, Metropolitan","Gabon","United Kingdom","Grenada",
- "Georgia","French Guiana", "Ghana","Gibraltar","Greenland",
- "Gambia","Guinea","Guadeloupe","Equatorial Guinea","Greece",
+ "United Arab Emirates","Afghanistan",
+ "Antigua and Barbuda","Anguilla","Albania","Armenia",
+ "Cura" "\xc3\xa7" "ao", "Angola","Antarctica",
+ "Argentina","American Samoa","Austria","Australia",
+ "Aruba","Azerbaijan","Bosnia and Herzegovina","Barbados",
+ "Bangladesh","Belgium","Burkina Faso","Bulgaria","Bahrain","Burundi",
+ "Benin","Bermuda","Brunei Darussalam","Bolivia", "Brazil","Bahamas",
+ "Bhutan","Bouvet Island","Botswana","Belarus","Belize","Canada",
+ "Cocos (Keeling) Islands","Congo, The Democratic Republic of the",
+ "Central African Republic","Congo","Switzerland",
+ "Cote D'Ivoire","Cook Islands","Chile","Cameroon","China","Colombia",
+ "Costa Rica", "Cuba","Cape Verde","Christmas Island","Cyprus",
+ "Czech Republic","Germany","Djibouti","Denmark","Dominica","Dominican
+ Republic", "Algeria","Ecuador","Estonia","Egypt",
+ "Western Sahara","Eritrea","Spain","Ethiopia","Finland","Fiji",
+ "Falkland Islands (Malvinas)","Micronesia, Federated States of",
+ "Faroe Islands","France","Sint Maarten (Dutch
+ part)","Gabon","United Kingdom","Grenada","Georgia",
+ "French Guiana", "Ghana","Gibraltar","Greenland","Gambia","Guinea",
+ "Guadeloupe","Equatorial Guinea","Greece",
"South Georgia and the South Sandwich Islands","Guatemala",
"Guam","Guinea-Bissau","Guyana","Hong Kong",
- "Heard Island and McDonald Islands","Honduras",
- "Croatia","Haiti","Hungary","Indonesia", "Ireland","Israel",
- "India","British Indian Ocean Territory","Iraq",
- "Iran, Islamic Republic of","Iceland","Italy","Jamaica",
- "Jordan", "Japan","Kenya","Kyrgyzstan","Cambodia","Kiribati",
- "Comoros","Saint Kitts and Nevis",
- "Korea, Democratic People's Republic of","Korea, Republic of",
- "Kuwait", "Cayman Islands","Kazakhstan",
+ "Heard Island and McDonald Islands","Honduras","Croatia",
+ "Haiti","Hungary","Indonesia", "Ireland","Israel","India",
+ "British Indian Ocean Territory","Iraq",
+ "Iran, Islamic Republic of","Iceland","Italy","Jamaica","Jordan",
+ "Japan","Kenya","Kyrgyzstan","Cambodia","Kiribati","Comoros",
+ "Saint Kitts and Nevis","Korea, Democratic People's Republic of",
+ "Korea, Republic of","Kuwait", "Cayman Islands","Kazakhstan",
"Lao People's Democratic Republic","Lebanon","Saint Lucia",
"Liechtenstein","Sri Lanka","Liberia","Lesotho","Lithuania",
- "Luxembourg","Latvia","Libyan Arab Jamahiriya","Morocco","Monaco",
- "Moldova, Republic of","Madagascar","Marshall Islands","Macedonia",
- "Mali", "Myanmar","Mongolia","Macau","Northern Mariana Islands",
+ "Luxembourg","Latvia","Libyan Arab
+ Jamahiriya","Morocco","Monaco","Moldova, Republic
+ of","Madagascar","Marshall Islands","Macedonia","Mali",
+ "Myanmar","Mongolia","Macau","Northern Mariana Islands",
"Martinique","Mauritania","Montserrat","Malta","Mauritius",
- "Maldives", "Malawi","Mexico","Malaysia","Mozambique","Namibia",
+ "Maldives",
+ "Malawi","Mexico","Malaysia","Mozambique","Namibia",
"New Caledonia","Niger","Norfolk Island","Nigeria","Nicaragua",
- "Netherlands","Norway","Nepal","Nauru","Niue","New Zealand","Oman",
- "Panama","Peru","French Polynesia", "Papua New Guinea","Philippines",
- "Pakistan","Poland","Saint Pierre and Miquelon","Pitcairn Islands",
- "Puerto Rico","Palestinian Territory","Portugal","Palau", "Paraguay",
- "Qatar","Reunion","Romania","Russian Federation","Rwanda",
- "Saudi Arabia","Solomon Islands","Seychelles","Sudan",
- "Sweden","Singapore","Saint Helena","Slovenia",
- "Svalbard and Jan Mayen","Slovakia","Sierra Leone","San Marino",
- "Senegal","Somalia","Suriname", "Sao Tome and Principe",
+ "Netherlands","Norway","Nepal","Nauru","Niue",
+ "New Zealand","Oman","Panama","Peru","French Polynesia",
+ "Papua New Guinea","Philippines","Pakistan","Poland",
+ "Saint Pierre and Miquelon","Pitcairn Islands","Puerto Rico",
+ "Palestinian Territory","Portugal","Palau",
+ "Paraguay","Qatar","Reunion","Romania","Russian Federation",
+ "Rwanda","Saudi Arabia","Solomon
+ Islands","Seychelles","Sudan", "Sweden","Singapore", "Saint Helena",
+ "Slovenia","Svalbard and Jan Mayen","Slovakia","Sierra Leone",
+ "San Marino","Senegal","Somalia","Suriname","Sao Tome and Principe",
"El Salvador","Syrian Arab Republic","Swaziland",
"Turks and Caicos Islands","Chad","French Southern Territories",
- "Togo","Thailand", "Tajikistan","Tokelau","Turkmenistan",
- "Tunisia","Tonga","Timor-Leste","Turkey","Trinidad and Tobago",
- "Tuvalu","Taiwan", "Tanzania, United Republic of","Ukraine",
- "Uganda","United States Minor Outlying Islands","United States",
- "Uruguay","Uzbekistan", "Holy See (Vatican City State)",
+ "Togo","Thailand", "Tajikistan","Tokelau","Turkmenistan","Tunisia",
+ "Tonga","Timor-Leste","Turkey","Trinidad and Tobago","Tuvalu",
+ "Taiwan", "Tanzania, United Republic of","Ukraine","Uganda",
+ "United States Minor Outlying Islands","United States","Uruguay",
+ "Uzbekistan","Holy See (Vatican City State)",
"Saint Vincent and the Grenadines","Venezuela",
"Virgin Islands, British","Virgin Islands, U.S.","Vietnam",
- "Vanuatu","Wallis and Futuna","Samoa","Yemen","Mayotte","Serbia",
- "South Africa", "Zambia","Montenegro","Zimbabwe","Anonymous Proxy",
- "Satellite Provider","Other","Aland Islands","Guernsey",
- "Isle of Man","Jersey", "Saint Barthelemy","Saint Martin"}).
+ "Vanuatu","Wallis and Futuna","Samoa","Yemen","Mayotte",
+ "Serbia","South Africa", "Zambia","Montenegro","Zimbabwe",
+ "Anonymous Proxy","Satellite Provider","Other","Aland Islands",
+ "Guernsey","Isle of Man","Jersey", "Saint Barthelemy",
+ "Saint Martin", "Bonaire, Saint Eustatius and Saba"}).
-record(geoipdb, {type = ?GEOIP_COUNTRY_EDITION,
View
BIN priv/GeoLiteCity.dat
Binary file not shown.

0 comments on commit 98f72d6

Please sign in to comment.