首页 > 解决方案 > 如何从 Android/Java 中的 Google Places API 获取有关地点的确切子类别名称?

问题描述

看到这个截图: 图片

如果你仔细看图片,Fashion stop 类别是 Men's 服装店,Fabindia - Clothing store 是写的。

我也想要这种类型的类别名称,但是当我集成 API 时,我得到的类别名称为

"types" : [ "point_of_interest", "clothing_store", "store", "establishment" ],

问题是,我没有得到像男装店这样的确切名称......

Android App中使用的API:

 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);

标签: androidgoogle-mapsgoogle-places-api

解决方案


目前无法从 Google 的 Place API 获取详细的地点类型/子类别信息。

但是,在 Google 的问题跟踪器中有一个开放的功能请求,我建议添加它以提高可见性并订阅未来的通知:

https://issuetracker.google.com/issues/35822953


推荐阅读