using findMatches to find locations[ Edited ]
February 2017 - last edited March 2017 by Shalini S
Could you provide a simple example in PHP for using the findMatches method to find unverified Locations? I am attempting to associate unverified locations per guidance here:
I've tried passing a
as the second param to this method with no success. Any guidance would be greatly appreciated.
Re: using findMatches to find locations[ Edited ]
March 2017 - last edited March 2017
Hi @David L,
We suggest you please follow the code below for the PHP application to find all of the possible locations on Google Maps that are a match to the specified location with Google API Client Library for PHP via the Google My Business API:
// Finds all of the possible locations that are a match to the specified location. $findMatchingLocationsRequest = new Google_Service_Mybusiness_FindMatchingLocationsRequest(); $findMatchingLocationsRequest->setLanguageCode("en"); $findMatchingLocationsRequest->setNumResults(5); $findMatchingLocationsResponse = $locations->findMatches($location->name, $findMatchingLocationsRequest); var_dump($findMatchingLocationsResponse);
I hope this helps!
The Google My Business API team