@@ -50,8 +50,8 @@ begin | |||||
if (Result = '') and Assigned(Downloader) then begin | if (Result = '') and Assigned(Downloader) then begin | ||||
VTimeStamp := IntToStr(GetUnixTime); | 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 := ''; | VResponseHeader := ''; | ||||
VResponseData := ''; | VResponseData := ''; | ||||
VResponseCode := Downloader.DoHttpRequest(VRequestUrl, VRequestHeader, '', VResponseHeader, VResponseData); | VResponseCode := Downloader.DoHttpRequest(VRequestUrl, VRequestHeader, '', VResponseHeader, VResponseData); | ||||
@@ -4,7 +4,7 @@ name=Navionics SonarChart(TM) | |||||
ParentSubMenu_ru=Ìîðñêèå êàðòû | ParentSubMenu_ru=Ìîðñêèå êàðòû | ||||
ParentSubMenu=Marine maps | ParentSubMenu=Marine maps | ||||
asLayer=1 | asLayer=1 | ||||
DefURLBase=http://backend.navionics.io/tile/ | |||||
DefURLBase=https://backend.navionics.com/tile/ | |||||
NameInCache=navionics_sonarchart_layer | NameInCache=navionics_sonarchart_layer | ||||
Ext=.png | Ext=.png | ||||
ContentType=image/png | ContentType=image/png | ||||
@@ -12,4 +12,4 @@ projection=1 | |||||
sradiusa=6378137 | sradiusa=6378137 | ||||
sradiusb=6378137 | sradiusb=6378137 | ||||
IsUseDownloaderInScript=1 | IsUseDownloaderInScript=1 | ||||
RequestHead=Referer: https://webapiv2.navionics.com/examples/4000_gNavionicsOverlayExample.html | |||||
RequestHead=Referer: http://webapp.navionics.com/ |
@@ -50,8 +50,8 @@ begin | |||||
if (Result = '') and Assigned(Downloader) then begin | if (Result = '') and Assigned(Downloader) then begin | ||||
VTimeStamp := IntToStr(GetUnixTime); | 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 := ''; | VResponseHeader := ''; | ||||
VResponseData := ''; | VResponseData := ''; | ||||
VResponseCode := Downloader.DoHttpRequest(VRequestUrl, VRequestHeader, '', VResponseHeader, VResponseData); | VResponseCode := Downloader.DoHttpRequest(VRequestUrl, VRequestHeader, '', VResponseHeader, VResponseData); | ||||
@@ -3,7 +3,7 @@ GUID={247A02DC-5204-46FC-8D23-828AFC83A434} | |||||
name=Navionics SonarChart(TM) | name=Navionics SonarChart(TM) | ||||
ParentSubMenu_ru=Ìîðñêèå êàðòû | ParentSubMenu_ru=Ìîðñêèå êàðòû | ||||
ParentSubMenu=Marine maps | ParentSubMenu=Marine maps | ||||
DefURLBase=http://backend.navionics.io/tile/ | |||||
DefURLBase=https://backend.navionics.com/tile/ | |||||
NameInCache=navionics_sonarchart | NameInCache=navionics_sonarchart | ||||
Ext=.png | Ext=.png | ||||
ContentType=image/png | ContentType=image/png | ||||
@@ -11,4 +11,4 @@ projection=1 | |||||
sradiusa=6378137 | sradiusa=6378137 | ||||
sradiusb=6378137 | sradiusb=6378137 | ||||
IsUseDownloaderInScript=1 | IsUseDownloaderInScript=1 | ||||
RequestHead=Referer: https://webapiv2.navionics.com/examples/4000_gNavionicsOverlayExample.html | |||||
RequestHead=Referer: http://webapp.navionics.com/ |
@@ -50,8 +50,8 @@ begin | |||||
if (Result = '') and Assigned(Downloader) then begin | if (Result = '') and Assigned(Downloader) then begin | ||||
VTimeStamp := IntToStr(GetUnixTime); | 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 := ''; | VResponseHeader := ''; | ||||
VResponseData := ''; | VResponseData := ''; | ||||
VResponseCode := Downloader.DoHttpRequest(VRequestUrl, VRequestHeader, '', VResponseHeader, VResponseData); | VResponseCode := Downloader.DoHttpRequest(VRequestUrl, VRequestHeader, '', VResponseHeader, VResponseData); | ||||
@@ -4,7 +4,7 @@ name=Navionics Marine Charts | |||||
ParentSubMenu_ru=Ìîðñêèå êàðòû | ParentSubMenu_ru=Ìîðñêèå êàðòû | ||||
ParentSubMenu=Marine maps | ParentSubMenu=Marine maps | ||||
asLayer=1 | asLayer=1 | ||||
DefURLBase=http://backend.navionics.io/tile/ | |||||
DefURLBase=https://backend.navionics.com/tile/ | |||||
NameInCache=navionics_layer | NameInCache=navionics_layer | ||||
Ext=.png | Ext=.png | ||||
ContentType=image/png | ContentType=image/png | ||||
@@ -12,4 +12,4 @@ projection=1 | |||||
sradiusa=6378137 | sradiusa=6378137 | ||||
sradiusb=6378137 | sradiusb=6378137 | ||||
IsUseDownloaderInScript=1 | IsUseDownloaderInScript=1 | ||||
RequestHead=Referer: https://webapiv2.navionics.com/examples/4000_gNavionicsOverlayExample.html | |||||
RequestHead=Referer: http://webapp.navionics.com/ |
@@ -20,6 +20,7 @@ const | |||||
const | const | ||||
cTTL = 24*60*60; // 24 hour | cTTL = 24*60*60; // 24 hour | ||||
//cTTL = 1; | |||||
cNavTokenKey = 'NavToken='; | cNavTokenKey = 'NavToken='; | ||||
cTimeStampKey = 'TimeStamp='; | cTimeStampKey = 'TimeStamp='; | ||||
@@ -50,8 +51,8 @@ begin | |||||
if (Result = '') and Assigned(Downloader) then begin | if (Result = '') and Assigned(Downloader) then begin | ||||
VTimeStamp := IntToStr(GetUnixTime); | 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 := ''; | VResponseHeader := ''; | ||||
VResponseData := ''; | VResponseData := ''; | ||||
VResponseCode := Downloader.DoHttpRequest(VRequestUrl, VRequestHeader, '', VResponseHeader, VResponseData); | VResponseCode := Downloader.DoHttpRequest(VRequestUrl, VRequestHeader, '', VResponseHeader, VResponseData); | ||||
@@ -3,7 +3,7 @@ GUID={A830C100-49C8-4623-957A-60B85C39FBE0} | |||||
name=Navionics Marine Charts | name=Navionics Marine Charts | ||||
ParentSubMenu_ru=Ìîðñêèå êàðòû | ParentSubMenu_ru=Ìîðñêèå êàðòû | ||||
ParentSubMenu=Marine maps | ParentSubMenu=Marine maps | ||||
DefURLBase=http://backend.navionics.io/tile/ | |||||
DefURLBase=https://backend.navionics.com/tile/ | |||||
NameInCache=navionics | NameInCache=navionics | ||||
Ext=.png | Ext=.png | ||||
ContentType=image/png | ContentType=image/png | ||||