|
@@ -1,7 +1,9 @@ |
|
|
var
|
|
|
var
|
|
|
I: Integer;
|
|
|
I: Integer;
|
|
|
VEncoded: string;
|
|
|
VEncoded: string;
|
|
|
|
|
|
VBox: string;
|
|
|
begin
|
|
|
begin
|
|
|
|
|
|
VBox := RoundEx(GetLMetr ,10) + ',' + RoundEx(GetBMetr, 10) + ',' + RoundEx(GetRMetr, 10) + ',' + RoundEx(GetTMetr, 10);
|
|
|
// prepare params
|
|
|
// prepare params
|
|
|
VEncoded :=
|
|
|
VEncoded :=
|
|
|
'LAYERS=osm_ram' + '&' +
|
|
|
'LAYERS=osm_ram' + '&' +
|
|
@@ -13,7 +15,7 @@ begin |
|
|
'SRS=EPSG%3A3395' + '&' +
|
|
|
'SRS=EPSG%3A3395' + '&' +
|
|
|
'WIDTH=256' + '&' +
|
|
|
'WIDTH=256' + '&' +
|
|
|
'HEIGHT=256' + '&' +
|
|
|
'HEIGHT=256' + '&' +
|
|
|
'BBOX=' + RoundEx(GetLMetr ,10) + ',' + RoundEx(GetBMetr, 10) + ',' + RoundEx(GetRMetr, 10) + ',' + RoundEx(GetTMetr, 10);
|
|
|
|
|
|
|
|
|
'BBOX=' + VBox;
|
|
|
|
|
|
|
|
|
// crypt
|
|
|
// crypt
|
|
|
for I := 1 to Length(VEncoded) do
|
|
|
for I := 1 to Length(VEncoded) do
|
|
@@ -25,7 +27,7 @@ begin |
|
|
//replase "+" with "%2b" charset
|
|
|
//replase "+" with "%2b" charset
|
|
|
VEncoded := RegExprReplaceMatchSubStr(VEncoded, '\+', '\%2b');
|
|
|
VEncoded := RegExprReplaceMatchSubStr(VEncoded, '\+', '\%2b');
|
|
|
|
|
|
|
|
|
ResultURL:=GetURLBase + VEncoded + '&NAVKEY=NAVIONICS11WEBAPI111';
|
|
|
|
|
|
|
|
|
ResultURL:=GetURLBase + VEncoded + '&NAVKEY=NAVIONICS11WEBAPI111&TEST=' + VBox + '&ZOOM=' + IntToStr(GetZ) + '&v=1&SRC=http://www.navionics.com';
|
|
|
|
|
|
|
|
|
RequestHead := 'Referer: http://www.navionics.com/sites/navionics.plurimedia.it/files/coverage/webapp.html?2985400';
|
|
|
RequestHead := 'Referer: http://www.navionics.com/sites/navionics.plurimedia.it/files/coverage/webapp.html?2985400';
|
|
|
end. |
|
|
end. |