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,193 @@
1
+ [
2
+ {
3
+ "code": "ME001",
4
+ "area": "Continental and Mountains",
5
+ "coordinates": [
6
+ [
7
+ [19.181764291701775, 43.51761998069524],
8
+ [19.204192532765592, 43.47845706291575],
9
+ [19.260269586919065, 43.39834911240493],
10
+ [19.2914725762054, 43.36163311584363],
11
+ [19.324263247627904, 43.34387409648553],
12
+ [19.628100639850743, 43.19355899072181],
13
+ [19.670186193667938, 43.175411040785846],
14
+ [19.905452871257623, 43.08391499131481],
15
+ [19.941752883935223, 43.066584200095974],
16
+ [20.253386580962562, 42.90863393097595],
17
+ [20.257321258478985, 42.86931746576197],
18
+ [20.242670954712416, 42.8295318169839],
19
+ [20.211128710154465, 42.75695950900331],
20
+ [20.181312429305542, 42.74786783092209],
21
+ [20.023861570845984, 42.74543992560947],
22
+ [20.00000289937817, 42.734500439199934],
23
+ [20.02851723301537, 42.60835076362335],
24
+ [20.04479046396206, 42.57408920993562],
25
+ [20.077779949187132, 42.562578003974124],
26
+ [20.05703521988335, 42.5445659725402],
27
+ [20.02501847101241, 42.5238536505703],
28
+ [19.976946275424545, 42.51337205865331],
29
+ [19.931140345213457, 42.51121817112072],
30
+ [19.894852063952758, 42.49961907219999],
31
+ [19.861750691387044, 42.48486535067977],
32
+ [19.824608251701648, 42.49220994701551],
33
+ [19.784886668518006, 42.5095726636809],
34
+ [19.76192071267073, 42.542538117221426],
35
+ [19.752156915924864, 42.580680445824974],
36
+ [19.73739219040622, 42.66314099426951],
37
+ [19.707380863162612, 42.65717314342676],
38
+ [19.683604015076646, 42.64067255335042],
39
+ [19.652742111274435, 42.63816512404162],
40
+ [19.556993373081692, 42.71050401762666],
41
+ [19.523253810586816, 42.723527644201354],
42
+ [19.49110617172928, 42.70229130777848],
43
+ [19.45073505569699, 42.66660747745739],
44
+ [19.41706841866084, 42.662783763504365],
45
+ [19.31210983459177, 42.665054094993394],
46
+ [19.28467220543339, 42.667280471818344],
47
+ [19.184392014663487, 42.68913711892431],
48
+ [19.147646067525947, 42.69528190363958],
49
+ [19.100989479166408, 42.69805648706944],
50
+ [19.05859169986801, 42.69484255755278],
51
+ [18.969867246874372, 42.631424740745665],
52
+ [18.94106210938515, 42.618506788402556],
53
+ [18.781116085485472, 42.68917771039129],
54
+ [18.741799116673263, 42.700403647345176],
55
+ [18.716170194230923, 42.675222762899416],
56
+ [18.70057502794449, 42.645632172546556],
57
+ [18.667053859642465, 42.61998781593597],
58
+ [18.633208112359156, 42.616553961284595],
59
+ [18.547621850929815, 42.59595967773862],
60
+ [18.50314171809675, 42.596211052203955],
61
+ [18.453336847524767, 42.598817640446086],
62
+ [18.444855899541857, 42.62977892699914],
63
+ [18.4687746201706, 42.811602231284134],
64
+ [18.474736726286075, 42.85339839218024],
65
+ [18.49077605115177, 42.942347534583085],
66
+ [18.502407450941845, 42.97482673737123],
67
+ [18.539414754427952, 43.030530733480326],
68
+ [18.676077308503288, 43.2350563848656],
69
+ [18.695716879015833, 43.26068103585212],
70
+ [18.837130394901443, 43.36930893589191],
71
+ [18.98674338812105, 43.483507136544276],
72
+ [19.007926996904427, 43.5051119943984],
73
+ [19.03916945205157, 43.517034308929475],
74
+ [19.145892707554424, 43.52221874670324],
75
+ [19.181764291701775, 43.51761998069524]
76
+ ]
77
+ ],
78
+ "type": "Polygon"
79
+ },
80
+ {
81
+ "code": "ME003",
82
+ "area": "Central",
83
+ "coordinates": [
84
+ [
85
+ [19.652742111274435, 42.63816512404162],
86
+ [19.649271111898514, 42.61134747417355],
87
+ [19.61883990574202, 42.57955432081067],
88
+ [19.457416910487876, 42.39824102095342],
89
+ [19.435527036871214, 42.372947342198124],
90
+ [19.419727444305575, 42.35073628025148],
91
+ [19.36016965871712, 42.26236653566262],
92
+ [19.334853756347137, 42.23953607999842],
93
+ [19.22555982406209, 42.25483444239415],
94
+ [19.189503325904674, 42.264477335450024],
95
+ [19.119654172198693, 42.31114620829224],
96
+ [19.08848434164145, 42.32011351972511],
97
+ [19.066012560078335, 42.29780314212597],
98
+ [19.03631910677452, 42.28261024099494],
99
+ [19.000147976981197, 42.27108076726694],
100
+ [18.912420852511588, 42.3206096143425],
101
+ [18.868185018118396, 42.33387528389725],
102
+ [18.822197371599714, 42.34421308995502],
103
+ [18.80804666161557, 42.373490228816365],
104
+ [18.80539244331016, 42.40018369395038],
105
+ [18.78326370983254, 42.47127200949804],
106
+ [18.770226954056568, 42.49550310024438],
107
+ [18.741367568815726, 42.50657363112172],
108
+ [18.713274973897583, 42.544623490874905],
109
+ [18.685029174848374, 42.57978850761848],
110
+ [18.667053859642465, 42.61998781593597],
111
+ [18.70057502794449, 42.645632172546556],
112
+ [18.716170194230923, 42.675222762899416],
113
+ [18.741799116673263, 42.700403647345176],
114
+ [18.781116085485472, 42.68917771039129],
115
+ [18.94106210938515, 42.618506788402556],
116
+ [18.969867246874372, 42.631424740745665],
117
+ [19.05859169986801, 42.69484255755278],
118
+ [19.100989479166408, 42.69805648706944],
119
+ [19.147646067525947, 42.69528190363958],
120
+ [19.184392014663487, 42.68913711892431],
121
+ [19.28467220543339, 42.667280471818344],
122
+ [19.31210983459177, 42.665054094993394],
123
+ [19.41706841866084, 42.662783763504365],
124
+ [19.45073505569699, 42.66660747745739],
125
+ [19.49110617172928, 42.70229130777848],
126
+ [19.523253810586816, 42.723527644201354],
127
+ [19.556993373081692, 42.71050401762666],
128
+ [19.652742111274435, 42.63816512404162]
129
+ ]
130
+ ],
131
+ "type": "Polygon"
132
+ },
133
+ {
134
+ "code": "ME002",
135
+ "area": "Adriatic coast",
136
+ "coordinates": [
137
+ [
138
+ [
139
+ [19.08848434164145, 42.32011351972511],
140
+ [19.096053890053085, 42.29145014188436],
141
+ [19.136937200069408, 42.22552903770074],
142
+ [19.164020041434334, 42.20656880614635],
143
+ [19.384477961478993, 42.08059296125482],
144
+ [19.391066013849922, 42.027921919232],
145
+ [19.38853796722428, 41.931578511228444],
146
+ [19.38420105721299, 41.87252270654039],
147
+ [19.361723747284465, 41.85007726258643],
148
+ [19.113448946247843, 42.039729615982125],
149
+ [18.970807243505483, 42.14777248269968],
150
+ [18.799500942440957, 42.27703428255366],
151
+ [18.66299545064649, 42.38821227845546],
152
+ [18.639238552406567, 42.41076550793046],
153
+ [18.66581444882396, 42.42799257603565],
154
+ [18.734218181987394, 42.439786574231846],
155
+ [18.76101408359432, 42.45429758563206],
156
+ [18.770226954056568, 42.49550310024438],
157
+ [18.78326370983254, 42.47127200949804],
158
+ [18.80539244331016, 42.40018369395038],
159
+ [18.80804666161557, 42.373490228816365],
160
+ [18.822197371599714, 42.34421308995502],
161
+ [18.868185018118396, 42.33387528389725],
162
+ [18.912420852511588, 42.3206096143425],
163
+ [19.000147976981197, 42.27108076726694],
164
+ [19.03631910677452, 42.28261024099494],
165
+ [19.066012560078335, 42.29780314212597],
166
+ [19.08848434164145, 42.32011351972511]
167
+ ]
168
+ ],
169
+ [
170
+ [
171
+ [18.667053859642465, 42.61998781593597],
172
+ [18.685029174848374, 42.57978850761848],
173
+ [18.713274973897583, 42.544623490874905],
174
+ [18.741367568815726, 42.50657363112172],
175
+ [18.69867444831836, 42.509625162602646],
176
+ [18.667582771107227, 42.506327059052644],
177
+ [18.548363361056275, 42.46845188823201],
178
+ [18.514651494532153, 42.44822255341718],
179
+ [18.500994518418153, 42.42435777979476],
180
+ [18.4872669274406, 42.461014804477756],
181
+ [18.44925508695789, 42.528861461198524],
182
+ [18.43433741906297, 42.56650067821688],
183
+ [18.453336847524767, 42.598817640446086],
184
+ [18.50314171809675, 42.596211052203955],
185
+ [18.547621850929815, 42.59595967773862],
186
+ [18.633208112359156, 42.616553961284595],
187
+ [18.667053859642465, 42.61998781593597]
188
+ ]
189
+ ]
190
+ ],
191
+ "type": "MultiPolygon"
192
+ }
193
+ ]