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

3

我使用了这个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

但是这一次第一次运行时没有出现问题。另一件事是当我第一次禁用并启用Google Maps地理编码API或Google Maps距离矩阵API时,也可以正常工作。请问如何处理以避免在加载附近位置时出现此问题?任何帮助将不胜感激。

1个回答

0

找到解决方案

Have to enable to get response

ENABLE - Google Places API Web Service

我添加了它,但它仍然存在同样的问题。 - VahidHoseini

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接