android - 在android上不使用 map 对象的附近地点列表

标签 android google-maps google-places-api

我正在制作一个 android 应用程序,它需要检查用户是否靠近感兴趣的地方,例如电影院。 (1公里以内)

但是我不需要用户看到我认为使用 google places api 所必需的 map 。我做了一些研究,但不确定如何在 android 上完成此操作。任何提示(包括评论或相关链接将不胜感激)

最佳答案

查看附近的站点,

1.- 使用来自谷歌地图的附近搜索请求link here

2.- 使用手机坐标,获取坐标附近的电影院列表...

https://maps.googleapis.com/maps/api/place/radarsearch/json?location=51.503186,-0.126446&radius=5000&types=movie+theater&key=YOUR_API_KEY

3.- 比较两个坐标,发挥你的魔力,也许通过这两个点获得距离并向用户显示距离..

Note: if you want a lot of special places, you will need to see another way to do it. That's what I thought... is, in your server need to do a request by coords with a lot of nearest places, (museum,movie theater, etc.), and save that because google charges you when the server check in many times, when the user send the coordenates you will have a list of nearest places, if not, consult a list of best pleaces and save in your server and send to user,

you will need to use a some calculate coordenates, like range, if user is near of this coordenates that i have in database send that information if not, do request to server to consult nearest places (with your predefinite list)

对不起我的英语。

更多信息的链接
Find Places Nearby in Google Maps using Google Places API–Android App
Places APIs and Related Products
how to display nearby places like atm,hospitals in android google map?

关于android - 在android上不使用 map 对象的附近地点列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41794662/

相关文章:

android - 如何传递要在谷歌地图上显示的地点的经纬度?

google-api - 谷歌我的业务 - API 来更新营业时间?

android - 是否可以使用设备专门运行一个应用程序?

android - 播放完歌曲后的 MediaPlayer 状态

google-maps - 美国的默认中心?

java - 如何使用LatLng从Google Place API查找最近的地方

android - 大图像(来自文件)未在 Picasso 中加载,没有看到明显的错误

android - 如何解决android中的 "Conversion to Dalvik format failed with error 1"

javascript - javascript 数组中的值第一次未设置

javascript - Google map - 添加两个标记(方向)