meteoalarm 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +14 -0
  3. data/Gemfile +16 -0
  4. data/Gemfile.lock +44 -0
  5. data/LICENSE.txt +21 -0
  6. data/README.md +90 -0
  7. data/Rakefile +14 -0
  8. data/countries/austria.json +116122 -0
  9. data/countries/belgium.json +369 -0
  10. data/countries/bosnia-herzegovina.json +474 -0
  11. data/countries/bulgeria.json +1084 -0
  12. data/countries/croatia.json +129694 -0
  13. data/countries/cyprus.json +67 -0
  14. data/countries/czechia.json +839 -0
  15. data/countries/denmark.json +2359 -0
  16. data/countries/estonia.json +838 -0
  17. data/countries/finland.json +3546 -0
  18. data/countries/france.json +4601 -0
  19. data/countries/germany.json +13918 -0
  20. data/countries/greece.json +1958 -0
  21. data/countries/hungary.json +545 -0
  22. data/countries/iceland.json +653 -0
  23. data/countries/ireland.json +1949 -0
  24. data/countries/israel.json +1733 -0
  25. data/countries/italy.json +3192 -0
  26. data/countries/latvia.json +164392 -0
  27. data/countries/lithuania.json +556 -0
  28. data/countries/luxembourg.json +52 -0
  29. data/countries/malta.json +47 -0
  30. data/countries/moldova.json +1609 -0
  31. data/countries/montenegro.json +193 -0
  32. data/countries/netherlands.json +956 -0
  33. data/countries/norway.json +7295 -0
  34. data/countries/poland.json +16858 -0
  35. data/countries/portugal.json +5923 -0
  36. data/countries/republic-of-north-macedonia.json +908 -0
  37. data/countries/romania.json +2122 -0
  38. data/countries/serbia.json +881 -0
  39. data/countries/slovenia.json +256 -0
  40. data/countries/slovkia.json +2628 -0
  41. data/countries/spain.json +14032 -0
  42. data/countries/sweden.json +3660 -0
  43. data/countries/switzerland.json +30511 -0
  44. data/countries/united-kingdom.json +98131 -0
  45. data/lib/meteoalarm/country_mapping.rb +41 -0
  46. data/lib/meteoalarm/tasks/areas.rake +17 -0
  47. data/lib/meteoalarm/tasks/countries.rake +10 -0
  48. data/lib/meteoalarm/version.rb +5 -0
  49. data/lib/meteoalarm.rb +185 -0
  50. metadata +93 -0
@@ -0,0 +1,369 @@
1
+ [
2
+ {
3
+ "code": "BE001",
4
+ "area": "Luxembourg",
5
+ "coordinates": [
6
+ [
7
+ [6.021928940954694, 50.18236906467813],
8
+ [6.003228755673092, 50.16365264175622],
9
+ [5.86894170962448, 49.981756959268054],
10
+ [5.768918959713957, 49.84520972561818],
11
+ [5.756415448117195, 49.81917271701482],
12
+ [5.754573992203845, 49.791389846513816],
13
+ [5.814578770947861, 49.552960836635656],
14
+ [5.784669327484245, 49.54187789054741],
15
+ [5.532053417363684, 49.50702609387106],
16
+ [5.499772355725959, 49.49539861644661],
17
+ [5.476099224736771, 49.505056614415885],
18
+ [5.424570565715833, 49.58679948947767],
19
+ [5.403630110844297, 49.60522736211235],
20
+ [5.374468917779835, 49.62123456153787],
21
+ [5.134543396397532, 49.712710751821625],
22
+ [4.972812466641315, 49.77388310673659],
23
+ [4.939620037100575, 49.78973488820395],
24
+ [5.000523838407737, 49.825800432900174],
25
+ [5.1123574601652, 49.90783099235709],
26
+ [5.139506178197088, 49.93035355413838],
27
+ [5.246310079499665, 50.08280688209747],
28
+ [5.369240106741286, 50.25688735188892],
29
+ [5.383336048495472, 50.2824907439951],
30
+ [5.401027825800405, 50.34752836911618],
31
+ [5.394578964999567, 50.3827588158689],
32
+ [5.41921976086747, 50.3975153660053],
33
+ [5.445248212751515, 50.421530759693205],
34
+ [5.479675739387432, 50.42428970346016],
35
+ [5.517876965783046, 50.4192255774418],
36
+ [5.720055389495023, 50.38338985095006],
37
+ [5.939007608356121, 50.3441198471254],
38
+ [6.016588385112868, 50.3262527578231],
39
+ [6.038238884084095, 50.304705185084124],
40
+ [6.040881023301466, 50.264054395037206],
41
+ [6.035210916608321, 50.220586882831846],
42
+ [6.021928940954694, 50.18236906467813]
43
+ ]
44
+ ],
45
+ "type": "Polygon"
46
+ },
47
+ {
48
+ "code": "BE009",
49
+ "area": "West Vlaanderen",
50
+ "coordinates": [
51
+ [
52
+ [3.417153221687556, 51.24311574596818],
53
+ [3.400994780927562, 51.202075441680236],
54
+ [3.373593269149296, 51.121738746637284],
55
+ [3.369298494209431, 51.08272108339642],
56
+ [3.449489361137111, 50.962691892562056],
57
+ [3.470821097634583, 50.922908513945124],
58
+ [3.503942607949277, 50.85238491891129],
59
+ [3.513650212562418, 50.80695266137185],
60
+ [3.493982656084334, 50.776798668058625],
61
+ [3.451427523515612, 50.77452520733139],
62
+ [3.244887086494238, 50.74978665547174],
63
+ [3.208239926915454, 50.74148134644395],
64
+ [3.1739401308906, 50.7396793131967],
65
+ [2.913400644924018, 50.69355280162425],
66
+ [2.869116888190689, 50.701615786921366],
67
+ [2.822443721658892, 50.71456115383393],
68
+ [2.775456304946196, 50.73505198641654],
69
+ [2.64369763234162, 50.80748535258743],
70
+ [2.625100136592089, 50.830620476891376],
71
+ [2.603832903534979, 50.88128654121549],
72
+ [2.552135594355491, 51.06862600735205],
73
+ [2.535583982722216, 51.09110590503796],
74
+ [2.578395299219231, 51.09973922575655],
75
+ [2.782436272075721, 51.17021825227182],
76
+ [2.987116667437376, 51.240341792224946],
77
+ [3.321085501863848, 51.353530488383626],
78
+ [3.357594100111953, 51.363021657215384],
79
+ [3.382449401949202, 51.33231901947555],
80
+ [3.408440138471029, 51.27411043735524],
81
+ [3.417153221687556, 51.24311574596818]
82
+ ]
83
+ ],
84
+ "type": "Polygon"
85
+ },
86
+ {
87
+ "code": "BE002",
88
+ "area": "Antwerpen",
89
+ "coordinates": [
90
+ [
91
+ [5.211761347818374, 51.270463699035474],
92
+ [5.196362395028935, 51.23376565981894],
93
+ [5.041329631464634, 51.049470513459184],
94
+ [5.022414433103243, 51.01410902189547],
95
+ [4.983736248462108, 51.02346129273536],
96
+ [4.609372398131036, 51.03227185872042],
97
+ [4.293395985258371, 51.03878544106333],
98
+ [4.261334750956799, 51.031909478849414],
99
+ [4.266770902665577, 51.0682968585362],
100
+ [4.240895573430052, 51.300769634617694],
101
+ [4.22019246427174, 51.34725373657234],
102
+ [4.248422383327891, 51.37634856346176],
103
+ [4.271864052423517, 51.394690439068285],
104
+ [4.309310991898478, 51.3914504293833],
105
+ [4.549563964899398, 51.45063590140458],
106
+ [4.730170691857786, 51.49470581811728],
107
+ [4.760195950785203, 51.49658658231367],
108
+ [4.93804209120227, 51.409837100200726],
109
+ [5.174096988787631, 51.293752446517416],
110
+ [5.211761347818374, 51.270463699035474]
111
+ ]
112
+ ],
113
+ "type": "Polygon"
114
+ },
115
+ {
116
+ "code": "BE003",
117
+ "area": "Oost Vlaanderen",
118
+ "coordinates": [
119
+ [
120
+ [4.261334750956799, 51.031909478849414],
121
+ [4.091713307008852, 50.88772485500506],
122
+ [3.931715915002073, 50.75063054614793],
123
+ [3.909148247521792, 50.72798510170411],
124
+ [3.876650403833529, 50.72938692107412],
125
+ [3.530561530084504, 50.77124340067865],
126
+ [3.493982656084334, 50.776798668058625],
127
+ [3.513650212562418, 50.80695266137185],
128
+ [3.503942607949277, 50.85238491891129],
129
+ [3.470821097634583, 50.922908513945124],
130
+ [3.449489361137111, 50.962691892562056],
131
+ [3.369298494209431, 51.08272108339642],
132
+ [3.373593269149296, 51.121738746637284],
133
+ [3.400994780927562, 51.202075441680236],
134
+ [3.417153221687556, 51.24311574596818],
135
+ [3.448435619381392, 51.26323078267603],
136
+ [3.52441849581124, 51.2896849570845],
137
+ [3.589871294156929, 51.306395294652845],
138
+ [3.764584318104795, 51.26651273388994],
139
+ [3.792371397473367, 51.24879530181861],
140
+ [3.79142992633303, 51.21982869836203],
141
+ [3.818514104244649, 51.21094057393306],
142
+ [3.855371070352469, 51.20639812710459],
143
+ [3.902500466170437, 51.20447989697457],
144
+ [4.02593603656198, 51.23602809750538],
145
+ [4.073374689731942, 51.25117173449068],
146
+ [4.141493199480003, 51.28195558767083],
147
+ [4.178869163104608, 51.30365764868496],
148
+ [4.204978335580996, 51.324678790255774],
149
+ [4.22019246427174, 51.34725373657234],
150
+ [4.240895573430052, 51.300769634617694],
151
+ [4.266770902665577, 51.0682968585362],
152
+ [4.261334750956799, 51.031909478849414]
153
+ ]
154
+ ],
155
+ "type": "Polygon"
156
+ },
157
+ {
158
+ "code": "BE005",
159
+ "area": "Hainaut",
160
+ "coordinates": [
161
+ [
162
+ [3.909148247521792, 50.72798510170411],
163
+ [3.936621550858269, 50.71795314623236],
164
+ [4.247551796476309, 50.64122858099623],
165
+ [4.590568425073279, 50.55532008837911],
166
+ [4.609610665477334, 50.53758513312674],
167
+ [4.58607341211534, 50.44335574940007],
168
+ [4.569811876842862, 50.423066208459915],
169
+ [4.374965586763928, 50.24472078706396],
170
+ [4.355446835130109, 50.216178716511436],
171
+ [4.412224100663572, 49.9724179842487],
172
+ [4.424707008224964, 49.944349368545446],
173
+ [4.394223969848184, 49.947962679342055],
174
+ [4.261927507927858, 49.9570427670365],
175
+ [4.218504336277988, 49.96199556928288],
176
+ [4.179992991032748, 49.97512479263768],
177
+ [4.14634872426393, 49.98468757022206],
178
+ [4.161093553607827, 50.01271714327069],
179
+ [4.192793147297628, 50.116185034401525],
180
+ [4.199943908433028, 50.14269262178537],
181
+ [4.218505235577382, 50.24660066085873],
182
+ [4.202810298366614, 50.27455321945966],
183
+ [4.023694281180653, 50.34987250283257],
184
+ [3.991808610048501, 50.346608257718714],
185
+ [3.914875605892113, 50.33035726131388],
186
+ [3.873913306363789, 50.33191751887196],
187
+ [3.759991869904759, 50.344854962922426],
188
+ [3.721956152562271, 50.354064878436034],
189
+ [3.397801070898325, 50.481831296659664],
190
+ [3.326655790199943, 50.510324460578445],
191
+ [3.293346903793633, 50.526420109968555],
192
+ [3.274675685692415, 50.55673272180588],
193
+ [3.214478671053818, 50.71220420681424],
194
+ [3.208239926915454, 50.74148134644395],
195
+ [3.244887086494238, 50.74978665547174],
196
+ [3.451427523515612, 50.77452520733139],
197
+ [3.493982656084334, 50.776798668058625],
198
+ [3.530561530084504, 50.77124340067865],
199
+ [3.876650403833529, 50.72938692107412],
200
+ [3.909148247521792, 50.72798510170411]
201
+ ]
202
+ ],
203
+ "type": "Polygon"
204
+ },
205
+ {
206
+ "code": "BE007",
207
+ "area": "Limburg",
208
+ "coordinates": [
209
+ [
210
+ [5.631081114767952, 51.22576055584938],
211
+ [5.660245488895114, 51.215369615208026],
212
+ [5.820501369596705, 51.168007132352564],
213
+ [5.846931738614806, 51.13926743741632],
214
+ [5.826747466237677, 51.098671449070096],
215
+ [5.676107136942746, 50.856266347346306],
216
+ [5.666968388218137, 50.82090556050234],
217
+ [5.627853039881707, 50.81540169974835],
218
+ [5.346449344534939, 50.756433249304216],
219
+ [5.099071220705561, 50.70390822532225],
220
+ [5.085238916883476, 50.73243198481413],
221
+ [5.030336352967872, 50.9725583279632],
222
+ [5.022414433103243, 51.01410902189547],
223
+ [5.041329631464634, 51.049470513459184],
224
+ [5.196362395028935, 51.23376565981894],
225
+ [5.211761347818374, 51.270463699035474],
226
+ [5.250346707180313, 51.26825119670702],
227
+ [5.386609327020145, 51.26791391869395],
228
+ [5.431999976495831, 51.2664371825635],
229
+ [5.53070603590475, 51.250094064114805],
230
+ [5.562632255937665, 51.24389047097562],
231
+ [5.631081114767952, 51.22576055584938]
232
+ ]
233
+ ],
234
+ "type": "Polygon"
235
+ },
236
+ {
237
+ "code": "BE004",
238
+ "area": "Brabant",
239
+ "coordinates": [
240
+ [
241
+ [5.022414433103243, 51.01410902189547],
242
+ [5.030336352967872, 50.9725583279632],
243
+ [5.085238916883476, 50.73243198481413],
244
+ [5.099071220705561, 50.70390822532225],
245
+ [5.072249920871023, 50.69061883695472],
246
+ [5.019468000681286, 50.659157049374656],
247
+ [4.998098995241833, 50.63582917234298],
248
+ [4.963106329574344, 50.63390766222405],
249
+ [4.647641595696057, 50.558206209824505],
250
+ [4.609610665477334, 50.53758513312674],
251
+ [4.590568425073279, 50.55532008837911],
252
+ [4.247551796476309, 50.64122858099623],
253
+ [3.936621550858269, 50.71795314623236],
254
+ [3.909148247521792, 50.72798510170411],
255
+ [3.931715915002073, 50.75063054614793],
256
+ [4.091713307008852, 50.88772485500506],
257
+ [4.261334750956799, 51.031909478849414],
258
+ [4.293395985258371, 51.03878544106333],
259
+ [4.609372398131036, 51.03227185872042],
260
+ [4.983736248462108, 51.02346129273536],
261
+ [5.022414433103243, 51.01410902189547]
262
+ ]
263
+ ],
264
+ "type": "Polygon"
265
+ },
266
+ {
267
+ "code": "BE006",
268
+ "area": "Namur",
269
+ "coordinates": [
270
+ [
271
+ [5.394578964999567, 50.3827588158689],
272
+ [5.401027825800405, 50.34752836911618],
273
+ [5.383336048495472, 50.2824907439951],
274
+ [5.369240106741286, 50.25688735188892],
275
+ [5.246310079499665, 50.08280688209747],
276
+ [5.139506178197088, 49.93035355413838],
277
+ [5.1123574601652, 49.90783099235709],
278
+ [5.000523838407737, 49.825800432900174],
279
+ [4.939620037100575, 49.78973488820395],
280
+ [4.907398144725398, 49.796896653843774],
281
+ [4.651200939571247, 49.87553145437518],
282
+ [4.424707008224964, 49.944349368545446],
283
+ [4.412224100663572, 49.9724179842487],
284
+ [4.355446835130109, 50.216178716511436],
285
+ [4.374965586763928, 50.24472078706396],
286
+ [4.569811876842862, 50.423066208459915],
287
+ [4.58607341211534, 50.44335574940007],
288
+ [4.609610665477334, 50.53758513312674],
289
+ [4.647641595696057, 50.558206209824505],
290
+ [4.963106329574344, 50.63390766222405],
291
+ [4.998098995241833, 50.63582917234298],
292
+ [5.031938660687715, 50.61111986291402],
293
+ [5.238869035007539, 50.481236215050615],
294
+ [5.394578964999567, 50.3827588158689]
295
+ ]
296
+ ],
297
+ "type": "Polygon"
298
+ },
299
+ {
300
+ "code": "BE008",
301
+ "area": "Liege",
302
+ "coordinates": [
303
+ [
304
+ [6.031238325165759, 50.74453381113704],
305
+ [6.244258644370142, 50.5225828651964],
306
+ [6.269791223749081, 50.499165669167006],
307
+ [6.294712334501803, 50.46963194763484],
308
+ [6.38108017428624, 50.37770045671753],
309
+ [6.341636478963146, 50.34896849401747],
310
+ [6.163611700840646, 50.157276433069846],
311
+ [6.144961609421344, 50.12463369089424],
312
+ [6.114936081725368, 50.13894295379966],
313
+ [6.05399460065054, 50.16464698442256],
314
+ [6.021928940954694, 50.18236906467813],
315
+ [6.035210916608321, 50.220586882831846],
316
+ [6.040881023301466, 50.264054395037206],
317
+ [6.038238884084095, 50.304705185084124],
318
+ [6.016588385112868, 50.3262527578231],
319
+ [5.939007608356121, 50.3441198471254],
320
+ [5.720055389495023, 50.38338985095006],
321
+ [5.517876965783046, 50.4192255774418],
322
+ [5.479675739387432, 50.42428970346016],
323
+ [5.445248212751515, 50.421530759693205],
324
+ [5.41921976086747, 50.3975153660053],
325
+ [5.394578964999567, 50.3827588158689],
326
+ [5.238869035007539, 50.481236215050615],
327
+ [5.031938660687715, 50.61111986291402],
328
+ [4.998098995241833, 50.63582917234298],
329
+ [5.019468000681286, 50.659157049374656],
330
+ [5.072249920871023, 50.69061883695472],
331
+ [5.099071220705561, 50.70390822532225],
332
+ [5.346449344534939, 50.756433249304216],
333
+ [5.627853039881707, 50.81540169974835],
334
+ [5.666968388218137, 50.82090556050234],
335
+ [5.711512073883711, 50.8108297270718],
336
+ [5.985912690747945, 50.762128041129515],
337
+ [6.031238325165759, 50.74453381113704]
338
+ ]
339
+ ],
340
+ "type": "Polygon"
341
+ },
342
+ {
343
+ "code": "BE801",
344
+ "area": "BE801",
345
+ "coordinates": [
346
+ [
347
+ [3.357594100111953, 51.363021657215384],
348
+ [3.321085501863848, 51.353530488383626],
349
+ [2.987116667437376, 51.240341792224946],
350
+ [2.782436272075721, 51.17021825227182],
351
+ [2.578395299219231, 51.09973922575655],
352
+ [2.535583982722216, 51.09110590503796],
353
+ [2.527008520384292, 51.12798336957417],
354
+ [2.432632557713525, 51.31650559948574],
355
+ [2.428326995779614, 51.34480879901709],
356
+ [2.670640266282113, 51.496396434778084],
357
+ [2.884017493481657, 51.62861727023447],
358
+ [2.924016945181492, 51.6509815670222],
359
+ [2.944507374620457, 51.62606956616018],
360
+ [3.118258111650711, 51.54853030424887],
361
+ [3.335441655221857, 51.45086471109648],
362
+ [3.348211136901639, 51.428029499527455],
363
+ [3.357196553387794, 51.39836296956942],
364
+ [3.357594100111953, 51.363021657215384]
365
+ ]
366
+ ],
367
+ "type": "Polygon"
368
+ }
369
+ ]