mirror of
https://github.com/MistWeatherMedia/i2ME.git
synced 2026-11-28 22:30:55 -08:00
Remove geocodes from the base API class
This commit is contained in:
1 parent
4e32477125
commit
5ddfe496ee
1 file changed
+2
-12
+2
-12
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user