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