struct Redis::Geo::Box

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.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(width : String, height : String, unit : Unit) #

[View source]
def self.new(width : Number, height : Number, unit : Unit) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(width _width = @width, height _height = @height, unit _unit = @unit) #

[View source]
def height : String #

def unit : Unit #

def width : String #