A lightweight reverse geocoding package using OpenStreetMap's Nominatim API.
npm install rev-geocodingrev-geocoding is a lightweight reverse geocoding package built on top of OpenStreetMap's Nominatim API. It allows you to convert latitude and longitude coordinates into human-readable addresses without requiring an API key.
bash
npm install rev-geocoding
`
`Js
const ReverseGeocode = require('rev-geocoding');
const geocode = new ReverseGeocode();
geocode.getAddress(48.858844, 2.294351) // Eiffel Tower
.then((address) => console.log(address))
.catch((error) => console.error(error));
``