Skip to content

ansd/driving-time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

driving-time

driving-time is a CLI (and server) displaying driving time based on live traffic data.

Requirement

A Google Cloud Platform API key (see here how to get one) since the CLI queries the Google Maps Distance Matrix API.

Installation

Options:

  1. Download the binary in https://github.com/ansd/driving-time/releases
  2. Use Homebrew: see https://github.com/ansd/homebrew-tap
  3. Build from source: go get github.com/ansd/driving-time

Usage

Create a config file by copying driving-time.yml.template to driving-time.yml.

Start the server:

$ driving-time --config driving-time.yml serve

serve.png

Print live traffic data on the command line: print.png