trying to get the order shipping address Magento 2. I did the below code but not its not getting.
$order = $observer->getEvent()->getOrder(); // order id i am getting correct. $order_id = $order->getId(); $order->getShippingAddress();
Even tried with by load that order using order but still not getting
$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $orderObj = $objectManager->get('Magento\Sales\Model\Order'); $order_info= $orderObj->load($order_id); $shippingaddress = $order_info->getShippingAddress()); $this->logger->info($shippingaddress);