Extract lat long data and get map location URLs from EXIF data in images.
You'll need Component and GNU make. Then run:
git clonecd exiflocation/make
Alternatively, use Component to install to your project.
component install exiflocation
ExifLocation is also available using Bower.
bower install exiflocation
example/ for a complete example.
Broader support is possible using jDataView.
Pass a FileList as the first argument. The
progressCb argument is a function that's executed once for each file in the list, receiving an error (if any) as the first argument and the ExifLocation instance as the second. The
cb argument is executed once all the files have been loaded and receives an array of ExifLocation instances in the same order as the corresponding files in
var file = documentgetElementById'file';filemultiple = true;fileaddEventListener'change'ExifLocationloadFromFileListeventtargetfilesif !errconsole.logexifLocationgetGoogleMapsUrllocationprotocol;;false;
Receives a File as the first argument. The callback function receives an error object or null as the first argument and the ExifLocation instance as the second.
As above, but with an ArrayBuffer.
Returns the decimal latitude.
Returns the decimal longitude.
Get a Google Maps URL for the embedded location. The protocol is relative by default. The
type parameter is either
'm' for the normal map (default),
'k' for satellite,
'h' for hybrid,
'p' for terrain or
'e' for Google Earth.