Finds all of the possible locations that are a match to the specified location. This operation is only valid if the location is unverified.
HTTP request
POST https://mybusiness.googleapis.com/v4/{name=accounts/*/locations/*}:findMatches
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
The resource name of the location to find matches for. |
Request body
The request body contains data with the following structure:
JSON representation | |
---|---|
{ "languageCode": string, "numResults": integer, "maxCacheDuration": string } |
Fields | |
---|---|
languageCode |
The preferred language for the matching location (in BCP-47 format). |
numResults |
The number of matches to return. The default value is 3, with a maximum of 10. Note that latency may increase if more are requested. There is no pagination. |
maxCacheDuration |
Deprecated. This field is ignored for all requests. A duration in seconds with up to nine fractional digits, terminated by ' |
Response body
If successful, the response body contains data with the following structure:
Response message for Locations.FindMatchingLocations.
JSON representation | |
---|---|
{
"matchedLocations": [
{
object ( |
Fields | |
---|---|
matchedLocations[] |
A collection of locations that are potential matches to the specified location, listed in order from best to least match. If there is an exact match, it will be in the first position. |
matchTime |
When the matching algorithm was last executed for this location. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
Authorization Scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/plus.business.manage
https://www.googleapis.com/auth/business.manage
For more information, see the OAuth 2.0 Overview.
MatchedLocation
Represents a possible match to a location.
JSON representation | |
---|---|
{
"location": {
object ( |
Fields | |
---|---|
location |
The sparsely populated location that is a potential match. Unpopulated fields include, but may not be limited to: name (the matched location cannot be retrieved via |
isExactMatch |
Is this an exact match? |