【发布时间】:2016-11-13 17:17:40
【问题描述】:
目前我正在尝试将整数 latitude 和 longitude 转换为十进制(度)。我从中获取数据的规范说:
|纬度 |位置纬度 |整数,1/10 秒的数 |
|经度 |位置经度 |整数,1/10 秒的数 |
这是一个样本编号:
- 纬度:
1914383 - 经度:
371352
我需要的是这种格式的东西:
- 纬度:
51.39796 - 经度:
14.62539
如何转换这些格式?
我在 c# 中看到了一些实现,但没有什么对我真正有用,或者我不明白它是如何工作的。我试过的:
Converting GPS coordinates (latitude and longitude) to decimal 和Converting latitude and longitude to decimal values
非常感谢
【问题讨论】:
-
因为它在 1/10 秒内给出,只需将其除以 36000。检查 API 文档中的符号是如何形成的。
标签: c# google-maps geolocation latitude-longitude