Module: CartoDB::Model::Geo
Defined Under Namespace
Modules: ClassMethods
Constant Summary
Constants included from Constants
Constants::CARTODB_TYPES, Constants::DEFAULT_ROWS_PER_PAGE, Constants::GEOMETRY_COLUMN, Constants::INVALID_COLUMNS, Constants::RGEO_FACTORY
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
6 7 8 |
# File 'lib/cartodb-rb-client/cartodb/model/geo.rb', line 6 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#convert_to_point(latitude, longitude) ⇒ Object
85 86 87 |
# File 'lib/cartodb-rb-client/cartodb/model/geo.rb', line 85 def convert_to_point(latitude, longitude) RGEO_FACTORY.point(longitude, latitude) end |