https://github.com/compwright/exif-geojson
Generate a GeoJSON Point from EXIF GPS data
https://github.com/compwright/exif-geojson
exif geojson
Last synced: 16 days ago
JSON representation
Generate a GeoJSON Point from EXIF GPS data
- Host: GitHub
- URL: https://github.com/compwright/exif-geojson
- Owner: compwright
- License: mit
- Created: 2018-07-29T18:17:48.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-06-16T12:55:38.000Z (11 months ago)
- Last Synced: 2025-04-10T18:11:04.892Z (19 days ago)
- Topics: exif, geojson
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/exif-geojson
- Size: 488 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# exif-geojson
[](https://travis-ci.org/compwright/exif-geojson)
[](https://david-dm.org/compwright/exif-geojson)
[](https://www.npmjs.com/package/exif-geojson)
[](https://github.com/sponsors/compwright)A ES2017 function to generate a [GeoJSON Point](https://tools.ietf.org/html/rfc7946#appendix-A.1) from [EXIF GPS data](https://sno.phy.queensu.ca/~phil/exiftool/TagNames/GPS.html).
This function is meant to be used with [exif](https://github.com/gomfunkel/node-exif) or [exif-async](https://github.com/jacekwasowski/exif-async).
## Installation
```
npm install --save exif-geojson exif-async
```## Usage
```javascript
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