gpt4 book ai didi

google-maps - 计算经度/纬度

转载 作者:行者123 更新时间:2023-12-02 15:04:30 25 4
gpt4 key购买 nike

给定以下输入:

  • 1..n 个位置的已知经度/纬度
  • 位置 1..n 与另一个位置“m”之间的已知距离

如何计算位置“m”的经度/纬度?

最佳答案

这听起来像是一个基本的经纬度三角测量问题。 Yahoo! 中概述了常见的方法。答案主题here 。可能有多种语言的库可以做到这一点。谷歌搜索“纬度经度三角测量”加上您选择的语言可能会显示一些可供使用的现有代码。 “地理编码”是类似库中的另一个常见任务,因此这可能是另一个有用的关键字。

编辑:正如其他人提到的,“三边测量”似乎是最好的术语。但是,根据您的数据和要求,有更简单的近似解决方案可以满足您的要求。

雅虎!为了方便起见,下面引用了答案帖子:

"For larger distances, spherical geometry. For relatively small ones, treat the earth as flat, and the coordinates as xy coordinates. For the distances to work with the degrees of the coordinates, you will have to use the cosine function to convert from one to the other. (While degrees of latitude are about 69 miles all over the earth, degrees of longitude vary from the same at the equator to 0 at the poles.)

You have the center points of three circles and the radius of those circles. They are supposed to intersect at one point, so you can treat them in pairs to find the intersection points of each and throw out the ones that don't match http://mathworld.wolfram.com/Circle-CircleIntersection.html." (mike1942f)

关于google-maps - 计算经度/纬度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/386311/

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