Make OSM::GreatCircle#bounds return a BoundingBox object
This commit is contained in:
parent
f1e9dcc66a
commit
9f170663fc
1 changed files with 1 additions and 1 deletions
|
@ -480,7 +480,7 @@ module OSM
|
|||
minlon = [(@lon - lonradius) * 180 / PI, -180].max
|
||||
maxlon = [(@lon + lonradius) * 180 / PI, 180].min
|
||||
|
||||
{ :minlat => minlat, :maxlat => maxlat, :minlon => minlon, :maxlon => maxlon }
|
||||
BoundingBox.new(minlon, minlat, maxlon, maxlat)
|
||||
end
|
||||
|
||||
# get the SQL to use to calculate distance
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue