You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lat=params[:lat].to_flng=params[:lng].to_f# i'm using distance with kilometer, if you using meter, please convert it.radius=params[:distance].to_f / 111.12radius_min=params[:distance_min].to_f / 111.12aps=Model.where(location: {"$nearSphere": [lng,lat],"$maxDistance": radius,"$minDistance": radius_min}).to_a
Hello dear,
I need make this query below, but I need set the maxDistance por exemplo 1000 meters
Bar.nearby(my.location)
In MongoDB documentation
thank you very munch
The text was updated successfully, but these errors were encountered: