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)
Sourcenew(magnitude : Number, unit : Unit)
SourceInstance methods
clone
Sourcecopy_with(magnitude _magnitude = @magnitude, unit _unit = @unit)
Sourcemagnitude
unit