module ToTown

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

Public Class Methods

check(lat, lng, limit = 20) click to toggle source
# 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