-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathconfig.js
48 lines (48 loc) · 2.52 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
module.exports = {
hfc: {
alerts: {
// URL to Pikud Haoref's unofficial rocket alert JSON API
api: 'https://www.oref.org.il/warningMessages/alert/Alerts.json'
},
alertsHistory: {
// Additional URL to Pikud Haoref's unofficial rocket alert history JSON API
api: 'https://www.oref.org.il/warningMessages/alert/History/AlertsHistory.json'
},
// URLs to Pikud Haoref's JSON files which contain city metadata
website: {
// Main cities JSON URL
citiesJson: 'https://alerts-history.oref.org.il/Shared/Ajax/GetDistricts.aspx?lang=he',
cityNotesJson: 'https://alerts-history.oref.org.il/Shared/Ajax/GetAlarmInstructions.aspx?lang=he&from=1&cityid=',
// Additional language URLs
translatedCitiesJson: {
en: 'https://alerts-history.oref.org.il/Shared/Ajax/GetDistricts.aspx?lang=en',
ru: 'https://alerts-history.oref.org.il/Shared/Ajax/GetDistricts.aspx?lang=ru',
ar: 'https://alerts-history.oref.org.il/Shared/Ajax/GetDistricts.aspx?lang=ar'
},
// Main zone names JSON URLs
translatedZonesJson: {
he: 'https://www.oref.org.il/districts/cities_heb.json',
en: 'https://www.oref.org.il/districts/cities_eng.json',
ru: 'https://www.oref.org.il/districts/cities_rus.json',
ar: 'https://www.oref.org.il/districts/cities_arb.json'
},
// HFC segements API JSON files (additional cities not present in GetDistricts.aspx)
segmentsJson: 'https://dist-android.meser-hadash.org.il/smart-dist/services/anonymous/segments/android?locale=iw_IL&instance=1544803905',
// Additional language URLs
translatedSegmentsJson: {
en: 'https://dist-android.meser-hadash.org.il/smart-dist/services/anonymous/segments/android?locale=en_US&instance=1544803905',
ru: 'https://dist-android.meser-hadash.org.il/smart-dist/services/anonymous/segments/android?locale=ru_RU&instance=1544803905',
ar: 'https://dist-android.meser-hadash.org.il/smart-dist/services/anonymous/segments/android?locale=ar_EG&instance=1544803905'
}
}
},
israel: {
// Center of Israel coordinates
center: {
lat: 31.765352,
lng: 34.988067
},
// This radius (in KM) should cover Israel from the center point to all borders
radius: 400
}
};