我目前正在使用 Google WebApp 根据给定位置周围的半径以及商家类型获取附近的商家,如下所示:https://developers.google.com/places/web-service/
但是,我在 Google 文档中注意到了这一点:
The Google Places API Web Service is for use in server applications. If you're building a client-side application, take a look at the Google Places API for Android and the Places Library in the Google Maps JavaScript API.
因此,我试图找到仅使用 Android Api 的等效方法,但没有结果。我知道我的问题有点边缘化,但是我应该在 Android 中使用什么?或者继续使用 Web 服务可以吗?
谢谢,
问
最佳答案
您实际上可以将 Web 服务与 Android 集成。这是code sample这可以帮助你做到这一点。
Android Web 服务的概念是,您可以将 Web 服务请求的响应存储在 json 文件中,然后您可以以编程方式操作该文件,然后将数据使用到您的 Android 应用程序中,但不限于此。
关于android - 使用半径的 Android 版 Google 地方搜索,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34491653/