<?xml version="1.0" encoding="UTF-8"?>
<realty-feed xmlns="http://webmaster.yandex.ru/schemas/feed/realty/2010-06">
<generation-date>{{ "now"|date("Y-m-d") }}T{{ "now"|date("H:h:i+03:00") }}</generation-date>
{% for lot in lots %}{% if lot.typeLot.id == 1 and lot.area and lot.rooms and lot.price and lot.id != 2685 %}
{% if not lot.notShowLotinYandex %}
<offer internal-id="{{ lot.id }}">
<type>{% if lot.typeOperation.id == 1 %}продажа{% else %}аренда{% endif %}</type>
<property-type>жилая</property-type>
<category>квартира</category>
<deal-status>{% if not lot.pervichkaVtorichka %}первичная продажа{% else %}первичная продажа вторички{% endif %}</deal-status>
<creation-date>{{ "now"|date("Y-m-d") }}T{{ "now"|date("H:h:i+03:00") }}</creation-date>
<last-update-date>{{ "now"|date("Y-m-d") }}T{{ "now"|date("H:h:i+03:00") }}</last-update-date>
<url>https://troikaestate.ru/elit_kvartiry/{{ lot.id }}</url>
<location>
<country>Россия</country>
<locality-name>Москва</locality-name>
<address>{{ lot.address.street }}, {{ lot.address.home }}</address>
<metro>
<name>{{ lot.subway2.name }}</name>
</metro>
<latitude>{{ lot.x }}</latitude>
<longitude>{{ lot.y }}</longitude>
</location>
<sales-agent>
<organization>TroikaEstate</organization>
<category>agency</category>
<phone>+74952255510</phone>
<url>https://www.troikaestate.ru/</url>
<email>info@troikaestate.ru</email>
<photo>https://www.troikaestate.ru/img/logo.png</photo>
</sales-agent>
<description>{{ lot.description|raw|striptags|replace({'–' : ''})|replace({' ' : ''})|replace({'«': '«'})|replace({'»': '»'}) }}</description>
<price>
<value>{{ currency.getRubles(lot.price, lot.currency) }}</value>
<currency>RUR</currency>
{% if lot.typeOperation.id == 2 %}
<period>месяц</period>{% endif %}
</price>
<area>
<value>{{ lot.area }}</value>
<unit>кв. м</unit>
</area>
{% if lot.livArea %}
<living-space>
<value>{{ lot.livArea }}</value>
<unit>кв. м</unit>
</living-space>
{% endif %}
{% if lot.kitArea %}
<kitchen-space>
<value>{{ lot.kitArea }}</value>
<unit>кв. м</unit>
</kitchen-space>
{% endif %}
{% for photo in lot.photos %}
<image>https://troikaestate.ru{{ photo.webPathImage }}</image>
{% endfor %}
<renovation>{% if lot.repair %}с отделкой{% else %}черновая отделка{% endif %}</renovation>
<rooms>{{ lot.rooms }}</rooms>
<floor>
{% if "-" in lot.floor %}
{{ lot.floor|split("-")|last }}
{% elseif "/" in lot.floor %}
{{ lot.floor|split("/")|last }}
{% else %}
{{ lot.floor }}
{% endif %}
</floor>
<room-furniture>{% if lot.furnishing %} true {% else %} false {% endif %}</room-furniture>
{% if lot.complex %}
<building-name>{{ lot.complex.name }}</building-name>{% endif %}
<floors-total>{{ lot.floorAll }}</floors-total>
</offer>
{% endif %}{% endif %}{% endfor %}
</realty-feed>