Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
yes ,i use $request->getDestRegionCode(),but if region field was input type field before select address in this time,this time $request->getDestRegionCode() return null.
magento.com/default/rest/default/V1/carts/mine/estimate-shipping-methods-by-address-id select address ajax send request to this url ,param is entity_id in table customer_address_entity. use entity_id can find address and region has right value but region_id is 0. In this mode of operation getDestRegionCode() return null.