google-maps-direction-cli

google maps direction cli

Usage no npm install needed!

<script type="module">
  import googleMapsDirectionCli from 'https://cdn.skypack.dev/google-maps-direction-cli';
</script>

README

Google Maps Direction API Build Status

a simple google maps direction cli, control your traffic via command prompt

The world is in your hand! Look up direction and traffic time via command prompt! Use api key for better traffic information, see http://googlegeodevelopers.blogspot.my/2015/11/predicting-future-with-google-maps-apis.html

example

Install

npm i -g google-maps-direction-cli

Usage

$ direction --help
  google maps direction cli

  Usage
   $ direction <origin> <destination>

  Options
   $ -k, --key Include api key for better traffic forecast (or DIRECTION_API_KEY environment variable)

  Examples
   $ direction "bukit damansara" "klcc"
   $ DIRECTION_API_KEY=API_KEY direction "bukit damansara" "klcc"
   $ direction "bukit damansara" "klcc" -k API_KEY

$ direction "bukit damansara" "klcc"

Related

for more information about parameters, please read more here