Method: googleLocations.search

搜索与指定请求匹配的所有可能的位置。

HTTP 请求

POST https://mybusinessbusinessinformation.googleapis.com/v1/googleLocations:search

网址采用 gRPC 转码语法。

请求正文

请求正文中包含结构如下的数据:

JSON 表示法
{
  "pageSize": integer,

  // Union field search_query can be only one of the following:
  "location": {
    object (Location)
  },
  "query": string
  // End of list of possible types for union field search_query.
}
字段
pageSize

integer

要返回的匹配项数量。默认值为 3,最大值为 10。请注意,如果请求更多,延迟时间可能会增加。系统不支持分页。

联合字段 search_query。搜索查询。这可以作为 location 对象或字符串查询提供。search_query 只能是下列其中一项:
location

object (Location)

要搜索的位置。如果提供,将查找与所提供的位置详情匹配的营业地点。

query

string

要搜索的文本查询。与提供确切位置相比,通过查询字符串提供的搜索结果准确性较低,但能够提供的不精确匹配。

响应正文

GoogleLocations.SearchGoogleLocations 的响应消息。

如果成功,响应正文将包含结构如下的数据:

JSON 表示法
{
  "googleLocations": [
    {
      object (GoogleLocation)
    }
  ]
}
字段
googleLocations[]

object (GoogleLocation)

可能与指定请求匹配的 GoogleLocation 集合,按照准确率从高到低的顺序列出。

授权范围

需要以下 OAuth 作用域:

  • https://www.googleapis.com/auth/business.manage

有关详情,请参阅 OAuth 2.0 概览