gpt4 book ai didi

android从当前位置查找特定方向的点的纬度经度

转载 作者:行者123 更新时间:2023-11-29 22:16:53 25 4
gpt4 key购买 nike

我正在开发一个 android 应用程序,我想在其中找到距离当前位置特定距离和特定方向(北/南/东/西)的点的纬度和经度。

关于这一切如何可能的任何想法?

谢谢

最佳答案

一旦你有了 long 和 lat 值,你就可以添加到它们中。但是我不能给你公式,因为我的数学不是最好的,至于像这样的数学,我什至不会尝试找出方程式。这里有一些链接可以帮助您入门,请记住它是数学而不是代码可以帮助您

http://sgowtham.net/blog/2009/08/04/php-calculating-distance-between-two-locations-given-their-gps-coordinates/

http://www.sitepoint.com/forums/showthread.php?656315-Adding-Distance-To-GPS-Coordinates-To-Get-Bounding-Box

http://www.sitepoint.com/forums/showthread.php?482470-Find-the-closest-location-near-your-address

关于android从当前位置查找特定方向的点的纬度经度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8247625/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com