android - Google 将 Api 放入 android 显示所有类别?

标签 android google-places-api

如何在 Android 中显示 Google Places API 中的所有类别

这个“https://maps.googleapis.com/maps/api/place/nearbysearch/json?blablabla&type=food?”只显示食物.. 如何在 google place api 中显示所有类别

最佳答案

Google 并不支持所有类型的类别。 Supported types link - click here

如果你想搜索所有类型,你必须使用管道符号(|)并输入你想要的所有类型 https://maps.googleapis.com/maps/api/place/nearbysearch/json?blablabla&type=food|bar|gym|casino|hotel|school|....

关于android - Google 将 Api 放入 android 显示所有类别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13659646/

相关文章:

java - 如何刷新 recyclerview 的上一个项目行 View 的 View

android - 如何将 EditText 限制为仅在 android 中指定的字符?

安卓工作室 : Gradle Build Running for 3 minutes

javascript - HTML textarea onselect 不适用于移动设备

javascript - 从 google map 或 place api 中提取形状

google-places-api - Google Places API - 如何仅检索通过我的应用添加的地点?

javascript - 为什么 Google Places API 不执行我的请求?

android - 传递变量以通过 Android 项目使用

google-places-api - Google Places Nearby 搜索结果 - 缺少详细数据?

google-maps - 使用 google-places-api 的简单 html 页面出现 ApiNotActivatedMapError