pumi 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +7 -0
  2. data/.github/actions/fetch_data/Dockerfile +8 -0
  3. data/.github/actions/fetch_data/action.yml +17 -0
  4. data/.github/actions/fetch_data/entrypoint.sh +16 -0
  5. data/.github/workflows/build.yml +25 -0
  6. data/.github/workflows/bump_version.yml +37 -0
  7. data/.github/workflows/update_data.yml +38 -0
  8. data/.gitignore +14 -0
  9. data/.rspec +2 -0
  10. data/.rubocop.yml +22 -0
  11. data/.tool-versions +2 -0
  12. data/CODE_OF_CONDUCT.md +74 -0
  13. data/Gemfile +4 -0
  14. data/LICENSE.txt +21 -0
  15. data/README.md +177 -0
  16. data/Rakefile +6 -0
  17. data/app/assets/javascripts/pumi.js.coffee +97 -0
  18. data/app/controllers/pumi/communes_controller.rb +7 -0
  19. data/app/controllers/pumi/districts_controller.rb +7 -0
  20. data/app/controllers/pumi/provinces_controller.rb +7 -0
  21. data/app/controllers/pumi/villages_controller.rb +7 -0
  22. data/app/serializers/pumi/response_serializer.rb +15 -0
  23. data/bin/console +14 -0
  24. data/bin/parse_data +66 -0
  25. data/bin/setup +8 -0
  26. data/config/routes.rb +3 -0
  27. data/data/communes.yml +13170 -0
  28. data/data/districts.yml +1626 -0
  29. data/data/provinces.yml +202 -0
  30. data/data/villages.yml +114978 -0
  31. data/lib/pumi/administrative_unit.rb +3 -0
  32. data/lib/pumi/commune.rb +3 -0
  33. data/lib/pumi/data_store.rb +7 -0
  34. data/lib/pumi/district.rb +3 -0
  35. data/lib/pumi/location.rb +42 -0
  36. data/lib/pumi/parser.rb +135 -0
  37. data/lib/pumi/province.rb +3 -0
  38. data/lib/pumi/rails/engine.rb +6 -0
  39. data/lib/pumi/rails.rb +2 -0
  40. data/lib/pumi/store_cache.rb +17 -0
  41. data/lib/pumi/version.rb +3 -0
  42. data/lib/pumi/village.rb +3 -0
  43. data/lib/pumi.rb +25 -0
  44. data/pumi.gemspec +40 -0
  45. data/pumi.jpg +0 -0
  46. data/pumi_ui_en.png +0 -0
  47. data/pumi_ui_km.png +0 -0
  48. data/tmp/.keep +0 -0
  49. metadata +302 -0
@@ -0,0 +1,3 @@
1
+ module Pumi
2
+ AdministrativeUnit = Struct.new(:name_km, :name_latin, :name_en, keyword_init: true)
3
+ end
@@ -0,0 +1,3 @@
1
+ module Pumi
2
+ class Commune < Location; end
3
+ end
@@ -0,0 +1,7 @@
1
+ module Pumi
2
+ class DataStore
3
+ def load(type, *args)
4
+ Parser.new(type, *args).load
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,3 @@
1
+ module Pumi
2
+ class District < Location; end
3
+ end
@@ -0,0 +1,42 @@
1
+ module Pumi
2
+ Location = Struct.new(
3
+ :id, :province_id, :district_id, :commune_id, :village_id,
4
+ :province, :district, :commune,
5
+ :name_km, :full_name_km,
6
+ :name_latin, :full_name_latin,
7
+ :name_en, :full_name_en,
8
+ :address_km, :address_latin, :address_en,
9
+ :administrative_unit, keyword_init: true
10
+ ) do
11
+ class << self
12
+ attr_accessor :data_store_key
13
+
14
+ def all
15
+ data.values
16
+ end
17
+
18
+ def find_by_id(id)
19
+ data[id]
20
+ end
21
+
22
+ def where(params)
23
+ data.values.select do |location|
24
+ (params.transform_keys(&:to_s).to_a - location.attributes.transform_keys(&:to_s).to_a).empty?
25
+ end
26
+ end
27
+
28
+ private
29
+
30
+ def data
31
+ Pumi.data_store.load(self)
32
+ end
33
+ end
34
+
35
+ attr_accessor :attributes
36
+
37
+ def initialize(attributes)
38
+ @attributes = attributes
39
+ super
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,135 @@
1
+ require "yaml"
2
+ require "pathname"
3
+
4
+ module Pumi
5
+ class Parser
6
+ DATA_DIRECTORY = Pathname.new(File.expand_path("..", File.dirname(__dir__))).join("data")
7
+
8
+ AdministrativeDivision = Struct.new(:type, :name, :data_key, :id_length, :parent_divisions, keyword_init: true)
9
+ PROVINCE = AdministrativeDivision.new(
10
+ type: Province,
11
+ name: :province,
12
+ data_key: :provinces,
13
+ id_length: 2
14
+ )
15
+ DISTRICT = AdministrativeDivision.new(
16
+ type: District,
17
+ name: :district,
18
+ data_key: :districts,
19
+ id_length: 4,
20
+ parent_divisions: [PROVINCE]
21
+ )
22
+ COMMUNE = AdministrativeDivision.new(
23
+ type: Commune,
24
+ name: :commune,
25
+ data_key: :communes,
26
+ id_length: 6,
27
+ parent_divisions: [DISTRICT, PROVINCE]
28
+ )
29
+ VILLAGE = AdministrativeDivision.new(
30
+ type: Village,
31
+ name: :village,
32
+ data_key: :villages,
33
+ id_length: 8,
34
+ parent_divisions: [COMMUNE, DISTRICT, PROVINCE]
35
+ )
36
+
37
+ ADMINISTRATIVE_DIVISIONS = {
38
+ Province => PROVINCE,
39
+ District => DISTRICT,
40
+ Commune => COMMUNE,
41
+ Village => VILLAGE
42
+ }.freeze
43
+
44
+ AddressType = Struct.new(:locale, :default_delimiter, keyword_init: true)
45
+ ADDRESS_TYPES = [
46
+ AddressType.new(locale: :km, default_delimiter: " "),
47
+ AddressType.new(locale: :latin, default_delimiter: ", "),
48
+ AddressType.new(locale: :en, default_delimiter: ", ")
49
+ ].freeze
50
+
51
+ attr_reader :type, :administrative_division
52
+
53
+ def initialize(type)
54
+ @type = type
55
+ @administrative_division = ADMINISTRATIVE_DIVISIONS.fetch(type)
56
+ end
57
+
58
+ def load
59
+ data = YAML.load_file(
60
+ DATA_DIRECTORY.join("#{administrative_division.data_key}.yml")
61
+ ).fetch(administrative_division.data_key.to_s)
62
+
63
+ data.each_with_object({}) do |(id, attributes), result|
64
+ location_data = build_location_data(id, attributes)
65
+ add_parent_divisions(location_data)
66
+ add_addresses(location_data)
67
+
68
+ result[id] = type.new(location_data)
69
+ end
70
+ end
71
+
72
+ private
73
+
74
+ def build_location_data(id, attributes)
75
+ name = attributes.fetch("name")
76
+ name_km = name.fetch("km")
77
+ name_latin = name.fetch("latin")
78
+ administrative_unit = build_administrative_unit(
79
+ attributes.fetch("administrative_unit")
80
+ )
81
+
82
+ {
83
+ id: id,
84
+ administrative_unit: administrative_unit,
85
+ name_km: name_km,
86
+ name_latin: name_latin,
87
+ name_en: name_latin,
88
+ full_name_km: [
89
+ administrative_unit_name(name_km, administrative_unit.name_km),
90
+ name_km
91
+ ].compact.join,
92
+ full_name_latin: [
93
+ administrative_unit_name(name_latin, administrative_unit.name_latin),
94
+ name_latin
95
+ ].compact.join(" "),
96
+ full_name_en: [name_latin, administrative_unit.name_en].join(" ")
97
+ }
98
+ end
99
+
100
+ def add_parent_divisions(attributes)
101
+ Array(administrative_division.parent_divisions).each do |parent|
102
+ parent_id = attributes.fetch(:id).chars.first(parent.id_length).join
103
+ attributes[:"#{parent.name}_id"] = parent_id
104
+ attributes[parent.name] = parent.type.find_by_id(parent_id)
105
+ end
106
+ end
107
+
108
+ def add_addresses(attributes)
109
+ ADDRESS_TYPES.each do |address_type|
110
+ address_part_key = :"full_name_#{address_type.locale}"
111
+ division_address = attributes.fetch(address_part_key)
112
+ parent_addresses = Array(administrative_division.parent_divisions).map do |parent|
113
+ attributes.fetch(parent.name).attributes.fetch(address_part_key)
114
+ end
115
+
116
+ attributes[:"address_#{address_type.locale}"] = [
117
+ division_address,
118
+ parent_addresses
119
+ ].reject(&:empty?).compact.join(address_type.default_delimiter)
120
+ end
121
+ end
122
+
123
+ def build_administrative_unit(attributes)
124
+ AdministrativeUnit.new(
125
+ name_km: attributes.fetch("km"),
126
+ name_latin: attributes.fetch("latin"),
127
+ name_en: attributes.fetch("en")
128
+ )
129
+ end
130
+
131
+ def administrative_unit_name(name, administrative_unit_name)
132
+ administrative_unit_name unless name.start_with?(administrative_unit_name)
133
+ end
134
+ end
135
+ end
@@ -0,0 +1,3 @@
1
+ module Pumi
2
+ class Province < Location; end
3
+ end
@@ -0,0 +1,6 @@
1
+ module Pumi
2
+ class Engine < ::Rails::Engine
3
+ require "jquery-rails"
4
+ isolate_namespace(Pumi)
5
+ end
6
+ end
data/lib/pumi/rails.rb ADDED
@@ -0,0 +1,2 @@
1
+ require_relative "../pumi"
2
+ require_relative "rails/engine"
@@ -0,0 +1,17 @@
1
+ module Pumi
2
+ class StoreCache < SimpleDelegator
3
+ attr_reader :cached
4
+
5
+ def initialize(data_store)
6
+ super(data_store)
7
+
8
+ @cached = {}
9
+ end
10
+
11
+ def load(type, *args)
12
+ cached.fetch(type) do
13
+ cached[type] = super
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,3 @@
1
+ module Pumi
2
+ VERSION = "0.1.1".freeze
3
+ end
@@ -0,0 +1,3 @@
1
+ module Pumi
2
+ class Village < Location; end
3
+ end
data/lib/pumi.rb ADDED
@@ -0,0 +1,25 @@
1
+ require_relative "pumi/store_cache"
2
+ require_relative "pumi/data_store"
3
+
4
+ module Pumi
5
+ class << self
6
+ def data_store
7
+ @data_store ||= reset_data_store!
8
+ end
9
+
10
+ private
11
+
12
+ def reset_data_store!
13
+ @data_store = StoreCache.new(DataStore.new)
14
+ end
15
+ end
16
+ end
17
+
18
+ require_relative "pumi/version"
19
+ require_relative "pumi/administrative_unit"
20
+ require_relative "pumi/location"
21
+ require_relative "pumi/province"
22
+ require_relative "pumi/district"
23
+ require_relative "pumi/commune"
24
+ require_relative "pumi/village"
25
+ require_relative "pumi/parser"
data/pumi.gemspec ADDED
@@ -0,0 +1,40 @@
1
+ lib = File.expand_path("lib", __dir__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require "pumi/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "pumi"
7
+ spec.version = Pumi::VERSION
8
+ spec.authors = ["David Wilkie"]
9
+ spec.email = ["dwilkie@gmail.com"]
10
+ spec.summary = "Villages (ភូមិ), Communes (ឃុំ - សង្កាត់), Districts (ស្រុក - ខណ្ឌ) and Provinces (ខេត្ត) in Cambodia"
11
+ spec.homepage = "https://github.com/dwilkie/pumi"
12
+
13
+ spec.metadata["homepage_uri"] = spec.homepage
14
+ spec.metadata["source_code_uri"] = spec.homepage
15
+
16
+ # Specify which files should be added to the gem when it is released.
17
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
18
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
19
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
20
+ end
21
+ spec.bindir = "exe"
22
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
+ spec.require_paths = ["lib"]
24
+
25
+ spec.add_development_dependency "bump"
26
+ spec.add_development_dependency "bundler"
27
+ spec.add_development_dependency "capybara"
28
+ spec.add_development_dependency "coffee-rails"
29
+ spec.add_development_dependency "jquery-rails"
30
+ spec.add_development_dependency "pry"
31
+ spec.add_development_dependency "puma"
32
+ spec.add_development_dependency "rails", ">= 5.0"
33
+ spec.add_development_dependency "rake", "~> 10.0"
34
+ spec.add_development_dependency "rspec", "~> 3.0"
35
+ spec.add_development_dependency "rspec-rails", "~> 3.0"
36
+ spec.add_development_dependency "rubocop"
37
+ spec.add_development_dependency "rubocop-rspec"
38
+ spec.add_development_dependency "selenium-webdriver"
39
+ spec.add_development_dependency "webdrivers"
40
+ end
data/pumi.jpg ADDED
Binary file
data/pumi_ui_en.png ADDED
Binary file
data/pumi_ui_km.png ADDED
Binary file
data/tmp/.keep ADDED
File without changes
metadata ADDED
@@ -0,0 +1,302 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pumi
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - David Wilkie
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-03-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bump
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: capybara
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: coffee-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: jquery-rails
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: pry
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: puma
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rails
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '5.0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '5.0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rake
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '10.0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '10.0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rspec
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '3.0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '3.0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: rspec-rails
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '3.0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '3.0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: rubocop
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: rubocop-rspec
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: selenium-webdriver
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: webdrivers
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ description:
224
+ email:
225
+ - dwilkie@gmail.com
226
+ executables: []
227
+ extensions: []
228
+ extra_rdoc_files: []
229
+ files:
230
+ - ".github/actions/fetch_data/Dockerfile"
231
+ - ".github/actions/fetch_data/action.yml"
232
+ - ".github/actions/fetch_data/entrypoint.sh"
233
+ - ".github/workflows/build.yml"
234
+ - ".github/workflows/bump_version.yml"
235
+ - ".github/workflows/update_data.yml"
236
+ - ".gitignore"
237
+ - ".rspec"
238
+ - ".rubocop.yml"
239
+ - ".tool-versions"
240
+ - CODE_OF_CONDUCT.md
241
+ - Gemfile
242
+ - LICENSE.txt
243
+ - README.md
244
+ - Rakefile
245
+ - app/assets/javascripts/pumi.js.coffee
246
+ - app/controllers/pumi/communes_controller.rb
247
+ - app/controllers/pumi/districts_controller.rb
248
+ - app/controllers/pumi/provinces_controller.rb
249
+ - app/controllers/pumi/villages_controller.rb
250
+ - app/serializers/pumi/response_serializer.rb
251
+ - bin/console
252
+ - bin/parse_data
253
+ - bin/setup
254
+ - config/routes.rb
255
+ - data/communes.yml
256
+ - data/districts.yml
257
+ - data/provinces.yml
258
+ - data/villages.yml
259
+ - lib/pumi.rb
260
+ - lib/pumi/administrative_unit.rb
261
+ - lib/pumi/commune.rb
262
+ - lib/pumi/data_store.rb
263
+ - lib/pumi/district.rb
264
+ - lib/pumi/location.rb
265
+ - lib/pumi/parser.rb
266
+ - lib/pumi/province.rb
267
+ - lib/pumi/rails.rb
268
+ - lib/pumi/rails/engine.rb
269
+ - lib/pumi/store_cache.rb
270
+ - lib/pumi/version.rb
271
+ - lib/pumi/village.rb
272
+ - pumi.gemspec
273
+ - pumi.jpg
274
+ - pumi_ui_en.png
275
+ - pumi_ui_km.png
276
+ - tmp/.keep
277
+ homepage: https://github.com/dwilkie/pumi
278
+ licenses: []
279
+ metadata:
280
+ homepage_uri: https://github.com/dwilkie/pumi
281
+ source_code_uri: https://github.com/dwilkie/pumi
282
+ post_install_message:
283
+ rdoc_options: []
284
+ require_paths:
285
+ - lib
286
+ required_ruby_version: !ruby/object:Gem::Requirement
287
+ requirements:
288
+ - - ">="
289
+ - !ruby/object:Gem::Version
290
+ version: '0'
291
+ required_rubygems_version: !ruby/object:Gem::Requirement
292
+ requirements:
293
+ - - ">="
294
+ - !ruby/object:Gem::Version
295
+ version: '0'
296
+ requirements: []
297
+ rubygems_version: 3.0.3
298
+ signing_key:
299
+ specification_version: 4
300
+ summary: Villages (ភូមិ), Communes (ឃុំ - សង្កាត់), Districts (ស្រុក - ខណ្ឌ) and Provinces
301
+ (ខេត្ត) in Cambodia
302
+ test_files: []