Redis::Geo::Box
Inherits Struct < Value < Object
Represent a bounding box for a geosearch command.
redis.geosearch "drivers",
fromlonlat: {longitude, latitude},
bybox: Redis::Geo::Box.new(10, 5, :mi) # 10 miles wide by 5 miles heigh
Constructors
new(width : String, height : String, unit : Unit)
Sourcenew(width : Number, height : Number, unit : Unit)
SourceInstance methods
clone
Sourcecopy_with(width _width = @width, height _height = @height, unit _unit = @unit)
Sourceheight
unit
width