Negative because it's west longitude, apparently.

This commit is contained in:
Jeremy Calvert 2023-05-20 12:44:07 -07:00
parent 79486d9734
commit 24d1f4f2f9
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ function readURL(input) {
var allMetaDataSpan = document.getElementById('allMetaDataSpan'); var allMetaDataSpan = document.getElementById('allMetaDataSpan');
// allMetaDataSpan.innerHTML = JSON.stringify(allMetaData, null, '\t'); // allMetaDataSpan.innerHTML = JSON.stringify(allMetaData, null, '\t');
var lat = convertDMSToDD(EXIF.getTag(this, 'GPSLatitude')); var lat = convertDMSToDD(EXIF.getTag(this, 'GPSLatitude'));
var long = convertDMSToDD(EXIF.getTag(this, 'GPSLongitude')); var long = -convertDMSToDD(EXIF.getTag(this, 'GPSLongitude')); // Negative because it's west longitude
$('#lat').val(lat); $('#lat').val(lat);
$('#long').val(long); $('#long').val(long);
console.log(`lat: ${lat}, long: ${long}`); console.log(`lat: ${lat}, long: ${long}`);