dji-sdk / Mobile-SDK-Android

DJI Mobile SDK for Android: http://developer.dji.com/mobile-sdk/
Other
978 stars 580 forks source link

How to get a distance value to the .jpg file? #1306

Closed smpark00 closed 4 months ago

smpark00 commented 4 months ago

My drone model is the DJI Mavic Pro 2. When my drone flies, I can get data from the controller about the distance from the starting point. And I can get some data from xmp .json file in the photo that was taken from DJI drones. Can I get distance data from the xmp .json file when I shoot some photos in flight time? I can't find the data about the distance from the starting point. If I can't, is there any way to get distance data?

dji-dev commented 4 months ago

Agent comment from yating.liao in Zendesk ticket #108665:

The data in XMP is written directly by the camera. There should be the drone's position when taking photos in XMP. If you know the starting point's position, you can calculate the distance.

°°°

smpark00 commented 4 months ago

You means GPS data?

dji-dev commented 4 months ago

Agent comment from yating.liao in Zendesk ticket #108665:

Yes, I am referring to the GPS location information stored in photos.

°°°