我已经做了一个安卓应用程序,在短信中获得全球定位系统坐标并保存它。我知道我目前的全球定位系统location.Now我希望我的应用程序告诉我在北,南,东,西到达目的地全球定位系统coordinates.How我可以做到这一点吗?
发布于 2014-04-27 09:30:40
location类有一个指向方法,该方法将度数返回到一个位置。O是北边。180南等。
float bearing = locationa.bearingTo(locationb);
查看示例代码https://developer.android.com/training/location/location-testing.html
https://stackoverflow.com/questions/23317886
复制相似问题