Create new {geocode} URL formatting parameter

This commit is contained in:
April P. committed 2025-03-31 21:31:45 -07:00
1 parent 5ddfe496ee
commit 983dc69150
1 file changed
+6
+6
View File
@@ -1,3 +1,4 @@
using System.Data.Common;
using System.Data.SQLite;
using Dapper;
using System.Text;
@@ -97,6 +98,11 @@ public class Base
url = url.Replace("{long}", location.@long);
}
if (url.Contains("{geocode}"))
{
url = url.Replace("{geocode}", $"{location.lat},{location.@long}");
}
if (url.Contains("{zip}"))
{
url = url.Replace("{zip}", location.zip2locId);