image-geolocation
v1.0.0
Published
A simple Node.js module to extract geolocation data from image files.
Downloads
3
Maintainers
Readme
Image Geolocation
A simple Node.js module to extract geolocation data from image files.
Installation
Install the package via npm:
npm install image-geolocation
Usage
const getImageGeolocation = require('image-geolocation');
const imagePath = 'path/to/your/image.jpg';
getImageGeolocation(imagePath)
.then(({ latitude, longitude }) => {
console.log(`Latitude: ${latitude}, Longitude: ${longitude}`);
})
.catch(error => {
console.error('Error:', error.message);
});
License
This project is licensed under the MIT License - see the LICENSE file for details.