mirror of
https://github.com/MistWeatherMedia/i2ME.git
synced 2026-11-28 22:30:55 -08:00
switch to cntyCd since we can use that for intl locations with a different looking area id
This commit is contained in:
1 parent
1af061edd0
commit
87b3e90f02
2 files changed
+6
-1
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user