28

When you search for a restaurant in Google places and go to the business profile (i.e.: https://plus.google.com/107507038669791289691/about?hl=en) the restaurant has a tag (in this case Mexican Restaurant). But when using the Google places api all I can see is a types list

"types" : [ "restaurant", "food", "establishment" ]

Anyone know if it's possible to get the tag "Mexican Restaurant" somehow?

I know about the supported types (https://developers.google.com/places/documentation/supported_types). It is not super helpful.

offex
  • 1,875
  • 5
  • 17
  • 27
  • 1
    There is a feature request for this in Google issue tracker as mentioned in https://stackoverflow.com/a/45786807/5140781 – xomena Apr 10 '18 at 21:11

3 Answers3

9

I was also working in a project which need to get more details about a place using Google Maps and Google Places APIs, and I really spent many hours trying to find something that can help ( Google Places API, Google Maps API, google+ APIs, ... ) but nothing ... the only things that I found is theses 2 issues ( feature requests ) which I hope that Google will add to their APIs someday :

  • Issue N° 5260 with 13 stars.

  • Issue N°7878 with 4 stars.

I hope with this SO question that we get more interested persons to get the feature in a soon future version of Google Map or Google Places APIs.

For the Google Places for Work API, I didn't find any information to confirm or not that it contains such feature, but I don't think so.

Hope that can help.

akmozo
  • 9,829
  • 3
  • 28
  • 44
7

I think you would probably have to revert to the text search method on the api..

https://developers.google.com/places/documentation/search#TextSearchRequests

So your request would end up looking something like the below, restricted down to a specific area

https://maps.googleapis.com/maps/api/place/textsearch/json?query=Mexican+Restaurant&sensor=true&location=40.846,-73.938&radius=20&key=yourKeyHere

However this will return all other Mexican restaurants in the area, so if you just want to return the one result I would use the Place Details request instead.

Andy Polhill
  • 6,858
  • 2
  • 24
  • 20
1

Separate your place types by PIPE symbol "|"

try like this :

String types = "cafe|restaurant|museum" // Listing places only cafes, restaurants and museums.

Sumit Pathak
  • 671
  • 1
  • 6
  • 25
kgandroid
  • 5,507
  • 5
  • 39
  • 69
  • Just in case anyone is seeing this now, you are currently allowed only one type in your Place Search call: https://developers.google.com/maps/documentation/places/web-service/search-text#type – rushrage May 23 '22 at 14:42