DJI Mavic, Air and Mini Drones
Friendly, Helpful & Knowledgeable Community
Join Us Now

Help interpret latitude/longitude coordinates of DJI hyperlapse data

DJ Wes

Well-Known Member
Joined
Feb 6, 2019
Messages
590
Reactions
1,245
Location
Springdale, AR, USA
Site
www.litchiutilities.com
I have been provided a DJI hyperlapse JSON file and the corresponding DJI flight log file. I am trying to interpret the longitude and latitude values stored in the JSON file. For each waypoint in the hyperlapse JSON file there is this data:

{
"index": 1747007499241,
"px": 25.863846,
"py": -82.58746,
"pz": -162.21922,
"height": 16.660797,
"gimbal_pitch": -3.4,
"gimbal_roll": 0,
"gimbal_yaw": -63.008133,
"longitude": -1.3876699869292957,
"latitude": 0.7782552034686965,
"altitude": 231.22551,
"traj_id": 0
},

Notice that the longtude/latitude values are not in the typical DMS (degree, minutes, seconds) or DD (decimal degrees) format. Does anyone recognize this format? I would like to convert these into DMS format. From the flight log I know that the above values correspond to (roughly) lat,long: 44.590766,-79.507704 .
 
Last edited:
  • Like
Reactions: Chrislaf
Google in AI mode:

what kinds of gps coordinates are these: convert radians "longitude": -1.3876699869292957,"latitude": 0.7782552034686965, to gps dms
or
what kinds of gps coordinates are these: "longitude": -1.3876699869292957,"latitude": 0.7782552034686965

The coordinates you provided:
longitude": -1.3876699869292957, "latitude": 0.7782552034686965 are in radians. Radians are a unit of angular measurement, like degrees, but based on the radius of a circle.
Converting Radians to Decimal Degrees
To convert from radians to decimal degrees, you need to multiply the radian value by 180/π.
  • Longitude: -1.3876699869292957 * (180/π) ≈ -79.52 degrees
  • Latitude: 0.7782552034686965 * (180/π) ≈ 44.59 degrees
Converting Decimal Degrees to DMS
Now that you have the coordinates in decimal degrees, you can convert them to Degrees, Minutes, and Seconds (DMS) as requested:

  1. Degrees:The whole number part of the decimal degrees is the degree value.
    • Longitude: -79°
    • Latitude: 44°
  2. Minutes:Multiply the decimal part of the degree value by 60 to get the minutes.
    • Longitude: 0.52 * 60 ≈ 31.2 minutes
    • Latitude: 0.59 * 60 ≈ 35.4 minutes
  3. Seconds:Multiply the decimal part of the minutes value by 60 to get the seconds.
    • Longitude: 0.2 * 60 = 12 seconds
    • Latitude: 0.4 * 60 = 24 seconds
Therefore, the GPS coordinates in DMS are:
  • Longitude: -79° 31' 12"
  • Latitude: 44° 35' 24"
Summary of GPS Coordinate Formats:
  • Decimal Degrees (DD): Uses decimal numbers for latitude and longitude.
  • Degrees, Minutes, Seconds (DMS): Uses degrees, minutes, and seconds to represent coordinates.
  • Degrees, Decimal Minutes (DDM): Uses degrees and decimal minutes.
  • Radians: Another way to express angles, particularly used in calculations and some programming applications.
convert radians "longitude": -1.3876699869292957,"latitude": 0.7782552034686965, to gps dms

To convert radians for latitude and longitude into degrees, minutes, and seconds (DMS), use this formula:

Degrees = Radians × (180°/π)
Then, separate the degrees, minutes, and seconds from the decimal result.
1. Convert Radians to Decimal Degrees:
  • Longitude:-1.3876699869292957 radians
    • -1.3876699869292957 * (180/π) ≈ -79.516805 degrees
  • Latitude:0.7782552034686965 radians
    • 0.7782552034686965 * (180/π) ≈ 44.598687 degrees
2. Convert Decimal Degrees to DMS:
  • Longitude: -79.516805°
    • Degrees: -79°
    • Minutes: 0.516805 * 60 = 31.0083 minutes
    • Seconds: 0.0083 * 60 ≈ 0.498 seconds
    • Since it's a negative longitude, it's West longitude.
    • Result: 79° 31' 00.5" W
  • Latitude: 44.598687°
    • Degrees: 44°
    • Minutes: 0.598687 * 60 = 35.92122 minutes
    • Seconds: 0.92122 * 60 ≈ 55.27 seconds
    • Since it's a positive latitude, it's North latitude.
    • Result: 44° 35' 55.3" N
Therefore, the conversion of the provided radians to GPS DMS is:
  • Longitude: 79° 31' 00.5" W
  • Latitude: 44° 35' 55.3" N
 
Last edited:

DJI Drone Deals

New Threads

Members online

No members online now.

Forum statistics

Threads
140,182
Messages
1,656,436
Members
168,212
Latest member
Pilot KLB
Want to Remove this Ad? Simply login or create a free account