0.0.1 • Published 8 years ago

simple-gps v0.0.1

Weekly downloads
7
License
MIT
Repository
github
Last release
8 years ago

simple-gps

Get a list of the gps and absolute path from the file location. This plugin reading all the files in a file location recursively.

Installation

$ npm install simple-gps --save

Usage

For example. If you want to read the image file.

var gps = require("simple-gps");

gps.read("./image-file-folder",function(err,data){
  if(!err){
    console.log(data);
  }else{
    console.log(err);
  }
});

It will be in the following such a results.

[
	{
		path: '/path-to/image-file-folder/tokyo-sky-tree.jpg',
	    GPSLatitude: 35.710054,
	    GPSLongitude: 139.810690,
	    GPSLatitudeRef: 'N',
	    GPSLongitudeRef: 'E'
	},
  	{
  		path: '/path-to/image-file-folder/tokyo-akihabara.jpg',
	    GPSLatitude: 35.702130,
	    GPSLongitude: 139.774845,
	    GPSLatitudeRef: 'N',
	    GPSLongitudeRef: 'E'
	},
	
    ...
]

License

MIT