I'm develop a module for shipping method. I need order's address to calculate freight.
use Magento\Quote\Model\Quote\Address\RateRequest; $destCountryId = $request->getDestCountryId(); $destState = $request->getDestRegionCode(); $destCity = $request->getDestCity();
If customer not login ,they need to input address like picture I can use my code to get address. But if customer have logined and select address. My code can get country and city ,but can't get State with getDestRegionCode(). What's wrong with my code.Or may be someone can tell me how to get address is right.