Determine if point is within bounding box

256 views
Skip to first unread message

Daniel Berger

unread,
Sep 1, 2010, 3:51:48 PM9/1/10
to georuby
Hi,

Using georuby, how would you determine if a given point is within the
bounding box? I've looked at the API, but nothing immediately stood
out for me.

Ruby 1.8.7, georuby 1.3.4 btw

Regards,

Dan

paron

unread,
Sep 2, 2010, 6:55:43 AM9/2/10
to georuby
I didn't use georuby the last time I did this. I just checked:

pt.lat > bounding.min_lat && pt.lat<bounding.max_lat &&
pt.lng<bounding.max_lng && pt.lng > bounding.min_lng

but I'm sure that's not what you mean.

Ron
Reply all
Reply to author
Forward
0 new messages