How to convert latitude and longitude

Conversion between latitude and longitude and degrees, minutes and seconds;

Convert degrees (DDD) to degrees, minutes and seconds (DMS). For example, east longitude 108.90593 degrees, the conversion method is to take the integer bit of 108.90593 * 60 = 54.3558 108 (degrees) and the integer bit of 54 (minutes) 0.3558 * 60 = 26558.

Convert degrees, minutes and seconds (DMS) to degrees (DDD). For example, east longitude 108 degrees 54 minutes 2 1 sec, and the method of conversion to degrees (DDD): 108 degrees 54 minutes 22.2 seconds =108+(54/60)+(22.2/3600) =/.

Because the decimal places are reserved in the calculation, there is a certain error in the forward and backward calculation, but the error has little influence. The error of 1 sec is just a few meters.

Latitude and longitude are the combined names of longitude and latitude, which form a coordinate system. Known as the geographical coordinate system, it is a spherical coordinate system that uses the sphere of three-dimensional space to define the space on the earth, and can mark any position on the earth.

References:

Baidu encyclopedia latitude and longitude