【问题标题】:How to get nearby location such as bank, hotel and etc with google map API?如何使用谷歌地图 API 获取附近的位置,如银行、酒店等?
【发布时间】:2023-03-30 09:23:01
【问题描述】:

我用过这个网址:

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 时。知道如何处理这个问题以在加载附近位置时没有这个问题吗? 任何帮助将不胜感激。

【问题讨论】:

    标签: android api google-maps maps google-places-api


    【解决方案1】:

    找到解决办法

    Have to enable to get response
    
    ENABLE - Google Places API Web Service
    

    【讨论】:

    • 我添加了,但也有同样的问题
    猜你喜欢
    • 2016-12-06
    • 1970-01-01
    • 1970-01-01
    • 2011-03-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-03-08
    • 1970-01-01
    相关资源
    最近更新 更多