magento2 – How to get Customer default shipping address in Magento 2

Try the below code and let me know if you need more details.

$customerRepository = MagentoCustomerApiCustomerRepositoryInterface
$addressRepository = MagentoCustomerApiAddressRepositoryInterface
//define above variables in constructor.
 $customer = $this->customerRepository->getById($customerId);
 $shippingAddressId = $customer->getDefaultShipping();

//get default billing address
 try {
    $shippingAddress = $this->addressRepository->getById($shippingAddressId);
} catch (Exception $e) {
    //
}