cancel
Showing results for 
Search instead for 
Did you mean: 

Not Able to get Destination City in CollectRate Method

Not Able to get Destination City in CollectRate Method

I am trying to get destination city in our custom shipping module in collectRates() Method but its giving blank from request.
Here is my collectRates() method code:

 

I am trying to get city by the following method.

 

public function collectRates(\Magento\Quote\Model\Quote\Address\RateRequest $request)
{
    if ($request->getDestCity()) {
         $r->setDestCity($request->getDestCity());
    }
}

But its giving blank.

 

I have tried my best to find the city name, please help.