在android上没有使用地图对象的关闭位置列表

前端之家收集整理的这篇文章主要介绍了在android上没有使用地图对象的关闭位置列表前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在制作一个 Android应用程序,需要检查用户是否接近感兴趣的地方,例如电影院. (1公里范围内)

但是我不需要用户看到我认为需要使用google places api的地图.我做了一些研究,但不知道如何在Android上实现这一点.任何提示(包括评论或相关链接将不胜感激)

解决方法

看到附近的景点,

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

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

https://maps.googleapis.com/maps/api/place/radarsearch/json?location=51.503186,-0.126446\u0026amp;radius=5000\u0026amp;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?

原文链接:https://www.f2er.com/android/316538.html

猜你在找的Android相关文章