Documentation ¶
Index ¶
Constants ¶
View Source
const BMKG_URL = "https://data.bmkg.go.id/"
Variables ¶
View Source
var LocationCode = map[string]string{
"1": "Aceh",
"2": "Bali",
"3": "BangkaBelitung",
"4": "Banten",
"5": "Bengkulu",
"6": "DIYogyakarta",
"7": "DKIJakarta",
"8": "Gorontalo",
"9": "Jambi",
"10": "JawaBarat",
"11": "JawaTengah",
"12": "JawaTimur",
"13": "KalimantanBarat",
"14": "KalimantanSelatan",
"15": "KalimantanTengah",
"16": "KalimantanTimur",
"17": "KalimantanUtara",
"18": "KepulauanRiau",
"19": "Lampung",
"20": "Maluku",
"21": "MalukuUtara",
"22": "NusaTenggaraBarat",
"23": "NusaTenggaraTimur",
"24": "Papua",
"25": "PapuaBarat",
"26": "Riau",
"27": "SulawesiBarat",
"28": "SulawesiSelatan",
"29": "SulawesiTengah",
"30": "SulawesiTenggara",
"31": "SulawesiUtara",
"32": "SumateraBarat",
"33": "SumateraSelatan",
"34": "SumateraUtara",
"35": "Indonesia",
}
View Source
var WeatherCode = map[int]string{
0: "Cerah / Clear Skies",
1: "Cerah Berawan / Partly Cloudy",
2: "Cerah Berawan / Partly Cloudy",
3: "Berawan / Mostly Cloudy",
4: "Berawan Tebal / Overcast",
5: " Udara Kabur / Haze",
10: "Asap / Smoke",
45: "Kabut / Fog",
60: "Hujan Ringan / Light Rain",
61: "Hujan Sedang / Rain",
63: "Hujan Lebat / Heavy Rain",
80: "Hujan Lokal / Isolated Shower",
95: "Hujan Petir / Severe Thunderstorm",
97: "Hujan Petir / Severe Thunderstorm",
}
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.