经纬度为分钟和秒?
Google 地图以十进制表示法为我提供某个位置的纬度和经度,如下所示:
38.203655,-76.113281
如何将它们转换为坐标(度、分、秒)
Google Maps gives me the Lat and Long of a location in decimal notation like this:
38.203655,-76.113281
How do I convert those to Coords (Degrees, Minutes , Seconds)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
38.203655 是度数的十进制值。 60 分钟为度,一分钟为 60 秒(1 度 == 60 分钟 == 3600 秒)。
因此,取该值的小数部分,即 0.203655,乘以 60 得到分钟,即 12.2193,即 12 分钟,然后重复分钟的小数部分,即 0.2193 = 13.158000 秒。
python 中的示例:
38.203655 is a decimal value of degrees. There are 60 minutes is a degree and 60 seconds in a minute (1degree == 60min == 3600s).
So take the fractional part of the value, i.e. 0.203655, and multiply it with 60 to get minutes, i.e. 12.2193, which is 12 minutes, and then repeat for the fractional part of minutes, i.e. 0.2193 = 13.158000 seconds.
Example in python:
如果您需要 JavaScript 中的其他与地理相关的功能,您可以使用以下库
http ://www.movable-type.co.uk/scripts/latlong.html
它提供以下功能:
In case you need other geo-related functionality in JavaScript, you may use the following library
http://www.movable-type.co.uk/scripts/latlong.html
it provides the following functionality:
实现这一点的Python库:
https://pypi.python.org/pypi/LatLon/ 1.0.2
Python library that does the trick:
https://pypi.python.org/pypi/LatLon/1.0.2
我认为这将帮助您解决问题:
I think this will help you with the solution :