pumi 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/actions/fetch_data/Dockerfile +8 -0
- data/.github/actions/fetch_data/action.yml +17 -0
- data/.github/actions/fetch_data/entrypoint.sh +16 -0
- data/.github/workflows/build.yml +25 -0
- data/.github/workflows/bump_version.yml +37 -0
- data/.github/workflows/update_data.yml +38 -0
- data/.gitignore +14 -0
- data/.rspec +2 -0
- data/.rubocop.yml +22 -0
- data/.tool-versions +2 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +177 -0
- data/Rakefile +6 -0
- data/app/assets/javascripts/pumi.js.coffee +97 -0
- data/app/controllers/pumi/communes_controller.rb +7 -0
- data/app/controllers/pumi/districts_controller.rb +7 -0
- data/app/controllers/pumi/provinces_controller.rb +7 -0
- data/app/controllers/pumi/villages_controller.rb +7 -0
- data/app/serializers/pumi/response_serializer.rb +15 -0
- data/bin/console +14 -0
- data/bin/parse_data +66 -0
- data/bin/setup +8 -0
- data/config/routes.rb +3 -0
- data/data/communes.yml +13170 -0
- data/data/districts.yml +1626 -0
- data/data/provinces.yml +202 -0
- data/data/villages.yml +114978 -0
- data/lib/pumi/administrative_unit.rb +3 -0
- data/lib/pumi/commune.rb +3 -0
- data/lib/pumi/data_store.rb +7 -0
- data/lib/pumi/district.rb +3 -0
- data/lib/pumi/location.rb +42 -0
- data/lib/pumi/parser.rb +135 -0
- data/lib/pumi/province.rb +3 -0
- data/lib/pumi/rails/engine.rb +6 -0
- data/lib/pumi/rails.rb +2 -0
- data/lib/pumi/store_cache.rb +17 -0
- data/lib/pumi/version.rb +3 -0
- data/lib/pumi/village.rb +3 -0
- data/lib/pumi.rb +25 -0
- data/pumi.gemspec +40 -0
- data/pumi.jpg +0 -0
- data/pumi_ui_en.png +0 -0
- data/pumi_ui_km.png +0 -0
- data/tmp/.keep +0 -0
- metadata +302 -0
data/data/provinces.yml
ADDED
@@ -0,0 +1,202 @@
|
|
1
|
+
---
|
2
|
+
provinces:
|
3
|
+
'01':
|
4
|
+
name:
|
5
|
+
km: បន្ទាយមានជ័យ
|
6
|
+
latin: Banteay Meanchey
|
7
|
+
administrative_unit:
|
8
|
+
km: ខេត្ត
|
9
|
+
latin: Khaet
|
10
|
+
en: Province
|
11
|
+
'02':
|
12
|
+
name:
|
13
|
+
km: បាត់ដំបង
|
14
|
+
latin: Battambang
|
15
|
+
administrative_unit:
|
16
|
+
km: ខេត្ត
|
17
|
+
latin: Khaet
|
18
|
+
en: Province
|
19
|
+
'03':
|
20
|
+
name:
|
21
|
+
km: កំពង់ចាម
|
22
|
+
latin: Kampong Cham
|
23
|
+
administrative_unit:
|
24
|
+
km: ខេត្ត
|
25
|
+
latin: Khaet
|
26
|
+
en: Province
|
27
|
+
'04':
|
28
|
+
name:
|
29
|
+
km: កំពង់ឆ្នាំង
|
30
|
+
latin: Kampong Chhnang
|
31
|
+
administrative_unit:
|
32
|
+
km: ខេត្ត
|
33
|
+
latin: Khaet
|
34
|
+
en: Province
|
35
|
+
'05':
|
36
|
+
name:
|
37
|
+
km: កំពង់ស្ពឺ
|
38
|
+
latin: Kampong Speu
|
39
|
+
administrative_unit:
|
40
|
+
km: ខេត្ត
|
41
|
+
latin: Khaet
|
42
|
+
en: Province
|
43
|
+
'06':
|
44
|
+
name:
|
45
|
+
km: កំពង់ធំ
|
46
|
+
latin: Kampong Thom
|
47
|
+
administrative_unit:
|
48
|
+
km: ខេត្ត
|
49
|
+
latin: Khaet
|
50
|
+
en: Province
|
51
|
+
'07':
|
52
|
+
name:
|
53
|
+
km: កំពត
|
54
|
+
latin: Kampot
|
55
|
+
administrative_unit:
|
56
|
+
km: ខេត្ត
|
57
|
+
latin: Khaet
|
58
|
+
en: Province
|
59
|
+
'08':
|
60
|
+
name:
|
61
|
+
km: កណ្ដាល
|
62
|
+
latin: Kandal
|
63
|
+
administrative_unit:
|
64
|
+
km: ខេត្ត
|
65
|
+
latin: Khaet
|
66
|
+
en: Province
|
67
|
+
'09':
|
68
|
+
name:
|
69
|
+
km: កោះកុង
|
70
|
+
latin: Koh Kong
|
71
|
+
administrative_unit:
|
72
|
+
km: ខេត្ត
|
73
|
+
latin: Khaet
|
74
|
+
en: Province
|
75
|
+
'10':
|
76
|
+
name:
|
77
|
+
km: ក្រចេះ
|
78
|
+
latin: Kratie
|
79
|
+
administrative_unit:
|
80
|
+
km: ខេត្ត
|
81
|
+
latin: Khaet
|
82
|
+
en: Province
|
83
|
+
'11':
|
84
|
+
name:
|
85
|
+
km: មណ្ឌលគិរី
|
86
|
+
latin: Mondul Kiri
|
87
|
+
administrative_unit:
|
88
|
+
km: ខេត្ត
|
89
|
+
latin: Khaet
|
90
|
+
en: Province
|
91
|
+
'12':
|
92
|
+
name:
|
93
|
+
km: ភ្នំពេញ
|
94
|
+
latin: Phnom Penh
|
95
|
+
administrative_unit:
|
96
|
+
km: រាជធានី
|
97
|
+
latin: Reach Theani
|
98
|
+
en: Capital
|
99
|
+
'13':
|
100
|
+
name:
|
101
|
+
km: ព្រះវិហារ
|
102
|
+
latin: Preah Vihear
|
103
|
+
administrative_unit:
|
104
|
+
km: ខេត្ត
|
105
|
+
latin: Khaet
|
106
|
+
en: Province
|
107
|
+
'14':
|
108
|
+
name:
|
109
|
+
km: ព្រៃវែង
|
110
|
+
latin: Prey Veng
|
111
|
+
administrative_unit:
|
112
|
+
km: ខេត្ត
|
113
|
+
latin: Khaet
|
114
|
+
en: Province
|
115
|
+
'15':
|
116
|
+
name:
|
117
|
+
km: ពោធិ៍សាត់
|
118
|
+
latin: Pursat
|
119
|
+
administrative_unit:
|
120
|
+
km: ខេត្ត
|
121
|
+
latin: Khaet
|
122
|
+
en: Province
|
123
|
+
'16':
|
124
|
+
name:
|
125
|
+
km: រតនគិរី
|
126
|
+
latin: Ratanak Kiri
|
127
|
+
administrative_unit:
|
128
|
+
km: ខេត្ត
|
129
|
+
latin: Khaet
|
130
|
+
en: Province
|
131
|
+
'17':
|
132
|
+
name:
|
133
|
+
km: សៀមរាប
|
134
|
+
latin: Siemreap
|
135
|
+
administrative_unit:
|
136
|
+
km: ខេត្ត
|
137
|
+
latin: Khaet
|
138
|
+
en: Province
|
139
|
+
'18':
|
140
|
+
name:
|
141
|
+
km: ព្រះសីហនុ
|
142
|
+
latin: Preah Sihanouk
|
143
|
+
administrative_unit:
|
144
|
+
km: ខេត្ត
|
145
|
+
latin: Khaet
|
146
|
+
en: Province
|
147
|
+
'19':
|
148
|
+
name:
|
149
|
+
km: ស្ទឹងត្រែង
|
150
|
+
latin: Stung Treng
|
151
|
+
administrative_unit:
|
152
|
+
km: ខេត្ត
|
153
|
+
latin: Khaet
|
154
|
+
en: Province
|
155
|
+
'20':
|
156
|
+
name:
|
157
|
+
km: ស្វាយរៀង
|
158
|
+
latin: Svay Rieng
|
159
|
+
administrative_unit:
|
160
|
+
km: ខេត្ត
|
161
|
+
latin: Khaet
|
162
|
+
en: Province
|
163
|
+
'21':
|
164
|
+
name:
|
165
|
+
km: តាកែវ
|
166
|
+
latin: Takeo
|
167
|
+
administrative_unit:
|
168
|
+
km: ខេត្ត
|
169
|
+
latin: Khaet
|
170
|
+
en: Province
|
171
|
+
'22':
|
172
|
+
name:
|
173
|
+
km: ឧត្ដរមានជ័យ
|
174
|
+
latin: Oddar Meanchey
|
175
|
+
administrative_unit:
|
176
|
+
km: ខេត្ត
|
177
|
+
latin: Khaet
|
178
|
+
en: Province
|
179
|
+
'23':
|
180
|
+
name:
|
181
|
+
km: កែប
|
182
|
+
latin: Kep
|
183
|
+
administrative_unit:
|
184
|
+
km: ខេត្ត
|
185
|
+
latin: Khaet
|
186
|
+
en: Province
|
187
|
+
'24':
|
188
|
+
name:
|
189
|
+
km: ប៉ៃលិន
|
190
|
+
latin: Pailin
|
191
|
+
administrative_unit:
|
192
|
+
km: ខេត្ត
|
193
|
+
latin: Khaet
|
194
|
+
en: Province
|
195
|
+
'25':
|
196
|
+
name:
|
197
|
+
km: ត្បូងឃ្មុំ
|
198
|
+
latin: Tboung Khmum
|
199
|
+
administrative_unit:
|
200
|
+
km: ខេត្ត
|
201
|
+
latin: Khaet
|
202
|
+
en: Province
|