如何在谷歌地图上获取性别数字,并计算两个性别数字之间的距离

How to get sexagesimal on google maps, and cacluate distance between two sexagecimal?

本文关键字:数字 距离 之间 两个 谷歌地图 获取 计算      更新时间:2023-09-26

我知道如何使用纬度和经度计算两点之间的距离。但现在我有了一个项目,它必须像这个链接一样使用sexagesimal计算两点之间的距离计算。,用谷歌地图获取sexagesimal,我得到了这个链接,但我不知道该怎么做。有人知道怎么做吗?

谷歌地图中的点通常采用十进制格式。您可以使用链接中给出的以下方法将小数点转换为sexagesimalhttp://www.sunearthtools.com/dp/tools/conversion.php#txtCnv_2:

# You have decimal degrees (-73.9874°) instead of degrees, minutes, and seconds (-73° 59’ 14.64")
# The whole units of degrees will remain the same (-73.9874° longitude, start with 73°)
# Multiply the decimal by 60 (0.9874 * 60 = 59.244)
# The whole number becomes the minutes (59’)
# Take the remaining decimal and multiply by 60. (0.244 * 60 = 14.64)
# The resulting number becomes the seconds (14.64"). Seconds can remain as a decimal.
# Take your three sets of numbers and put them together, using the symbols for degrees (°), minutes (’), and seconds (") (-73° 59’ 14.64" longitude)

我假设你知道如何从谷歌地图上获得分数。您已经知道如何使用纬度和经度计算距离。用十进制或十六进制计算距离会得到相同的答案。您只需要将其从一种形式转换为另一种形式。如果你有任何其他澄清,请告诉我。