Module: GoogleTimeline

Defined in:
lib/google_timeline.rb,
lib/google_timeline/version.rb

Constant Summary collapse

VERSION =
"3.0.0"

Class Method Summary collapse

Class Method Details

.get_timeline(file_path, *args) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/google_timeline.rb', line 8

def self.get_timeline(file_path,*args)
  home_coordinate = [[22.6520393, 88.407874]]
  if (args.empty?)==false and (args.select{|a| a.is_a?(Hash) and a[:home_coordinate]}.first).nil? == false
    home_coordinate = [args.select{|a| a.is_a?(Hash) and a[:home_coordinate]}.first[:home_coordinate]]
  end
  google_timeline = GoogleMapTimeline.new(file_path,home_coordinate)
  google_timeline.get_timeline_url(args)
end