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 。搜索查询。这可以作为 location 对象或字符串查询提供。search_query 只能是下列其中一项: |
location |
object (Location )
要搜索的位置。如果提供,系统将查找与提供的营业地点详情相符的营业地点。
|
query |
string
要搜索的文本查询。与提供确切位置相比,通过查询字符串获得的搜索结果在准确性方面会降低,但可以提供更多不完全匹配的结果。
|
响应正文
如果成功,响应正文将包含结构如下的数据:
GoogleLocations.SearchGoogleLocations 的响应消息。
字段 |
googleLocations[] |
object (GoogleLocation )
可能与指定请求可能匹配的 GoogleLocation 集合,按精确度从高到低排序。
|
授权范围
需要以下 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 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-10-14。
[[["易于理解","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"]],["最后更新时间 (UTC):2024-10-14。"],[[["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"]]