status == 'OK') {$latitude = $geocode->results[0]->geometry->location->lat;$longitude = $geocode->results[0]->geometry->location->lng;// 根据经纬度查询附近酒店$hotels = file_get_contents('https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=' . $latitude . ',' . $longitude . '&radius=500&type=lodging&key=YOUR_API_KEY');$hotels = json_decode($hotels);if ($hotels->status == 'OK') {echo '