Sha256: 7a989497f6997dae2aa10dfb26c6e0686622e90deb4c21c24c67d02375b4556a
Contents?: true
Size: 542 Bytes
Versions: 2
Compression:
Stored size: 542 Bytes
Contents
#!/usr/bin/env ruby $LOAD_PATH.unshift File.join(File.dirname(__FILE__), *%w(.. lib)) require 'VIAJERO' origins = ARGV[0] destinations = ARGV[1] mode = ARGV[2] unless origins && destinations && mode puts 'two arguments are need for origin, destination and traffic method' exit(1) end unless ENV['GOOGLE_API'] puts 'you haven\'t set your environment variable yet' exit(1) end traffic_load = Google::TrafficInfo.find(origins: origins, destinations: destinations,mode: mode) distance_data = traffic_load.trafficAnaly puts distance_data
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
VIAJERO-0.1.74 | bin/traffic |
VIAJERO-0.1.73 | bin/traffic |