android - 如何从 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);
解决方案
目前无法从 Google 的 Place API 获取详细的地点类型/子类别信息。
但是,在 Google 的问题跟踪器中有一个开放的功能请求,我建议添加它以提高可见性并订阅未来的通知:
推荐阅读
- reactjs - 传递空数组时如何将useState与Typescript一起使用
- vba - Application.ActiveExplorer.Selection 错误:数组索引超出范围
- android - 如何在 Kotlin Android 中将日期选择器微调器对话框月份的语言更改为印度尼西亚语?
- java - 如何使用二进制搜索java从数组中打印重复值
- python - 减去一个字符串列
- reactjs - 调用 api 未读取对象
- php - Laravel如何在刀片中显示数组的键值
- javascript - 如何生成 glTF 文件,然后将其包含在链接中并使用 Android Scene Viewer 在 AR 中打开它?
- apache-kafka - 使用 ksqlDB 连接流和表
- apache-nifi - NiFi - 插入一列时 PutDatabaseRecord 出错