This is a simple web scraping library to resolve addresses in coodinates. (Google Maps as a data source)
Use the package manager npm or yarn to install CoordScraper.
npm install coordscraper
yarn add coordscraper
const { getCoords } = require('coordscraper');
(async () => {
const coords = await getCoords('Abbey Road, Londres') // returns { lat: '51.5370926', lon: '-0.1833791' }
})();
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.