Method: googleLocations.search
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
指定したリクエストに一致する可能性のあるすべてのビジネスを検索します。
HTTP リクエスト
POST https://mybusiness.googleapis.com/v4/googleLocations:search
この URL は gRPC Transcoding 構文を使用します。
リクエストの本文
リクエストの本文には、次の構造のデータが含まれます。
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 。検索語句。これは、location オブジェクトまたは文字列クエリとして指定できます。search_query は次のいずれかになります。 |
location |
object (Location )
検索する場所。指定すると、指定した場所の詳細に一致する場所が検出されます。
|
query |
string
検索するテキストクエリ。クエリ文字列による検索結果は、正確な位置情報を指定した場合よりも精度は落ちますが、完全一致しないケースは多くなります。
|
レスポンスの本文
成功した場合、レスポンスの本文には次の構造のデータが含まれます。
GoogleLocations.SearchGoogleLocations に対するレスポンス メッセージです。
フィールド |
googleLocations[] |
object (GoogleLocation )
指定されたリクエストと一致する可能性のある GoogleLocations のコレクション。精度の高い順に一覧表示されます。
|
認可スコープ
次の OAuth スコープのいずれかが必要です。
https://www.googleapis.com/auth/plus.business.manage
https://www.googleapis.com/auth/business.manage
詳しくは、OAuth 2.0 の概要をご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-10-14 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2024-10-14 UTC。"],[[["Search for Google Locations using either a specific location or a text-based query."],["Specify the desired number of search results, with a maximum of 10."],["Results are returned in order of accuracy, with the most accurate matches appearing first."],["Requires specific authorization scopes for access."]]],["The core content describes searching for Google locations via a `POST` request to `https://mybusiness.googleapis.com/v4/googleLocations:search`. The request body can include either a `location` object or a string `query` within the `search_query` field, plus an integer `resultCount`. The response body contains an array of `googleLocations`, representing potential matches ranked by accuracy. Authorization requires either `plus.business.manage` or `business.manage` OAuth scopes.\n"]]