Skip to content

Commit 4eedf0a

Browse files
committed
chore: 优化地理图查询速度
1 parent 3453141 commit 4eedf0a

File tree

7 files changed

+591
-76
lines changed

7 files changed

+591
-76
lines changed

assets/js/china.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/geo_table.js

Lines changed: 218 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,218 @@
1+
const cn_province = {
2+
"BJ": "北京",
3+
"SH": "上海",
4+
"TJ": "天津",
5+
"CQ": "重庆",
6+
"HE": "河北",
7+
"SX": "山西",
8+
"NM": "内蒙古",
9+
"LN": "辽宁",
10+
"JL": "吉林",
11+
"HL": "黑龙江",
12+
"JS": "江苏",
13+
"ZJ": "浙江",
14+
"AH": "安徽",
15+
"FJ": "福建",
16+
"JX": "江西",
17+
"SD": "山东",
18+
"HA": "河南",
19+
"HB": "湖北",
20+
"HN": "湖南",
21+
"GD": "广东",
22+
"GX": "广西",
23+
"HI": "海南",
24+
"SC": "四川",
25+
"GZ": "贵州",
26+
"YN": "云南",
27+
"XZ": "西藏",
28+
"SN": "陕西",
29+
"GS": "甘肃",
30+
"QH": "青海",
31+
"NX": "宁夏",
32+
"XJ": "新疆",
33+
"TW": "台湾",
34+
"HK": "香港",
35+
"MO": "澳门"
36+
}
37+
const country_code = {
38+
"CN": "China",
39+
"VN": "Vietnam",
40+
"IR": "Iran",
41+
"BY": "Belarus",
42+
"IN": "India",
43+
"ID": "Indonesia",
44+
"HK": "Hong Kong",
45+
"TW": "Taiwan",
46+
"PH": "Philippines",
47+
"RU": "Russia",
48+
"NG": "Nigeria",
49+
"UA": "Ukraine",
50+
"CO": "Colombia",
51+
"TH": "Thailand",
52+
"MY": "Malaysia",
53+
"AU": "Australia",
54+
"BG": "Bulgaria",
55+
"IL": "Israel",
56+
"US": "United States",
57+
"NO": "Norway",
58+
"GB": "United Kingdom",
59+
"BD": "Bangladesh",
60+
"LB": "Lebanon",
61+
"AR": "Argentina",
62+
"EG": "Egypt",
63+
"JP": "Japan",
64+
"SE": "Sweden",
65+
"SS": "South Sudan",
66+
"TR": "Turkey",
67+
"IT": "Italy",
68+
"CZ": "Czech Republic",
69+
"FR": "France",
70+
"RO": "Romania",
71+
"DZ": "Algeria",
72+
"NP": "Nepal",
73+
"SG": "Singapore",
74+
"PL": "Poland",
75+
"MN": "Mongolia",
76+
"TN": "Tunisia",
77+
"ZA": "South Africa",
78+
"MO": "Macao",
79+
"KZ": "Kazakhstan",
80+
"MA": "Morocco",
81+
"PT": "Portugal",
82+
"FJ": "Fiji",
83+
"UZ": "Uzbekistan",
84+
"SA": "Saudi Arabia",
85+
"AZ": "Azerbaijan",
86+
"ES": "Spain",
87+
"IQ": "Iraq",
88+
"MM": "Myanmar",
89+
"CA": "Canada",
90+
"GR": "Greece",
91+
"LT": "Lithuania",
92+
"BR": "Brazil",
93+
"VE": "Venezuela",
94+
"AE": "United Arab Emirates",
95+
"BE": "Belgium",
96+
"LA": "Laos",
97+
"DE": "Germany",
98+
"KR": "South Korea",
99+
"EC": "Ecuador",
100+
"PE": "Peru",
101+
"MX": "Mexico",
102+
"NL": "Netherlands",
103+
"SK": "Slovakia",
104+
"PY": "Paraguay",
105+
"KH": "Cambodia",
106+
"IE": "Ireland",
107+
"RE": "Réunion",
108+
"AM": "Armenia",
109+
"LK": "Sri Lanka",
110+
"JO": "Jordan",
111+
"CU": "Cuba",
112+
"CH": "Switzerland",
113+
"KW": "Kuwait",
114+
"KG": "Kyrgyzstan",
115+
"GT": "Guatemala",
116+
"AT": "Austria",
117+
"MD": "Moldova",
118+
"EE": "Estonia",
119+
"MK": "North Macedonia",
120+
"CL": "Chile",
121+
"BO": "Bolivia",
122+
"NI": "Nicaragua",
123+
"CR": "Costa Rica",
124+
"PA": "Panama",
125+
"GY": "Guyana",
126+
"CY": "Cyprus",
127+
"GA": "Gabon",
128+
"HN": "Honduras",
129+
"RS": "Serbia",
130+
"GE": "Georgia",
131+
"DK": "Denmark",
132+
"BJ": "Benin",
133+
"DO": "Dominican Republic",
134+
"KE": "Kenya",
135+
"AL": "Albania",
136+
"SR": "Suriname",
137+
"UY": "Uruguay",
138+
"SY": "Syria",
139+
"MT": "Malta",
140+
"CD": "Congo (Democratic Republic of)",
141+
"MU": "Mauritius",
142+
"PK": "Pakistan",
143+
"FI": "Finland",
144+
"PS": "Palestine",
145+
"NA": "Namibia",
146+
"BH": "Bahrain",
147+
"JM": "Jamaica",
148+
"CW": "Curaçao",
149+
"BA": "Bosnia and Herzegovina",
150+
"SI": "Slovenia",
151+
"PR": "Puerto Rico",
152+
"MP": "Northern Mariana Islands",
153+
"AF": "Afghanistan",
154+
"DM": "Dominica",
155+
"AO": "Angola",
156+
"NZ": "New Zealand",
157+
"LV": "Latvia",
158+
"UG": "Uganda",
159+
"LU": "Luxembourg",
160+
"SN": "Senegal",
161+
"HR": "Croatia",
162+
"YE": "Yemen",
163+
"TJ": "Tajikistan",
164+
"TZ": "Tanzania",
165+
"ME": "Montenegro",
166+
"BW": "Botswana",
167+
"MZ": "Mozambique",
168+
"SD": "Sudan",
169+
"ET": "Ethiopia",
170+
"BF": "Burkina Faso",
171+
"TM": "Turkmenistan",
172+
"ML": "Mali",
173+
"HU": "Hungary",
174+
"GH": "Ghana",
175+
"MR": "Mauritania",
176+
"ZW": "Zimbabwe",
177+
"VA": "Vatican City",
178+
"CI": "Côte d'Ivoire",
179+
"GM": "Gambia",
180+
"CV": "Cape Verde",
181+
"HT": "Haiti",
182+
"GF": "French Guiana",
183+
"BN": "Brunei",
184+
"GQ": "Equatorial Guinea",
185+
"TG": "Togo",
186+
"BS": "Bahamas",
187+
"BZ": "Belize",
188+
"AW": "Aruba",
189+
"MW": "Malawi",
190+
"GN": "Guinea",
191+
"ZM": "Zambia",
192+
"MG": "Madagascar",
193+
"SO": "Somalia",
194+
"QA": "Qatar",
195+
"CM": "Cameroon",
196+
"BB": "Barbados",
197+
"VU": "Vanuatu",
198+
"MC": "Monaco",
199+
"JE": "Jersey",
200+
"TT": "Trinidad and Tobago",
201+
"CG": "Congo (Republic of)",
202+
"KM": "Comoros",
203+
"MV": "Maldives",
204+
"LR": "Liberia",
205+
"GP": "Guadeloupe",
206+
"SZ": "Eswatini",
207+
"XK": "Kosovo",
208+
"AX": "Åland Islands",
209+
"MF": "Saint Martin",
210+
"LY": "Libya",
211+
"SV": "El Salvador",
212+
"IM": "Isle of Man",
213+
}
214+
215+
export {
216+
cn_province,
217+
country_code
218+
}

0 commit comments

Comments
 (0)