https://github.com/tea3/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.
https://github.com/tea3/simple-gps
exif gps location nodejs photo
Last synced: 8 days ago
JSON representation
Get a list of the gps and absolute path from the file location. This plugin reading all the files in a file location recursively.
- Host: GitHub
- URL: https://github.com/tea3/simple-gps
- Owner: tea3
- License: mit
- Created: 2016-08-29T11:12:15.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-29T11:12:42.000Z (almost 10 years ago)
- Last Synced: 2025-09-17T02:53:48.574Z (10 months ago)
- Topics: exif, gps, location, nodejs, photo
- Language: JavaScript
- Size: 1.95 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
``` bash
$ npm install simple-gps --save
```
## Usage
For example. If you want to read the image file.
``` javascript
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.
``` bash
[
{
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