From 2f2c499850ac4c50a941ed9f4401be3f4b9d808a Mon Sep 17 00:00:00 2001 From: sasbot <> Date: Sat, 6 Jun 2020 12:00:00 +0000 Subject: [PATCH] update zmp --- Other/Navitel.zmp/GetUrlScript.txt | 4 +++- Other/Navitel.zmp/params.txt | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Other/Navitel.zmp/GetUrlScript.txt b/Other/Navitel.zmp/GetUrlScript.txt index 6b32a88ba..a7d1a57a4 100644 --- a/Other/Navitel.zmp/GetUrlScript.txt +++ b/Other/Navitel.zmp/GetUrlScript.txt @@ -1,10 +1,12 @@ var xx,yy,zz:string; begin +GetURLBase[10]:=chr(ord('1')+random(2)); xx:=inttostr(GetX); yy:=inttostr(round(intpower(2,getz-1)-GetY)-1); zz:=inttostr(GetZ-1); while length(xx)<8 do xx:='0'+xx; while length(yy)<8 do yy:='0'+yy; while length(zz)<2 do zz:='0'+zz; -ResultURL:=GetUrlBase+xx+','+yy+','+zz; +ResultURL:=GetUrlBase+xx+','+yy+','+zz+'&hl=ru'; +RequestHead:='Referer: http://map.navitel.su/' + #13#10; end. \ No newline at end of file diff --git a/Other/Navitel.zmp/params.txt b/Other/Navitel.zmp/params.txt index b086ffdb3..21e635844 100644 --- a/Other/Navitel.zmp/params.txt +++ b/Other/Navitel.zmp/params.txt @@ -8,7 +8,7 @@ ParentSubMenu= ParentSubMenu_en=Other maps ParentSubMenu_uk=²íø³ êàðòè asLayer=0 -DefURLBase=http://maps.navitel.su/2.0/navitms.fcgi?t= +DefURLBase=http://m01.navitel.su/navitms.fcgi?t= projection=1 sradiusa=6378137 sradiusb=6378137