struct

Redis::Geo::Radius

Inherits Struct < Value < Object

Represent a radius for a geosearch command.

redis.geosearch "drivers",
  fromlonlat: {longitude, latitude},
  byradius: Redis::Geo::Radius.new(5, :mi)

Constructors

new(magnitude : String, unit : Unit)
Source
new(magnitude : Number, unit : Unit)
Source

Instance methods

clone
Source
copy_with(magnitude _magnitude = @magnitude, unit _unit = @unit)
Source
magnitude
unit