How Do I Get The Correct Latitude and Longitude From An Uploaded iPhone Photo?

前端 未结 5 1689
难免孤独
难免孤独 2020-12-03 00:27

My problem actually seems rather silly... I am writing an iPhone application that uses MKMapKit. The app grabs the EXIF metadata from a provided geotagged photo. The problem

5条回答
  •  感动是毒
    2020-12-03 00:52

    I believe that the reason that there isn't a negative sign is because of the metadata: exif:GPSLongitudeRef: W which (I believe) means that there should be a negative sign in front of the longitude since it is referencing the western hemisphere. I believe that this also applies to the latitude but with exif:GPSLatitudeRef: N for Northern and Southern hemispheres. Hope that this helped. Just realized this is exactly what @XJones said. Metadata using ImageMagick.

提交回复
热议问题