-a address,city,state,zip \ # list of fields containing the address, in order

-h maps.googleapis.com \ # geocoding host

-p 80 \ # geocoding port

-s 1 # time (in seconds) to throttle the geocoding requests

Your laptop battery died before the geocoder finished. No problem. file-geocoder stores its work on a .db file. Let's resume the geocoding:

file-geocoder \

-d myaddresses.db \ # database

-a address,city,state,zip # list of fields containing the address, in order

Progress bar!

Install

npm install file-geocoder -g

Notes

file-geocoder imports the JSON/CSV file to a NeDB datastore before geocoding. For performance reasons, NeDB keeps a copy of the whole database in memory. In other words, file-geocoder is a memory hog. If the JSON file is 1GB, you better have at least that much RAM.