Я использую это:
Код: Выделить всё
$geocode_stats = file_get_contents("http://maps.googleapis.com/maps/api/geocode/json?latlng=".$deal_lat.",".$deal_long . "&sensor=false");
$output_deals = json_decode($geocode_stats);
$country = $output_deals->results[2]->address_components[4]->long_name;
Кто-нибудь может помочь?
Подробнее здесь: https://stackoverflow.com/questions/143 ... -longitude