Google 地点 api - 特定于应用程序的搜索

Google place api - application specific search

我正在尝试使用 google 地点 api 进行特定于应用程序的地点搜索。这是我添加地点的方法:

要求:

{
    "location": {
        "lat": 37.760538,
        "lng": -121.900879
    },
    "accuracy": 50,
    "name": "p2p",
    "types": ["other"]
}

我收到如下所示的成功响应:

回复:

{
    "id" : "dfe583b1ac058750cf524f958afc5e82ade455d7",
    "place_id" : "qgYvCi0wMDAwMDBhNWE4OWU4NTMzOjgwOGZlZTBhNjI3OjBjNTU1OTU4M2Q2NDI5YmM",
    "reference" : "CkQxAAAAsPE72V-jhHUjj6vPy2HdC__2MhAdXanL6mlFBA4bcayRabKyMlfKFiah7U2vkoCj1P_0w9ESFSv5mfDkyufaZhIQTHBHY_jPGRHEE3EmEAGElhoUXTSylMslwHSTK5tYdstW2rOZKbw",
    "scope" : "APP",
    "status" : "OK"
}

当我使用雷达搜索搜索此地点时,我得到 ZERO_RESULTS。

要求:

https://maps.googleapis.com/maps/api/place/radarsearch/json?key=key&radius=5000&location=37.761926,-121.891856&keyword=p2p

回复:

{
"html_attributions": [ ],
"results": [ ],
"status": "ZERO_RESULTS"
}

有什么地方我做对了吗?请帮忙

感谢和问候, --拉贾尼

您的范围是"APP"。这意味着您只能从创建条目的应用程序访问它(通过 PlaceID)。如果该位置通过了 Google 的审核过程,那么它将获得范围 "GOOGLE" 并且可以从一般搜索中访问。

scope — Indicates the scope of the place_id. The possible values are:

APP: The place ID is recognised by your application only. This is because your 
      application added the place, and the place has not yet
      passed the moderation process.
GOOGLE: The place ID is available to other applications and on Google Maps.

Note: The scope field is included only in Nearby Search results and Place Details results. You can only retrieve app-scoped places via the Nearby Search and the Place Details requests. If the scope field is not present in a response, it is safe to assume the scope is GOOGLE.

参见:https://developers.google.com/places/documentation/search