当前位置:网站首页>GPS data format conversion [easy to understand]
GPS data format conversion [easy to understand]
2022-07-05 12:13:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
There are three types of longitude and latitude formats : degree 、 degree – branch 、 degree – branch – second
1.)ddd.ddddd °【 degree . degree Format 】 Decimal fraction of (5 position )
2.)ddd°mm.mmm’ 【 Degrees . branch Format 】 Decimal fraction of (3 position ) NMEA data The format is $GPGGA when , obtain gps The data is ( Degrees . branch ) Format
3.) ddd°mm’ss’’ 【 degree . branch . second Format 】
Google The third format is used degree . branch ’ second ’’
Conversion of degree to minute :
Convert degree unit data to degree unit data
degree = degree + branch /60
for example : longitude = 116°20.12’ latitude = 39°12.34’
longitude = 116 + 20.12 / 60 = 116.33533°
latitude = 39 + 12.34 / 60 = 39.20567°
Degree minute second conversion :
Convert degree, minute and second unit data to degree unit data
degree = degree + branch /60 + second /60/60
for example : longitude = 116°20’43” latitude = 39°12’37”
longitude = 116 + 20 / 60 + 43/60/60 = 116.34528°
latitude = 39 + 12 / 60 + 37/60/60 = 39.21028°
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/149207.html Link to the original text :https://javaforall.cn
边栏推荐
- 想问问,如何选择券商?在线开户是很安全么?
- Yolov 5 Target Detection Neural Network - Loss Function Calculation Principle
- Splunk configuration 163 mailbox alarm
- 【yolov5.yaml解析】
- 互联网公司实习岗位选择与简易版职业发展规划
- Why do you always fail in automated tests?
- 2022年国内云管平台厂商哪家好?为什么?
- Matlab label2idx function (convert the label matrix into a cell array with linear index)
- mmclassification 训练自定义数据
- MySQL regular expression
猜你喜欢
你做自动化测试为什么总是失败?
Pytorch MLP
Yolov5 target detection neural network -- calculation principle of loss function
[configuration method of win11 multi-user simultaneous login remote desktop]
Sentinel sentinel mechanism of master automatic election in redis master-slave
July Huaqing learning-1
自动化测试生命周期
[yolov5.yaml parsing]
互联网公司实习岗位选择与简易版职业发展规划
Tabbar configuration at the bottom of wechat applet
随机推荐
投资理财适合女生吗?女生可以买哪些理财产品?
yolov5目标检测神经网络——损失函数计算原理
POJ-2499 Binary Tree
MySQL data table operation DDL & data type
MySQL installation, Windows version
splunk配置163邮箱告警
MVVM framework part I lifecycle
Why do you always fail in automated tests?
Reinforcement learning - learning notes 3 | strategic learning
2022年国内云管平台厂商哪家好?为什么?
调查显示传统数据安全工具在60%情况下无法抵御勒索软件攻击
手机 CPU 架构类型了解
Multi table operation - sub query
Basic operations of MySQL data table, addition, deletion and modification & DML
byte2String、string2Byte
Why learn harmonyos and how to get started quickly?
Principle of redis cluster mode
Open3d European clustering
【ijkplayer】when i compile file “compile-ffmpeg.sh“ ,it show error “No such file or directory“.
abap查表程序