How can I get exact sub category name about a place from Google Places API in Android/Java?

心已入冬 提交于 2020-08-10 18:12:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!