struct
Redis::Geo::Box
- Redis::Geo::Box
- Struct
- Value
- Object
Overview
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
Defined in:
commands/geo.crConstructors
- .new(width : String, height : String, unit : Unit)
- .new(width : Number, height : Number, unit : Unit)
Instance Method Summary
- #clone
- #copy_with(width _width = @width, height _height = @height, unit _unit = @unit)
- #height : String
- #unit : Unit
- #width : String