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.