Reputation: 3605
I'm trying to search for Erna properties
. If you type it in Google search, the first result shows up the website. I tried searching for it under Google places API -
maps.googleapis.com/maps/api/place/autocomplete/json
https://maps.googleapis.com/maps/api/place/findplacefromtext/json
However it didn't show up. Can someone help me with this problem? There is also another issue wherein if I search for it under Google's customsearch, it never shows the result which I apparently get as the first result under normal Google web search which apparently contains the website/
Upvotes: 1
Views: 2760
Reputation: 32118
I can see that this place exists in Google Maps:
However, indeed, the Places API cannot find it. I believe this is because the place was created in Google My Business as a Service Area Business. Unfortunately, the Places API autocomplete and searches don't work with Service Area Businesses. There is a feature request in Google issue tracker to make SABs available in autocomplete and searches. You can see this feature request here:
https://issuetracker.google.com/issues/35828187
Feel free to star the feature request to express your interest and subscribe to further notifications from Google.
In the meantime, if you need a place ID for Erna Properties, you have to use a Google My Business place ID finder located at
https://support.google.com/business/answer/7035772#place_id
I figured out that place ID of Erna Properties is ChIJAbxUEucxwokR4P5z_xueURg
. You can use it with place details. E.g.
https://maps.googleapis.com/maps/api/place/details/json?placeid=ChIJAbxUEucxwokR4P5z_xueURg&key=YOUR_API_KEY
I hope this helps!
Upvotes: 4