0.0.2 • Published 5 years ago

exgps v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

exgps

Build Status Coverage Status

Photo GPS coordinate extractor tool that generates KML files

Installation

npm install exgps

Usage

exgps takes a file path to an image file with EXIF data, then outputs a KML document containing GPS coordinates.

Example app.js

const exgps = require('exgps');

// image file
exgps.run('/path/to/image.jpg', [options]);

// folder containing images
exgps.run('/path/to/images/', [options]);

Options

{
  // writes output to "coordinates.kml. If not provided, KML document will be logged to the console
  outputFile: 'coordinates';
}

Output

KML file structure:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
  <Placemark>
    <name>filename1</name>
    <TimeStamp>
      <when>[ISO timestamp]</when>
    </TimeStamp>
    <Point>
      <coordinates>[longitude],[latitude],[altitude</coordinates>
    </Point>
  </Placemark>
  <Placemark>
    <name>filename2</name>
    <TimeStamp>
      <when>[ISO timestamp]</when>
    </TimeStamp>
    <Point>
      <coordinates>[longitude],[latitude],[altitude</coordinates>
    </Point>
  </Placemark>
</kml>

Future additions

  • additional KML features
  • CLI support
0.0.2

5 years ago

0.0.1

5 years ago