X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5449cf4adcc1fad4b9f43426e6d3e4a8f65e6fbb..02ad2f5a5192404185d00ec1b53ae2982760c0ea:/lib/geo_record.rb diff --git a/lib/geo_record.rb b/lib/geo_record.rb index 2740eab0c..d44227dd8 100644 --- a/lib/geo_record.rb +++ b/lib/geo_record.rb @@ -53,6 +53,11 @@ private self.with_scope(:find => {:conditions => OSM.sql_for_area(minlat, minlon, maxlat, maxlon)}) do return self.find(:all, options) end + end + def find_by_area_no_quadtile(minlat, minlon, maxlat, maxlon, options) + self.with_scope(:find => {:conditions => OSM.sql_for_area_no_quadtile(minlat, minlon, maxlat, maxlon)}) do + return self.find(:all, options) + end end end end