I am making a plugin to display estimate shipping/delivery time depend on visitor IP address. To do this I am using WC_Geolocation
but using this I can get only visitor country code like US
CA
etc how can I get visitor state name if county is US .
$geoData = WC_Geolocation::geolocate_ip();
$country = $geoData['country'];
echo $country;
will output country code. how to get state name?