This package has some sample code using positionstack. Positionstack is an API that is extremely easy to use for any kind of location or geocoding.
Clone the repository and run npm i
.
You'll need to get an API key (from positionstack) and rename .sample.env
file to .env
and place your api key there.
There are commented out portions of the code that test with positionstack using axios. Just comment the portions you wish to use in before running.
After that, you just need to run npm start
.
Tested on Node v12.4.0 and NPM v6.9.0.
After installing NodeJS you should be able to just run the following in the terminal.
npm i
- Jordan Hansen - Initial work - Jordan Hansen
This project is licensed under the ISC License