enum Redis::FullText::GeoUnit

Overview

Pass to the search method's geofilter argument to filter within the specified range. For example, to search for pizza places within 25 miles of the Baltimore Ravens stadium:

redis.ft.search "places-index", "pizza",
  geofilter: {"location", -76.622400, 39.277751, 25, :mi}

Defined in:

search.cr

Enum Members

M = 0
KM = 1
MI = 2
FT = 3

Instance Method Summary

Class methods inherited from struct Enum

from_redis_graph_value(type : Redis::Graph::ValueType, value, cache) from_redis_graph_value

Instance Method Detail

def ft? #

[View source]
def km? #

[View source]
def m? #

[View source]
def mi? #

[View source]