How to get all shipping addresses of a customer in magento 2

I want to show all shipping addresses of a customer. I am getting customer_id only. I am using $ customer->getAddress() but it’s giving all addresses from customer_address_entity table according to that customer_id. But I want only shipping addresses from these addresses. How can I solve it..