results[0]->geometry->location->lat;$lng = $data->results[0]->geometry->location->lng;// 根据经纬度查询附近的如家快捷酒店$url = "https://api.map.baidu.com/place/v2/search?query=如家快捷酒店&location=" . $lat . "," . $lng . "&radius=500&output=json&ak=YOUR_API_KEY";$json = file_get_contents($url);$data = json_decode($json);// 输出查询结果echo "