Sha256: 59820541a393558da359e27344555be87c63e113eceacd7f6efebb7004971177

Contents?: true

Size: 583 Bytes

Versions: 6

Compression:

Stored size: 583 Bytes

Contents

class Location
  attr_accessor :latitude, :longitude, :altitude, :time, :speed, :accuracy
  attr_accessor :name, :address, :locality, :postal_code, :sub_area, :area, :country

  def self.monitor_enabled?
    Location::Monitor.enabled?
  end

  def self.monitor(options={}, &block)
    options[:distance_filter] ||= 0
    Location::Monitor.new(options, block)
  end

  def self.geocode_enabled?
    Location::Geocoder.enabled?
  end

  def self.geocode(str, &block)
    Location::Geocoder.new(str, block)
  end

  def geocode(&block)
    Location::Geocoder.new(self, block)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
motion-flow-0.1.8 flow/location/location.rb
motion-flow-0.1.7 flow/location/location.rb
motion-flow-0.1.6 flow/location/location.rb
motion-flow-0.1.5 flow/location/location.rb
motion-flow-0.1.4 flow/location/location.rb
motion-flow-0.1.3 flow/location/location.rb