当前位置:网站首页>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
边栏推荐
- MySQL basic operation -dql
- 【主流Nivida显卡深度学习/强化学习/AI算力汇总】
- Principle and performance analysis of lepton lossless compression
- Mongodb replica set
- 【ijkplayer】when i compile file “compile-ffmpeg.sh“ ,it show error “No such file or directory“.
- MySQL data table operation DDL & data type
- Codeforces Round #804 (Div. 2)
- July Huaqing learning-1
- MySQL splits strings for conditional queries
- Sentinel sentinel mechanism of master automatic election in redis master-slave
猜你喜欢
调查显示传统数据安全工具在60%情况下无法抵御勒索软件攻击
yolov5目标检测神经网络——损失函数计算原理
One article tells the latest and complete learning materials of flutter
Select drop-down box realizes three-level linkage of provinces and cities in China
Yolov5 target detection neural network -- calculation principle of loss function
[cloud native | kubernetes] actual battle of ingress case (13)
Matlab superpixels function (2D super pixel over segmentation of image)
Uniapp + unicloud + Unipay realize wechat applet payment function
Matlab struct function (structure array)
The evolution of mobile cross platform technology
随机推荐
Linux Installation and deployment lamp (apache+mysql+php)
Swift - enables textview to be highly adaptive
Halcon template matching actual code (I)
手机 CPU 架构类型了解
2022年国内云管平台厂商哪家好?为什么?
【yolov3损失函数】
Mmclassification training custom data
What is digital existence? Digital transformation starts with digital existence
Time tools
splunk配置163邮箱告警
[deploy pytoch project through onnx using tensorrt]
Thoughts and suggestions on the construction of intelligent management and control system platform for safe production in petrochemical enterprises
想问问,如何选择券商?在线开户是很安全么?
leetcode:1200. Minimum absolute difference
图像超分实验:SRCNN/FSRCNN
Embedded software architecture design - message interaction
只是巧合?苹果 iOS16 的神秘技术竟然与中国企业 5 年前产品一致!
查看rancher中debug端口信息,并做IDEA Remote Jvm Debug
Master the new features of fluent 2.10
Redis cluster (master-slave) brain crack and solution