-
Notifications
You must be signed in to change notification settings - Fork 0
/
consts.py
34 lines (29 loc) · 1.01 KB
/
consts.py
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
"""GDACS constants."""
ATTRIBUTION = "Global Disaster Alert and Coordination System"
XML_ATTRIBUTE_VALUE = "@value"
XML_TEXT = "#text"
XML_TAG_DC_SUBJECT = "dc:subject"
XML_TAG_GDACS_ALERT_LEVEL = "gdacs:alertlevel"
XML_TAG_GDACS_COUNTRY = "gdacs:country"
XML_TAG_GDACS_DURATION_IN_WEEK = "gdacs:durationinweek"
XML_TAG_GDACS_EVENT_ID = "gdacs:eventid"
XML_TAG_GDACS_EVENT_NAME = "gdacs:eventname"
XML_TAG_GDACS_EVENT_TYPE = "gdacs:eventtype"
XML_TAG_GDACS_FROM_DATE = "gdacs:fromdate"
XML_TAG_GDACS_ICON = "gdacs:icon"
XML_TAG_GDACS_IS_CURRENT = "gdacs:iscurrent"
XML_TAG_GDACS_POPULATION = "gdacs:population"
XML_TAG_GDACS_SEVERITY = "gdacs:severity"
XML_TAG_GDACS_TEMPORARY = "gdacs:temporary"
XML_TAG_GDACS_TO_DATE = "gdacs:todate"
XML_TAG_GDACS_VERSION = "gdacs:version"
XML_TAG_GDACS_VULNERABILITY = "gdacs:vulnerability"
EVENT_TYPE_MAP = {
"DR": "Drought",
"EQ": "Earthquake",
"FL": "Flood",
"TC": "Tropical Cyclone",
"TS": "Tsunami",
"VO": "Volcano",
}
URL = "https://www.gdacs.org/xml/rss.xml"