exif-geojson

1.1.3 • Public • Published

exif-geojson

Build Status Dependency Status Download Status Sponsor on GitHub

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

Package Sidebar

Install

npm i exif-geojson

Weekly Downloads

1

Version

1.1.3

License

MIT

Unpacked Size

3.88 kB

Total Files

4

Last publish

Collaborators

  • compwright