You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When sending coordinates to Google or Bing maps using a decimal latitude/longitude, they expect negative numbers if the coordinate is West or South. I'm working around this by testing the GPSLatitudeRef and GPSLongitudeRef and multiplying the description by -1 if the array returned by the Ref contains "W" or "S".
sign = exifReader.getTagValue('GPSLatitudeRef').indexOf('N') === -1 ? -1 : 1;
This would also work: sign = exifReader.getTagValue('GPSLatitudeRef').indexOf('N') || 1
The text was updated successfully, but these errors were encountered:
I'm not sure that should be the responsibility of the library. The GPSLatitude and GPSLongitude tags don't have that kind of information. That's what the ref tags are for. Also, if the the corresponding ref tag is missing for some reason, the caller could get a faulty value (positive when it should be negative) and never know about it.
When sending coordinates to Google or Bing maps using a decimal latitude/longitude, they expect negative numbers if the coordinate is West or South. I'm working around this by testing the GPSLatitudeRef and GPSLongitudeRef and multiplying the description by -1 if the array returned by the Ref contains "W" or "S".
sign = exifReader.getTagValue('GPSLatitudeRef').indexOf('N') === -1 ? -1 : 1;
This would also work: sign = exifReader.getTagValue('GPSLatitudeRef').indexOf('N') || 1
The text was updated successfully, but these errors were encountered: