My Business
4.7K members online now
4.7K members online now
For developers who are using the Google My Business API to manage locations
Guide Me
star_border
Reply

Existing business not found during search

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hello,

I'm performing a call to your search endpoint https://maps.googleapis.com/maps/api/place/textsearch/json?location=47.99992%2C7.78781&radius=500&qu..."

 

and i have back only this business:

{
"html_attributions" : [],
"results" : [
{
"formatted_address" : "Cornelia-Schlosser-Allee 30, 79111 Freiburg, Germania",
"geometry" : {
"location" : {
"lat" : 47.99992,
"lng" : 7.787809999999999
},
"viewport" : {
"northeast" : {
"lat" : 48.00001169999999,
"lng" : 7.787899799999999
},
"southwest" : {
"lat" : 47.9996449,
"lng" : 7.787540599999996
}
}
},
"icon" : "https://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
"id" : "e53fe0299bcc6308b5e15ae02ba5fe63cc2d3291",
"name" : "Dieter Schaudel",
"place_id" : "ChIJIcNLhOYakUcR_uMjXPIA86c",
"reference" : "CmRSAAAAuk9gekgEdYZLTgTrsdl9GnWsL1X2L4VJ_PwGsoOo2BW1rgdzXQBu7D3cZ-qO1rgqwuqtFE3yWKYK98pq5UyH7aWXBgmKoiqJT6L5byn2ZejDgEk5zrhhxkaodsnhZ_LYEhAfRRr3gJ-V5a7Yifap1ympGhRHNiAjIpCHwdt_g25l51RifOwi-w",
"types" : [ "point_of_interest", "establishment" ]
}
],
"status" : "OK"
}

but i should find as well this existing one:

{
    [more stuff]
    "pageId": "14588688341289397076",
    "locationName": "SCHAUDELconsult",
    "verificationStatus": "VERIFIED",
    [...]
    "languageCode": "de",
    "primaryPhone": "0761 4538460",
    "address": {
        "postalCode": "79111",
        "addressLines": ["Cornelia-Schlosser-Allee 30"],
        "locality": "Freiburg im Breisgau",
        "country": "DE"
    },
    "name": "accounts/109540388987658309792/locations/14588688341289397076",
    "latlng": {
        "longitude": 7.78781,
        "latitude": 47.99992
    },
    "openInfo": {"status": "OPEN"},
    "locationKey": {
        "placeId": "ChIJIcNLhOYakUcRAzSj22sj164",
        "plusPageId": "117221208310759113870"
    },
    "locationState": {
        "isVerified": true,
        "isPublished": true,
        "canDelete": true,
        "canUpdate": true
    },
    "websiteUrl": "http://www.schaudelconsult.com",
    "storeCode": "9de3688320568d875d0868b0b8bf6837",
    "metadata": {"mapsUrl": "https://maps.google.com/maps?cid=12598577428745630723"}
}

could you please have a look and let me know?

Thank you,
Primo.

 

1 Expert replyverified_user

Re: Existing business not found during search

[ Edited ]
Google Employee
# 2
Google Employee

Hi @Primo M,

 

I successfully created an unverified location with the following JSON request body composed from the business listing’s information in your post:

{

 "websiteUrl": "http://www.schaudelconsult.com",

 "openInfo": {

   "status": "OPEN"

 },

 "latlng": {

   "latitude": 47.99992,

   "longitude": 7.78781

 },

 "locationName": "SCHAUDELconsult",

 "primaryPhone": "0761 4538460",

 "address": {

   "postalCode": "79111",

   "country": "DE",

   "addressLines": [

     "Cornelia-Schlosser-Allee 30"

   ],

   "locality": "Freiburg im Breisgau"

 },

 "primaryCategory": {

   "name": "Computer Consultant",

   "categoryId": "gcid:computer_consultant"

 }

}

 

I sent a POST request to the :findMatches endpoint via the Google My Business API to find all of the possible locations that are a match to this specified unverified location, and got back the following JSON response body:

{

 "matchTime": "2016-10-21T23:40:16.769Z",

 "matchedLocations": [

   {

     "isExactMatch": true,

     "location": {

       "languageCode": "de",

       "websiteUrl": "http://www.schaudelconsult.com/",

       "openInfo": {

         "status": "OPEN"

       },

       "locationKey": {

         "placeId": "ChIJIcNLhOYakUcRAzSj22sj164"

       },

       "latlng": {

         "latitude": 47.999920000000003,

         "longitude": 7.7878100000000003

       },

       "primaryCategory": {

         "name": "Unternehmensberater",

         "categoryId": "gcid:business_management_consultant"

       },

       "locationName": "SCHAUDELconsult",

       "primaryPhone": "0761 4538460",

       "address": {

         "postalCode": "79111",

         "country": "DE",

         "addressLines": [

           "Cornelia-Schlosser-Allee 30"

         ],

         "locality": "Freiburg im Breisgau"

       },

       "regularHours": {

         "periods": [

           {

             "openDay": "SUNDAY",

             "closeDay": "SUNDAY",

             "openTime": "09:00",

             "closeTime": "18:00"

           },

           {

             "openDay": "MONDAY",

             "closeDay": "MONDAY",

             "openTime": "09:00",

             "closeTime": "18:00"

           },

           {

             "openDay": "TUESDAY",

             "closeDay": "TUESDAY",

             "openTime": "09:00",

             "closeTime": "18:00"

           },

           {

             "openDay": "WEDNESDAY",

             "closeDay": "WEDNESDAY",

             "openTime": "09:00",

             "closeTime": "18:00"

           },

           {

             "openDay": "THURSDAY",

             "closeDay": "THURSDAY",

             "openTime": "09:00",

             "closeTime": "18:00"

           },

           {

             "openDay": "FRIDAY",

             "closeDay": "FRIDAY",

             "openTime": "09:00",

             "closeTime": "18:00"

           },

           {

             "openDay": "SATURDAY",

             "closeDay": "SATURDAY",

             "openTime": "09:00",

             "closeTime": "18:00"

           }

         ]

       },

       "metadata": {}

     }

   }

 ]

}

 

The above returned matched location is an exact match with placeId ChIJIcNLhOYakUcRAzSj22sj164, which I found in our internal system that’s linked to this location on Google Maps with the business name “Dieter Schaudel”.

 

I found your specified location with placeId ChIJIcNLhOYakUcRAzSj22sj164 as the first place in results using Text Search Requests of the Google Places API with the following query string including a trimmed business name as the query parameter for a search request:

https://maps.googleapis.com/maps/api/place/textsearch/json?location=47.99992,7.78781&radius=1000&query=SCHAUDEL&key=YOUR_API_KEY

 

I suggest you send a POST request to the :findMatches endpoint via the Google My Business API to find all of the possible locations on Google Maps, as indicated by the placeId in the LocationKey, that are a match to the specified location, because this innate method of the Google My Business API seems to be more accurate and precise than the Place Search of the Google Places API in this case.

 

The issue you brought up is with the Google Places API, which is separate from the Google My Business API. If you have further questions about the Place Search of the Google Places API, we recommend that you consult the resources suggested by the Support Options for Google Places API Web Service and file a bug as the documentation suggests.

 

If your issue is related to data discrepancies between your business listings and the business information on Google, you can fix and report incorrect business information on Google or post your questions on the Basics for Business Owners board for more help.

 

Thanks,

Terry