Search code examples
rubyruby-on-rails-4geolocation

how to display all those users on map which are at particular distance away from the current user?


I want to store user's current location when they log in and display only those users on map which are at a particular distance away from current_user(say 20km).


Solution

  • Popular ruby Geocoder gem has similar functionality. Please checkout the Ryan's screencast for detail.