Skip to content

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

License

Notifications You must be signed in to change notification settings

tea3/simple-gps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published