From 5ddfe496eed1e284fdca3dbbaf1ea80246a60acb Mon Sep 17 00:00:00 2001 From: "April P." Date: Mon, 31 Mar 2025 21:30:36 -0700 Subject: [PATCH] Remove geocodes from the base API class --- MistWX-i2Me/API/Base.cs | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/MistWX-i2Me/API/Base.cs b/MistWX-i2Me/API/Base.cs index 0b7dcd5..6031be4 100644 --- a/MistWX-i2Me/API/Base.cs +++ b/MistWX-i2Me/API/Base.cs @@ -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;