Remove geocodes from the base API class

This commit is contained in:
April P. committed 2025-03-31 21:30:36 -07:00
1 parent 4e32477125
commit 5ddfe496ee
1 file changed
+2 -12
+2 -12
View File
@@ -113,13 +113,7 @@ public class Base
url = url.Replace("{zone}", location.zoneId);
}
}
if (url.Contains("{geocodes}"))
{
url = url.Replace("{geocodes}", string.Join(";", Globals.Geocoordinates));
}
return url;
}
@@ -152,11 +146,7 @@ public class Base
await sqlite.CloseAsync();
locationCache.Set(locId, location);
// Add location geocoordinates to the global list
string locationGeocoordinates = $"{location.lat},{location.@long}";
Globals.Geocoordinates.Add(locationGeocoordinates);
Log.Debug($"Location {locId} added to the location cache.");
return location;