Giter Site home page Giter Site logo

romdr / commute-matrix Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 13 KB

A command line utility to display matrices of commute times using google maps with real traffic at specific times

License: MIT License

Go 100.00%
commute-times google-distance-matrix yaml life-utils

commute-matrix's Introduction

commute-matrix

Go Report Card Maintainability Rating

A command line utility to display a matrix of commute times using google maps with real traffic at specific times

Features

  • Displays commute time matrices from/to a set of addresses, using with-traffic estimates from the Google Distance Matrix API
  • Commute times can be obtained immediately, or can be configured and obtained at specific times
  • Yaml configuration (rename config.yaml.example to config.yaml)
  • Requires a Google Distance Matrix API key

Usage

λ go run main.go
Commute matrix scheduled...

λ go run main.go -now

               TO 01/20/2019 21:18              | 2111 7TH AVE, SEATTLE, WA 98121 | 85 PIKE ST, SEATTLE, WA 98101
+-----------------------------------------------+---------------------------------+-------------------------------+
  12309 SE 23rd Pl, Bellevue, WA 98005          |                            18.0 |                          17.7
  1005 8th St, Kirkland, WA 98033               |                            19.4 |                          20.6
  600 NW Richmond Beach Rd, Shoreline, WA 98177 |                            19.9 |                          21.0
  5700 24th Ave NW, Seattle, WA 98107           |                            13.2 |                          14.6
  2740 61st Ave SW, Seattle, WA 98116           |                            16.4 |                          17.4

              FROM 01/20/2019 21:18             | 2111 7TH AVE, SEATTLE, WA 98121 | 85 PIKE ST, SEATTLE, WA 98101
+-----------------------------------------------+---------------------------------+-------------------------------+
  12309 SE 23rd Pl, Bellevue, WA 98005          |                            18.1 |                          19.8
  1005 8th St, Kirkland, WA 98033               |                            20.2 |                          23.1
  600 NW Richmond Beach Rd, Shoreline, WA 98177 |                            20.4 |                          23.4
  5700 24th Ave NW, Seattle, WA 98107           |                            13.3 |                          14.3
  2740 61st Ave SW, Seattle, WA 98116           |                            16.5 |                          18.3

λ go run main.go -h
Usage of commute-matrix:
  -now
        Print the commute matrix now (instead of scheduling it)

Dependencies

go get github.com/jasonlvhit/gocron
go get github.com/olekukonko/tablewriter
go get googlemaps.github.io/maps
go get gopkg.in/yaml.v2

License

MIT License

commute-matrix's People

Contributors

romdr avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.