Module: RGeo::ActiveRecord::Mysql2Rgeo::SpatialExpressions
- Defined in:
- lib/active_record/connection_adapters/mysql2rgeo/spatial_expressions.rb
Instance Method Summary collapse
Instance Method Details
#st_distance_sphere(rhs, units = nil) ⇒ Object
7 8 9 10 11 |
# File 'lib/active_record/connection_adapters/mysql2rgeo/spatial_expressions.rb', line 7 def st_distance_sphere(rhs, units = nil) args = [self, rhs] args << units.to_s if units SpatialNamedFunction.new("ST_Distance_Sphere", args, [false, true, true, false]) end |