Skip to content
Generate a GeoJSON Point from EXIF GPS data
Branch: master
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.
test
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
index.js
package-lock.json
package.json

README.md

exif-geojson

Greenkeeper badge Build Status

A ES2017 function to generate a GeoJSON Point from EXIF GPS data.

This function is meant to be used with exif or exif-async.

Installation

npm install --save exif-geojson exif-async

Usage

const exifGeojson = require('exif-geojson');
const getExif = require('exif-async');

(async function() {
    try {
        const exif = await getExif('./photo_exif.jpg');
        const point = exifGeojson(exif);
        console.log(point);
    } catch {
        console.log('No location data found');
    }
})();

License

MIT

You can’t perform that action at this time.