Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abrehan2/geospatial-toolkit
https://github.com/abrehan2/geospatial-toolkit
axios nodejs
Last synced: 30 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/abrehan2/geospatial-toolkit
- Owner: abrehan2
- License: mit
- Created: 2023-11-24T19:02:38.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-04T17:42:44.000Z (10 months ago)
- Last Synced: 2024-11-10T16:53:28.898Z (about 1 month ago)
- Topics: axios, nodejs
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/geospatial-toolkit
- Size: 44.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
> 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:**
```sh
npm install geospatial-toolkit
```
## Getting started with geospatial-toolkitHere is an example of a basic app using this package:
```jsx
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](https://ipdata.co/) API to leverage the capabilities of this package