geospatial-toolkit

2.5.2 • Public • Published

A Node.js package that provides instant access to the user's current location. Simplify location-based development with a lightweight and easy-to-integrate solution, ideal for applications that require real-time geospatial data.

Installation

npm:

npm install geospatial-toolkit

Getting started with geospatial-toolkit

Here is an example of a basic app using this package:

const parseLocation = require('geospatial-toolkit');
const IP_DATA_API = "ADD YOUR API HERE";

const getLocation = async () => {

const { ip, longitude, latitude, region, country, city, flag } = await parseLocation(IP_DATA_API);
  
console.log(ip, longitude, latitude, region, country, city, flag);

}

getLocation();

Utilize the ip-data API to leverage the capabilities of this package

Package Sidebar

Install

npm i geospatial-toolkit

Weekly Downloads

2

Version

2.5.2

License

MIT

Unpacked Size

3.63 kB

Total Files

4

Last publish

Collaborators

  • abrehan_