Ruby on Rails Saturday, June 9, 2018

Define a set of list of points set([lat,long],...) or [ [lat,long],...]

If location in set or list accept

else

block

On Sun, Jun 10, 2018 at 1:41 AM, Hassan Schroeder <hassan.schroeder@gmail.com> wrote:
On Sat, Jun 9, 2018 at 12:42 AM, honey ruby <emailtohoneyruby@gmail.com> wrote:

> I have city or county Lat and Long and if user inputs of lat and long are
> with in the city or county which I specify then I should allow him for next
> page else I need to block him and say we are not serving at that place.
> Using Geocoder I don't see any method to check lat and long with in range.

A Range is standard Ruby, nothing Geocoder-specific about it.  What
does an example lat/long "range" look like?

Otherwise, is there some reason Thing.near() doesn't work for your
use case?

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBUhbx59GFBRKNXEOjAHs_sHv6KO1%2B%3DRNYd-vGj1VNUKQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
Dave Merrick

Daves Web Designs

Website http://www.daveswebdesigns.co.nz/

Email merrickdav@gmail.com

Ph   03 216 2053

Cell 027 3089 169

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKad%3D2wU%2BTQz89VU%2B-jDvBmHbdZnq%2BPmSdcO4SKL2c3iEQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment