Skip to content
/ geocoder Public

A small utility script for geocoding addresses in a csv file

Notifications You must be signed in to change notification settings

wbkd/geocoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Geocoder

A small utility script for geocoding addresses in a csv file.

Installation

Clone the repository

git clone git@github.com:wbkd/geocoder.git && cd geocoder

Install dependencies

npm install # with node version 7 or higher

Customization

To geocode your own csv file, you need to change these variables in index.js:

const INPUT_CSV = 'input/test.csv'; // location of the input csv file
const OUTPUT_CSV = 'output/test.csv'; // location where to store the result
const ADDRESS_COLUMN = 'adresse'; // the name of the field in the csv that stores the address string
const DELIMITER = ';'; // the csv file delimiter
const GOOGLE_API_KEY = 'YOUR_API_KEY'; // your google geocoder api key: https://developers.google.com/maps/documentation/geocoding/start?hl=de#get-a-key

Run the script!

npm start

About

A small utility script for geocoding addresses in a csv file

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published