diff --git a/frontend/js/main.js b/frontend/js/main.js index adc76c7..29cc7a9 100644 --- a/frontend/js/main.js +++ b/frontend/js/main.js @@ -4726,9 +4726,10 @@ async function sendLocationSms() { let last = GPS.recording.lastMovingPoint || pts[pts.length - 1]; if (!last || last.lat == null) { appAlert("Нет координат — подожди фикс GPS"); return; } let lat = (+last.lat).toFixed(5), lon = (+last.lon).toFixed(5); - // Yandex Maps: pt=lon,lat drops a pin at the position - let link = `https://yandex.ru/maps/?pt=${lon},${lat}&z=16&l=map`; - let text = `Я тут: ${lat},${lon} ${link}`; + // Yandex Maps: pt=lon,lat drops a pin at the position. Link ONLY (ASCII, ~54 chars) + // so the whole message is GSM-7 and fits in a single SMS — any Cyrillic would force + // UCS-2 (70-char limit) and risk splitting into two. + let text = `https://yandex.ru/maps/?pt=${lon},${lat}&z=16&l=map`; let esc = s => String(s).replace(/
Кому: ${esc(number)}

${esc(text)}`,