Postgresql – Query to find all locations within the radius for each location at another coordinate
We're using the geokit-rails gem to find all locations within a certain distance from another location. class CreateLocations < ActiveRecord::Migration[7.2] def change create_table :locations do |t| t.decimal :lat t.decimal :lng t.float :radius end end end class Location < ApplicationRecord acts_as_mappable…