README.md in mongoid_geospatial-2.7.1 vs README.md in mongoid_geospatial-2.7.2

- old
+ new

@@ -12,11 +12,10 @@ There are no plans to support MongoDB < 2.0 There are no plans to support Mongoid <= 2.0 - Quick Start ----------- This gem focus on (making helpers for) spatial features MongoDB has. You can also use an external Geometric/Spatial alongside. @@ -42,13 +41,34 @@ spatial_index :location # You can index points with :spatial => true option too, see below. end +For geo points, an extra macro `geo_field` is available + + + class Place + include Mongoid::Document + include Mongoid::Geospatial + + # field :location, type: Point, spatial: true + geo_field :location + end + + Generate indexes on MongoDB: rake db:mongoid:create_indexes + + +Index programatically via https://github.com/kristianmandrup/mongoid_indexing gem + + + Mongoid::Indexing.create_indexes + + +This is fx useful when running specs or when working with spatials on a gem or engine. Points ------