Skip to content

abrehan2/geospatial-toolkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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