mongoid-geospatial 7.3.0 → 7.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mongoid/geospatial/version.rb +1 -1
- data/lib/mongoid/geospatial.rb +7 -6
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9437e8d6af695bcba5f39208f8219019da404fc51b863c4fb7940567183c5c9f
|
|
4
|
+
data.tar.gz: 2a3ca5f675cd58c204462b7122b84341c63cee8222f3372a014d1ed3096f82f0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 82fe874fb74ab68457b2e9c56c202bd94ff6c71626832fa0a514d8ce7741282bff68d7c08601806c72e56bf4364d5173f3cdfdaca47b005c86f698f0601d9697
|
|
7
|
+
data.tar.gz: fb2a788d4559688612083fddb24ef77d632d0d18b58aa5f3a6216ca58d6c6220a88180db3b009f4697fda2aa0cb95a43d3ef2d11ccc6e0d8a4f8003cc320227c
|
data/lib/mongoid/geospatial.rb
CHANGED
|
@@ -344,12 +344,13 @@ module Mongoid
|
|
|
344
344
|
# For spherical queries, specify distance in meters. For 2d queries, in the same units as coordinates.
|
|
345
345
|
# - `:minDistance` [Numeric] The minimum distance. (MongoDB 2.6+)
|
|
346
346
|
# - `:query` [Hash] Limits the results to the documents that match the query.
|
|
347
|
-
# - `:limit` [Integer] The maximum number of documents to return
|
|
348
|
-
#
|
|
349
|
-
# - `:
|
|
350
|
-
#
|
|
351
|
-
#
|
|
352
|
-
#
|
|
347
|
+
# - `:limit` [Integer] The maximum number of documents to return
|
|
348
|
+
# (applied as a separate `$limit` pipeline stage).
|
|
349
|
+
# - `:distanceMultiplier` [Numeric] A factor to multiply all distances by.
|
|
350
|
+
# - `:includeLocs` [String] Output field naming WHICH location the distance
|
|
351
|
+
# was measured to — the one that matters when the queried field holds
|
|
352
|
+
# several points, or a Polygon. `includeLocs: 'matchedPoint'` adds a
|
|
353
|
+
# `matchedPoint` field to each output document.
|
|
353
354
|
#
|
|
354
355
|
# @return [Mongo::Collection::View::Aggregation] The raw pipeline result — it
|
|
355
356
|
# yields `BSON::Document` hashes, NOT model instances, so read a field with
|