Module: ToTown

Defined in:
lib/to_town/data_migration.rb,
lib/to_town.rb,
lib/to_town/cli.rb,
lib/to_town/point.rb,
lib/to_town/converter/us.rb,
lib/to_town/generators/mongodb.rb

Overview

store the imported file so it won’t be imported again

Defined Under Namespace

Modules: Converter, Generators Classes: CLI, DataMigration, Point

Class Method Summary collapse

Class Method Details

.check(lat, lng, limit = 20) ⇒ Object



6
7
8
9
10
# File 'lib/to_town.rb', line 6

def self.check(lat, lng, limit = 20)
  # TODO validation
  # TODO add a limit
  Point.near(latlng: [ lat, lng ]).limit(limit)
end