From 983dc69150bc8601bbe26519ea5613fb02ea2618 Mon Sep 17 00:00:00 2001 From: "April P." Date: Mon, 31 Mar 2025 21:31:45 -0700 Subject: [PATCH] Create new {geocode} URL formatting parameter --- MistWX-i2Me/API/Base.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MistWX-i2Me/API/Base.cs b/MistWX-i2Me/API/Base.cs index 6031be4..16b21c0 100644 --- a/MistWX-i2Me/API/Base.cs +++ b/MistWX-i2Me/API/Base.cs @@ -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);