Расстояние до аэропорта — один разThe distance to the airport — once
· Открыть на сайтеOpen on the site
ЦельGoal
Инвестор открывает юнит и хочет понять, где он находится и как далеко аэропорт. Блок «Город» должен отвечать на это коротко, без повторов.An investor opens a unit and wants to know where it is and how far the airport is. The «City» block should answer that briefly, without repeats.
ЗадачаProblem
У московских юнитов в блоке «Город» одно и то же было написано дважды: строка «Аэропорт» — «Шереметьево (≈28 км); Внуково ≈29 км, Домодедово ≈42 км», а под ней строка «Расстояние до аэропорта, км» — снова «≈28 км … до аэропорта Шереметьево». Так на 541 странице Москвы; на телефоне блок занимал 537 px.On Moscow units the «City» block said the same thing twice: the «Airport» line — «Sheremetyevo (≈28 km); Vnukovo ≈29 km, Domodedovo ≈42 km», and under it the «Distance to airport, km» line — «≈28 km … to Sheremetyevo airport» again. That was on 541 Moscow pages; on a phone the block took 537 px.
Как решилиHow it was solved
- Если строка «Аэропорт» уже называет расстояние, отдельной строки с тем же числом нет: у Москвы в блоке «Город» две строки — «Регион» и «Аэропорт».When the «Airport» line already names the distance, there is no separate line with the same number: Moscow's «City» block has two lines — «Region» and «Airport».
- Источник и подпись GeoNames у строки «Аэропорт» на месте; расстояние по-прежнему в «Источниках» юнита и в сравнении.The «Airport» line keeps its source and the GeoNames credit; the distance is still in the unit's «Sources» and in the comparison.
- У турецких курортов строка аэропорта называет только аэропорт, поэтому расстояние показано своей строкой, как раньше; где данных нет — «нет данных» и где искали.At Turkish resorts the airport line names only the airport, so the distance has its own line as before; where there is no data — «no data» and where we searched.
- Итог: блок «Город» московского юнита на телефоне 537 → 379 px, на компьютере 347 → 262 px; «≈28 км» в блоке — один раз.Result: the «City» block of a Moscow unit on a phone 537 → 379 px, on a computer 347 → 262 px; «≈28 km» appears once.
До и послеBefore and after


