Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/api/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 如何使用谷歌地图API获取附近的位置,如银行、酒店等?_Android_Api_Google Maps_Maps_Google Places Api - Fatal编程技术网

Android 如何使用谷歌地图API获取附近的位置,如银行、酒店等?

Android 如何使用谷歌地图API获取附近的位置,如银行、酒店等?,android,api,google-maps,maps,google-places-api,Android,Api,Google Maps,Maps,Google Places Api,我使用了以下URL: https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=-33.8670522,151.1957362&radius=500&type=restaurant&keyword=cruise&key=+MY_API_CODE 我在google API控制台中启用了这些服务: Google Maps Android API Google Maps Co

我使用了以下URL:

https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=-33.8670522,151.1957362&radius=500&type=restaurant&keyword=cruise&key=+MY_API_CODE
我在google API控制台中启用了这些服务:

 Google Maps Android API    
 Google Maps Coordinate API 
 Google Maps Directions API
 Google Maps Distance Matrix API
 Google Maps Embed API
 Google Maps Geocoding API
 Google Maps Geolocation API
另一件事是,当我第一次禁用并启用谷歌地图地理编码API或谷歌地图距离矩阵API时,它也能正常工作。知道如何处理此问题,以便在加载附近位置时不会出现此问题? 任何帮助都将不胜感激。

找到解决方案

Have to enable to get response

ENABLE - Google Places API Web Service

我添加了它,但它有同样的问题