In the Magento 2, how can I programmatically get customers full addresses as a string? I want to modify this code:
public function Address()
{
$customerId = "42";
$customer = $this->customerRepository->getById($customerId);
$addresses = $customer->getAddresses();
$billingAddress = $customer->getDefaultBilling();
$shippingAddress = $customer->getDefaultShipping();
return $billingAddress;
}