- Make sure you have node (v8+), and git installed on your computer
- Clone this project from a command line (
git clone https://github.com/fatman-/dist-time-calc.git
)
- Run
npm install
to install required packages
- Replace
getGoogMapsApiKey('./secret.js')
in config.js
file with your Google Maps API key
- Replace other config items (
pathToInputSheet
, pathToOutputSheet
, departureTimes
, etc...) as per your needs.
module.exports = {
...
googMapsApiKey: 'YOUR_API_KEY'
pathToInputSheet: './relative/path/to/inputSheet',
pathToInputSheet: './relative/path/to/outputSheet',
...
}
- Finally, run
npm start
to start the script.