https://github.com/wbkd/geocoder
A small utility script for geocoding addresses in a csv file
https://github.com/wbkd/geocoder
geocoder nodejs
Last synced: 8 months ago
JSON representation
A small utility script for geocoding addresses in a csv file
- Host: GitHub
- URL: https://github.com/wbkd/geocoder
- Owner: wbkd
- Created: 2017-09-12T10:12:06.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-28T09:50:03.000Z (almost 8 years ago)
- Last Synced: 2025-04-10T11:34:19.593Z (about 1 year ago)
- Topics: geocoder, nodejs
- Language: JavaScript
- Homepage:
- Size: 14.6 KB
- Stars: 8
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Geocoder
A small utility script for geocoding addresses in a csv file.
### Installation
Clone the repository
```bash
git clone git@github.com:wbkd/geocoder.git && cd geocoder
```
Install dependencies
```bash
npm install # with node version 7 or higher
```
### Customization
To geocode your own csv file, you need to change these variables in `index.js`:
```javascript
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!
```bash
npm start
```