From d60b6b1a4cc0035994bbca7c5c0c0b56e0e57e7d Mon Sep 17 00:00:00 2001 From: sasbot <> Date: Sat, 6 Jun 2020 12:00:00 +0000 Subject: [PATCH] update zmp --- Yandex/YaTraf.zmp/GetUrlScript.txt | 4 ++-- Yandex/YaTraf.zmp/params.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Yandex/YaTraf.zmp/GetUrlScript.txt b/Yandex/YaTraf.zmp/GetUrlScript.txt index 2605384b4..d45ed115a 100644 --- a/Yandex/YaTraf.zmp/GetUrlScript.txt +++ b/Yandex/YaTraf.zmp/GetUrlScript.txt @@ -73,9 +73,9 @@ var begin ts := 0; if IsNeedUpdateTimeStamp(ADelta) then begin - stat_js := DownloadUrl('http://jgo.maps.yandex.net/trf/stat.js'); + stat_js := DownloadUrl('https://api-maps.yandex.ru/services/coverage/v2/layers_stamps?l=trf'); if stat_js <> '' then begin - ts_val := RegExprGetMatchSubStr(stat_js, 'timestamp:"(\d+)"', 1); + ts_val := RegExprGetMatchSubStr(stat_js, '"version":"(\d+)"', 1); if ts_val <> '' then begin ts := StrToInt(ts_val); SaveIntValue(ts_key, ts); diff --git a/Yandex/YaTraf.zmp/params.txt b/Yandex/YaTraf.zmp/params.txt index 40dd4b506..418832a1f 100644 --- a/Yandex/YaTraf.zmp/params.txt +++ b/Yandex/YaTraf.zmp/params.txt @@ -10,7 +10,7 @@ ParentSubMenu_ru=Яндекс ParentSubMenu=Yandex ParentSubMenu_uk=Яндекс NameInCache=yatraf -DefURLBase=http://jgo.maps.yandex.net/tiles?l=trf%2Ctrfe&x= +DefURLBase=https://core-jams-rdr.maps.yandex.net/1.1/tiles?trf&l=trf&x= ContentType=image/png Ext=.png projection=2