apneadiving / Google-Maps-for-Rails

Enables easy Google map + overlays creation in Ruby apps
https://apneadiving.github.io/
MIT License
2.26k stars 382 forks source link

Compare two locations and see if one exists in the radius of the other #345

Closed psharma1010 closed 10 years ago

psharma1010 commented 11 years ago

I have posted a question on stackoverflow - http://stackoverflow.com/questions/16628598/check-for-location-under-a-radius-using-google-maps-for-rails-gem.

I was wondering if anybody could help me with this? Any guidance is helpful.

thanks

srt32 commented 11 years ago

That link is broken. Could you paste in a new one? I'd be curious to see the discussion.

apneadiving commented 11 years ago

This was the answer received:

take a look at google.maps.geometry.spherical.computeDistanceBetween – Dr.Molle

That link is broken. Could you paste in a new one? I'd be curious to see the discussion.

— Reply to this email directly or view it on GitHub.

srt32 commented 11 years ago

Great. Thanks @apneadiving