问题
See this screenshot: image
If you'll carefully see the Image, for Fashion stop category is Men's clothing store and for Fabindia - Clothing store is written.
I also want this type of category name, but when I integrated API, I'm getting category name as
"types" : [ "point_of_interest", "clothing_store", "store", "establishment" ],
The problem is, I'm not getting exact name like Men's clothing store...
API used in Android App:
data = makeCall("https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=" + params[0] + "," + params[1] + "&radius=5000&type=" + params[2] + "&sensor=true&key=" + GOOGLE_PLACES_API_KEY);
回答1:
It's not currently possible to get detailed place types/subcategories information from Google's Place API.
However, there is an open feature request in Google's Issue Tracker which I suggest starring to increase visibility and subscribe to future notifications:
https://issuetracker.google.com/issues/35822953
来源:https://stackoverflow.com/questions/63196982/how-can-i-get-exact-sub-category-name-about-a-place-from-google-places-api-in-an