Ruby on Rails
Monday, June 11, 2018
Honey,
On Saturday, June 9, 2018 at 12:42:06 AM UTC-7, honey ruby wrote:
-- Geocoding refers to the translation of an address to a lat/lng or vice-versa.
If you're looking to determine if a lat/lng is within a City or County shape, you're probably looking for something like a Point-in-Polygon search - to ensure the lat/lng is within a given boundary.
Rails offers nice `PostGIS` support. https://postgis.net/docs/manual-1.4/ST_Contains.html
There are likely other options as well, depending on where you store your shapefiles.
- Ryan
On Saturday, June 9, 2018 at 12:42:06 AM UTC-7, honey ruby wrote:
Hi ,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. Can any one help me how can I do this.Thanks in advance
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/ff3c349c-b580-4d96-a154-0ed930cd44a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment