Reads a list of places and returns a geolocated CSV file.
-
Clone the repo:
git clone https://github.com/javierarce/node-batch-geocoder.git
-
Install the required modules:
cd node-batch-geocoder npm install
-
Create the location input file:
echo "Madrid, Spain" > locations.txt
-
Run the geocoder:
node app.js
After the script is finished, you'll get a geocoded CSV file called locations.csv
:
location | latitude | longitude |
---|---|---|
Madrid, Spain | 40.4167754 | -3.7037902 |