lib/zonar.rb
# gets busses with recent movement activity
gets busses with recent movement activity
gets busses with recent movement activity
def recent(since=900)
      now = Time.now.to_i
      past = now - since 
      params = {:username => @username, :password => @password, :action => 'showposition', :version => "2", :operation => 'assetactivity', :format => 'xml', :start => past, :end => now}
      fetch(params, 'xml')
    end
def recent ( since = 900 ) now = Time . now . to_i past = now - since params = { :username => @username , :password => @password , :action => 'showposition' , :version => "2" , :operation => 'assetactivity' , :format => 'xml' , :start => past , :end => now } fetch ( params , 'xml' ) end
gets busses with recent movement activity
gets busses with recent movement activity
# default 900 = 15 minutes ago
since
<not_specific>