Module: FrOData::Query::Criteria::GeographyFunctions

Included in:
FrOData::Query::Criteria
Defined in:
lib/frodata/query/criteria/geography_functions.rb

Instance Method Summary collapse

Instance Method Details

#distance(to) ⇒ self

Applies the `geo.distance` function.

Parameters:

Returns:

  • (self)

8
9
10
# File 'lib/frodata/query/criteria/geography_functions.rb', line 8

def distance(to)
  set_function_and_argument(:'geo.distance', to)
end

#intersects(what) ⇒ self

Applies the `geo.intersects` function.

Parameters:

Returns:

  • (self)

15
16
17
# File 'lib/frodata/query/criteria/geography_functions.rb', line 15

def intersects(what)
  set_function_and_argument(:'geo.intersects', what)
end