I am using Geocoder gem to find current location. It was working fine before but now when i checked it returns nil for request.location.
request.location => nil
I am using Geocoder gem to find current location. It was working fine before but now when i checked it returns nil for request.location.
request.location => nil
This will happen on less common searches (ip lookups, some residential addresses, etc.) when the
timeoutis set too low.You can test this by running a Rails console and manually doing a search:
Set your timeout higher in the Geocoder initializer:
You might need to use 20 or 30. YMMV.