Method: googleLocations.search

搜尋與指定要求相符的所有可能位置。

HTTP 要求

POST https://mybusiness.googleapis.com/v4/googleLocations:search

這個網址使用 gRPC 轉碼語法。

要求主體

要求主體的資料會採用以下結構:

JSON 表示法
{
  "resultCount": 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.
}
欄位
resultCount

integer

要傳回的相符項目數量。預設值為 3,最多 10。請注意,如果要求更多,延遲時間可能會增加。沒有分頁。

聯集欄位 search_query。搜尋查詢。能以位置物件或字串查詢的形式提供。search_query 只能是下列其中一項:
location

object (Location)

要搜尋的位置。如有提供,系統會找出與提供的地點詳細資料相符的地點。

query

string

要搜尋的文字查詢。查詢字串的搜尋結果會比提供確切位置來得準確,但可提供較不精確的符合項目。

回應主體

如果成功,回應主體即會包含具有以下結構的資料:

GoogleLocations.SearchGoogleLocations 的回應訊息。

JSON 表示法
{
  "googleLocations": [
    {
      object (GoogleLocation)
    }
  ]
}
欄位
googleLocations[]

object (GoogleLocation)

可能與指定要求相符的 GoogleLocation 集合,按精確度由高至低列出。

授權範圍

需要下列其中一種 OAuth 範圍:

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

詳情請參閱 OAuth 2.0 總覽