diff --git a/_water/navionics.SonarChart.layer.zmp/GetUrlScript.txt b/_water/navionics.SonarChart.layer.zmp/GetUrlScript.txt index 7332ef6b2..23566a8c8 100644 --- a/_water/navionics.SonarChart.layer.zmp/GetUrlScript.txt +++ b/_water/navionics.SonarChart.layer.zmp/GetUrlScript.txt @@ -50,8 +50,8 @@ begin if (Result = '') and Assigned(Downloader) then begin VTimeStamp := IntToStr(GetUnixTime); - VRequestUrl := 'https://backend.navionics.io/tile/get_key/Navionics_internalpurpose_00001/webapiv2.navionics.com?_=' + VTimeStamp; - VRequestHeader := 'Origin: https://webapiv2.navionics.com' + #13#10 + 'Referer: https://webapiv2.navionics.com/examples/4000_gNavionicsOverlayExample.html'; + VRequestUrl := 'https://backend.navionics.com/tile/get_key/NAVIONICS_WEBAPP_P01/webapp.navionics.com?_=' + VTimeStamp + '123'; + VRequestHeader := 'Origin: https://webapp.navionics.com' + #13#10 + 'Referer: https://webapp.navionics.com/'; VResponseHeader := ''; VResponseData := ''; VResponseCode := Downloader.DoHttpRequest(VRequestUrl, VRequestHeader, '', VResponseHeader, VResponseData); diff --git a/_water/navionics.SonarChart.layer.zmp/params.txt b/_water/navionics.SonarChart.layer.zmp/params.txt index 98baf3c14..4bd41c108 100644 --- a/_water/navionics.SonarChart.layer.zmp/params.txt +++ b/_water/navionics.SonarChart.layer.zmp/params.txt @@ -4,7 +4,7 @@ name=Navionics SonarChart(TM) ParentSubMenu_ru=Морские карты ParentSubMenu=Marine maps asLayer=1 -DefURLBase=http://backend.navionics.io/tile/ +DefURLBase=https://backend.navionics.com/tile/ NameInCache=navionics_sonarchart_layer Ext=.png ContentType=image/png @@ -12,4 +12,4 @@ projection=1 sradiusa=6378137 sradiusb=6378137 IsUseDownloaderInScript=1 -RequestHead=Referer: https://webapiv2.navionics.com/examples/4000_gNavionicsOverlayExample.html +RequestHead=Referer: http://webapp.navionics.com/ diff --git a/_water/navionics.SonarChart.zmp/GetUrlScript.txt b/_water/navionics.SonarChart.zmp/GetUrlScript.txt index 291ace15e..35bc391b9 100644 --- a/_water/navionics.SonarChart.zmp/GetUrlScript.txt +++ b/_water/navionics.SonarChart.zmp/GetUrlScript.txt @@ -50,8 +50,8 @@ begin if (Result = '') and Assigned(Downloader) then begin VTimeStamp := IntToStr(GetUnixTime); - VRequestUrl := 'http://backend.navionics.io/tile/get_key/Navionics_internalpurpose_00001/webapp.navionics.com?_=' + VTimeStamp; - VRequestHeader := 'Origin: http://webapp.navionics.com' + #13#10 + 'Referer: http://webapp.navionics.com/'; + VRequestUrl := 'https://backend.navionics.com/tile/get_key/NAVIONICS_WEBAPP_P01/webapp.navionics.com?_=' + VTimeStamp + '123'; + VRequestHeader := 'Origin: https://webapp.navionics.com' + #13#10 + 'Referer: https://webapp.navionics.com/'; VResponseHeader := ''; VResponseData := ''; VResponseCode := Downloader.DoHttpRequest(VRequestUrl, VRequestHeader, '', VResponseHeader, VResponseData); diff --git a/_water/navionics.SonarChart.zmp/params.txt b/_water/navionics.SonarChart.zmp/params.txt index 140d1e4f5..b2023c2a0 100644 --- a/_water/navionics.SonarChart.zmp/params.txt +++ b/_water/navionics.SonarChart.zmp/params.txt @@ -3,7 +3,7 @@ GUID={247A02DC-5204-46FC-8D23-828AFC83A434} name=Navionics SonarChart(TM) ParentSubMenu_ru=Морские карты ParentSubMenu=Marine maps -DefURLBase=http://backend.navionics.io/tile/ +DefURLBase=https://backend.navionics.com/tile/ NameInCache=navionics_sonarchart Ext=.png ContentType=image/png @@ -11,4 +11,4 @@ projection=1 sradiusa=6378137 sradiusb=6378137 IsUseDownloaderInScript=1 -RequestHead=Referer: https://webapiv2.navionics.com/examples/4000_gNavionicsOverlayExample.html +RequestHead=Referer: http://webapp.navionics.com/ diff --git a/_water/navionics.layer.zmp/GetUrlScript.txt b/_water/navionics.layer.zmp/GetUrlScript.txt index f39b884ef..683be37e4 100644 --- a/_water/navionics.layer.zmp/GetUrlScript.txt +++ b/_water/navionics.layer.zmp/GetUrlScript.txt @@ -50,8 +50,8 @@ begin if (Result = '') and Assigned(Downloader) then begin VTimeStamp := IntToStr(GetUnixTime); - VRequestUrl := 'https://backend.navionics.io/tile/get_key/Navionics_internalpurpose_00001/webapiv2.navionics.com?_=' + VTimeStamp; - VRequestHeader := 'Origin: https://webapiv2.navionics.com' + #13#10 + 'Referer: https://webapiv2.navionics.com/examples/4000_gNavionicsOverlayExample.html'; + VRequestUrl := 'https://backend.navionics.com/tile/get_key/NAVIONICS_WEBAPP_P01/webapp.navionics.com?_=' + VTimeStamp + '123'; + VRequestHeader := 'Origin: https://webapp.navionics.com' + #13#10 + 'Referer: https://webapp.navionics.com/'; VResponseHeader := ''; VResponseData := ''; VResponseCode := Downloader.DoHttpRequest(VRequestUrl, VRequestHeader, '', VResponseHeader, VResponseData); diff --git a/_water/navionics.layer.zmp/params.txt b/_water/navionics.layer.zmp/params.txt index 6059d59a0..59c08c4a5 100644 --- a/_water/navionics.layer.zmp/params.txt +++ b/_water/navionics.layer.zmp/params.txt @@ -4,7 +4,7 @@ name=Navionics Marine Charts ParentSubMenu_ru=Морские карты ParentSubMenu=Marine maps asLayer=1 -DefURLBase=http://backend.navionics.io/tile/ +DefURLBase=https://backend.navionics.com/tile/ NameInCache=navionics_layer Ext=.png ContentType=image/png @@ -12,4 +12,4 @@ projection=1 sradiusa=6378137 sradiusb=6378137 IsUseDownloaderInScript=1 -RequestHead=Referer: https://webapiv2.navionics.com/examples/4000_gNavionicsOverlayExample.html +RequestHead=Referer: http://webapp.navionics.com/ diff --git a/_water/navionics.zmp/GetUrlScript.txt b/_water/navionics.zmp/GetUrlScript.txt index c0afe67d3..242b262f5 100644 --- a/_water/navionics.zmp/GetUrlScript.txt +++ b/_water/navionics.zmp/GetUrlScript.txt @@ -20,6 +20,7 @@ const const cTTL = 24*60*60; // 24 hour + //cTTL = 1; cNavTokenKey = 'NavToken='; cTimeStampKey = 'TimeStamp='; @@ -50,8 +51,8 @@ begin if (Result = '') and Assigned(Downloader) then begin VTimeStamp := IntToStr(GetUnixTime); - VRequestUrl := 'http://backend.navionics.io/tile/get_key/Navionics_internalpurpose_00001/webapp.navionics.com?_=' + VTimeStamp; - VRequestHeader := 'Origin: http://webapp.navionics.com' + #13#10 + 'Referer: http://webapp.navionics.com/'; + VRequestUrl := 'https://backend.navionics.com/tile/get_key/NAVIONICS_WEBAPP_P01/webapp.navionics.com?_=' + VTimeStamp + '123'; + VRequestHeader := 'Origin: https://webapp.navionics.com' + #13#10 + 'Referer: https://webapp.navionics.com/'; VResponseHeader := ''; VResponseData := ''; VResponseCode := Downloader.DoHttpRequest(VRequestUrl, VRequestHeader, '', VResponseHeader, VResponseData); diff --git a/_water/navionics.zmp/params.txt b/_water/navionics.zmp/params.txt index 3a11f1830..4798e52ec 100644 --- a/_water/navionics.zmp/params.txt +++ b/_water/navionics.zmp/params.txt @@ -3,7 +3,7 @@ GUID={A830C100-49C8-4623-957A-60B85C39FBE0} name=Navionics Marine Charts ParentSubMenu_ru=Морские карты ParentSubMenu=Marine maps -DefURLBase=http://backend.navionics.io/tile/ +DefURLBase=https://backend.navionics.com/tile/ NameInCache=navionics Ext=.png ContentType=image/png