GeoCoding in Rails for polygon bounds [closed]
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . Is there a way in rails via some mapping API/gem where I can define map areas/map zones (with polygon bounds) and detect if an address falls within a particular zone/area. 回答1: This is easily done with geokit. First construct a polygon from LatLng: polygon = Geokit::Polygon.new([