GPS Data Format Conversion

Source: Internet
Author: User

The serial GPS port reads the ddmm. Mmmm format
Generally, the host computer is in the DD. dddddddd ° or DD ° mm 'ss "format. Both of them can be directly input in Ge.

Example: 3147.8749 (in this example, the same latitude and longitude) is in the format of ddmm. Mmmm
Conversion to degree:
1. the degree is 31,
2. The remaining mm. Mmmm/60 = degrees, so 47.8749/60 = 0.797915
The conversion degree is 31.797915 °.

Convert to degrees in minutes:
1. Similarly, the degree is 31,
2. The score is an integer part 47.
3. The second is followed by 0. Mmmm * 60. In this example, 0.8749*60 = 52.494.
4. the degree is 31 ° 47 '52. 494"

Accurate to 0.001"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.