当前位置:网站首页>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
边栏推荐
- 【 YOLOv3中Loss部分计算】
- [mainstream nivida graphics card deep learning / reinforcement learning /ai computing power summary]
- Is investment and finance suitable for girls? What financial products can girls buy?
- Codeforces Round #804 (Div. 2)
- Check the debug port information in rancher and do idea remote JVM debug
- pytorch-线性回归
- Pytorch linear regression
- JS for循环 循环次数异常
- [calculation of loss in yolov3]
- Matlab superpixels function (2D super pixel over segmentation of image)
猜你喜欢

Uniapp + unicloud + Unipay realize wechat applet payment function

【yolov5.yaml解析】
Take you two minutes to quickly master the route and navigation of flutter

Matlab imoverlay function (burn binary mask into two-dimensional image)
你做自动化测试为什么总是失败?

Sentinel sentinel mechanism of master automatic election in redis master-slave

16 channel water lamp experiment based on Proteus (assembly language)

Tabbar configuration at the bottom of wechat applet
调查显示传统数据安全工具在60%情况下无法抵御勒索软件攻击

【PyTorch预训练模型修改、增删特定层】
随机推荐
Read and understand the rendering mechanism and principle of flutter's three trees
Hiengine: comparable to the local cloud native memory database engine
Multi table operation - Auto Association query
【TFLite, ONNX, CoreML, TensorRT Export】
Use and install RkNN toolkit Lite2 on itop-3568 development board NPU
[HDU 2096] 小明A+B
Swift - enables textview to be highly adaptive
【L1、L2、smooth L1三类损失函数】
mmclassification 训练自定义数据
Is investment and finance suitable for girls? What financial products can girls buy?
一款新型的智能家居WiFi选择方案——SimpleWiFi在无线智能家居中的应用
【TFLite, ONNX, CoreML, TensorRT Export】
Proof of the thinking of Hanoi Tower problem
byte2String、string2Byte
MySQL constraints
MySQL function
Open3d European clustering
Wireless WiFi learning 8-channel transmitting remote control module
Redis cluster (master-slave) brain crack and solution
pytorch-线性回归