Google Place API-特定于应用程序的搜索

拉贾尼雷迪

我正在尝试使用Google Place 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"
}

我有做对的事情吗?请帮忙。

谢谢与问候,--Rajani

史考特

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

scope —指示place_id的范围。可能的值为:

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.

注意:范围字段仅包含在“附近的搜索”结果和“地点详细信息”结果中。您只能通过“附近的搜索”和“地点详细信息”请求来检索应用程序范围内的地点。如果响应中没有显示范围字段,则可以安全地将范围假定为GOOGLE。

请参阅:https : //developers.google.com/places/documentation/search

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Google Place API(地方搜索器)

来自分类Dev

在Android上的Google LatLngBounds中搜索Google Place API

来自分类Dev

Android:提供“此IP,网站或移动应用程序无权使用此API密钥的Google Place Autocomplete API”

来自分类Dev

Google Place API无法在美国搜索体育馆

来自分类Dev

带有 pageToken 的 Google Place 搜索 API 返回相同的记录

来自分类Dev

解析Google Place API JSON

来自分类Dev

google place api图标列表

来自分类Dev

使用Google Place API获取事件

来自分类Dev

Google Place API在Android中显示错误

来自分类Dev

如何获得评论数Google Place API?

来自分类Dev

Google Place Autocomplete API调用入门

来自分类Dev

google place搜寻api和“ Listing by”文字

来自分类Dev

google-place-api返回null json

来自分类Dev

google place搜寻api和“ Listing by”文字

来自分类Dev

Google Place API限制-非使用限制

来自分类Dev

Google Map API-Infowindow显示Google Place API信息

来自分类Dev

Google Map API-Infowindow显示Google Place API信息

来自分类Dev

如何在angularjs控制器中执行Google Place API搜索

来自分类Dev

如何在angularjs控制器中执行Google Place API搜索

来自分类Dev

HTML 移动应用程序 / Google API

来自分类Dev

Google Place API:无法从 google place api android 获取大陆名称

来自分类Dev

使用Objective-C将Google Autocomplete Place Search API限制为特定国家/地区

来自分类Dev

有没有一种方法可以使Google搜索API仅搜索我的应用程序?

来自分类Dev

Google Cloud API如何将使用情况限制为特定应用程序?

来自分类Dev

Javascript:如何通过网络应用程序使用Google API访问“特定用户”数据?

来自分类Dev

Android Google Maps + Place搜索结果

来自分类Dev

构建我的应用程序并安装 Google Maps API 后,我的应用程序在我倾向于搜索位置的任何时候崩溃

来自分类Dev

我使用Google Place Api,但在附近的搜索地点(如银行和餐厅&..)使用时,这不起作用?

来自分类Dev

我使用Google Place Api,但是在附近的搜索地点(如银行和餐厅&..)使用时,这不起作用?

Related 相关文章

  1. 1

    Google Place API(地方搜索器)

  2. 2

    在Android上的Google LatLngBounds中搜索Google Place API

  3. 3

    Android:提供“此IP,网站或移动应用程序无权使用此API密钥的Google Place Autocomplete API”

  4. 4

    Google Place API无法在美国搜索体育馆

  5. 5

    带有 pageToken 的 Google Place 搜索 API 返回相同的记录

  6. 6

    解析Google Place API JSON

  7. 7

    google place api图标列表

  8. 8

    使用Google Place API获取事件

  9. 9

    Google Place API在Android中显示错误

  10. 10

    如何获得评论数Google Place API?

  11. 11

    Google Place Autocomplete API调用入门

  12. 12

    google place搜寻api和“ Listing by”文字

  13. 13

    google-place-api返回null json

  14. 14

    google place搜寻api和“ Listing by”文字

  15. 15

    Google Place API限制-非使用限制

  16. 16

    Google Map API-Infowindow显示Google Place API信息

  17. 17

    Google Map API-Infowindow显示Google Place API信息

  18. 18

    如何在angularjs控制器中执行Google Place API搜索

  19. 19

    如何在angularjs控制器中执行Google Place API搜索

  20. 20

    HTML 移动应用程序 / Google API

  21. 21

    Google Place API:无法从 google place api android 获取大陆名称

  22. 22

    使用Objective-C将Google Autocomplete Place Search API限制为特定国家/地区

  23. 23

    有没有一种方法可以使Google搜索API仅搜索我的应用程序?

  24. 24

    Google Cloud API如何将使用情况限制为特定应用程序?

  25. 25

    Javascript:如何通过网络应用程序使用Google API访问“特定用户”数据?

  26. 26

    Android Google Maps + Place搜索结果

  27. 27

    构建我的应用程序并安装 Google Maps API 后,我的应用程序在我倾向于搜索位置的任何时候崩溃

  28. 28

    我使用Google Place Api,但在附近的搜索地点(如银行和餐厅&..)使用时,这不起作用?

  29. 29

    我使用Google Place Api,但是在附近的搜索地点(如银行和餐厅&..)使用时,这不起作用?

热门标签

归档