Adapted from Metadata-Extractor by Drew Noakes. This project will read the exif headers from a jpeg file and return a GeoTag class with the location and time the photo was taken.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
GeoTag.java
JpegGeoTagReader.java
README.md

README.md

Java-Jpeg-Geotag-Reader

Adapted from Metadata-Extractor by Drew Noakes, link: http://drewnoakes.com/code/exif/

This project will read the exif headers from a jpeg file and return a GeoTag class with the location and time the photo was taken.

Usage:

JpegGeoTagReader jpegGeoTagReader = new JpegGeoTagReader();
File photoFile   = new File(fileName);
GeoTag geoTag    = jpegGeoTagReader.readMetadata(photoFile);     
double altitude  = geoTag.getAltitude();
double latitude  = geoTag.getLatitude();
double longitude = geoTag.getLongitude();