Is it possible to get latitude and longitude values in the controller when using geocoder gem in rails?
What am currently doing for getting all nearby location is pass the location name like below.
event_address = Event.near(location, 15, order: 'distance')
for eg :
Geocoder.coordinates("25 Main St, Cooperstown, NY")
returns [42.700149, -74.922767]