28 $result->setId($ormAddress->getId())
29 ->setLatitude($ormAddress->getLatitude())
30 ->setLongitude($ormAddress->getLongitude());
33 foreach ($ormAddress->getFields() as $field)
35 $result->setFieldValue($field->getType(), $field->getValue());
38 if($ormLocation = $ormAddress->getLocation())
40 $location = \Bitrix\Location\Entity\Location\Converter\OrmConverter::createLocation(
42 $ormAddress->getLanguageId()
51 if($links = $ormAddress->getLinks())
54 foreach ($links as $link)
56 $result->addLink($link->getEntityId(), $link->getEntityType());
77 foreach ($collection as $item)
79 $result->addItem(self::convertFromOrm($item));