Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

exif-geojson

1.0.0 • Public • Published

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

install

npm i exif-geojson

Downloadsweekly downloads

10

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability