switch to cntyCd since we can use that for intl locations with a different looking area id

This commit is contained in:
PicelBoi committed 2026-01-02 18:43:34 -05:00
1 parent 1af061edd0
commit 87b3e90f02
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -128,6 +128,11 @@ public class Base
}
}
if (url.Contains("{cntyId}"))
{
url = url.Replace("{cntyId}", location.cntyId);
}
if (url.Contains("{locId}"))
{
url = url.Replace("{locId}", location.locId);
@@ -8,7 +8,7 @@ public class AlertHeadlinesProduct : Base
{
RecordName = "AlertHeadlines";
DataUrl =
"https://api.weather.com/v3/alerts/headlines?geocode={geocode}&format=json&language=en-US&apiKey={apiKey}";
"https://api.weather.com/v3/alerts/headlines?areaId={zone}:{cntryCd}&format=json&language=en-US&apiKey={apiKey}";
// ^^ This URL isn't broken, but using the geocode causes it to output the correct zone/county code each time
}