开发者

Getting the lat and lon of nearest phones

开发者 https://www.devze.com 2023-04-04 12:51 出处:网络
I have to get the l开发者_Python百科ocation (lat & lon) of the phones near my phone. Is there any way to do this. If so please suggest.No. Android phones do not broadcast their location to the ent

I have to get the l开发者_Python百科ocation (lat & lon) of the phones near my phone. Is there any way to do this. If so please suggest.


No. Android phones do not broadcast their location to the entire world. You could try to find the location of phones with your software installed near your phone, by storing coordinates on a server and doing a query using R-trees or quadtrees or something, but you can't query for all android phones.


I think your best (and potentially only) option would be to leverage off of the Google Latitude API. Users of Latitude and/or your app will broadcast their locations, which will then be discoverable for your app via the Latitude API.

0

精彩评论

暂无评论...
验证码 换一张
取 消