struct

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)
Source
new(width : Number, height : Number, unit : Unit)
Source

Instance methods

clone
Source
copy_with(width _width = @width, height _height = @height, unit _unit = @unit)
Source
height
unit
width