Google 使用半径搜索 Android

Google Place Search for Android using a radius

我目前正在根据给定位置周围的半径以及使用 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 服务?

谢谢,

Q

您称为 WebService 的示例和演示是 Google 地点 API [附近搜索请求] 的示例。使用地点的一种方式 API 你可以搜索地点。

不要混淆 Google Places API Web 服务是一种提供 returns 有关地点的信息并使用 APIs 您可以访问 Places 数据的服务。好吧 here 是 link 可以帮助您更好地理解它。

您实际上可以将 Web 服务与 Android 集成。这里有一个 code sample 可以帮助您做到这一点。

Android 网络服务的概念是您可以将来自网络服务请求的响应存储在 json 文件中,然后您可以以编程方式操作该文件,然后将数据用于您的 android适用,但不限于此。