mirror of
https://github.com/MistWeatherMedia/i2ME.git
synced 2026-11-28 14:20:00 -08:00
Create new {geocode} URL formatting parameter
This commit is contained in:
1 parent
5ddfe496ee
commit
983dc69150
1 file changed
+6
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user