~ubuntu-branches/ubuntu/wily/pymongo/wily

« back to all changes in this revision

Viewing changes to doc/examples/geo.rst

  • Committer: Package Import Robot
  • Author(s): Federico Ceratto
  • Date: 2012-05-10 21:21:40 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20120510212140-9c66c00zz850h6l9
Tags: 2.2-1
* New upstream release.
* Dependencies added (Closes: #670268)

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
.. note:: 2D indexes require server version **>= 1.3.4**. Support for
14
14
   2D indexes also requires PyMongo version **>= 1.5.1**.
15
15
 
16
 
.. mongodoc:: Geospatial+Indexing
 
16
.. mongodoc:: geo
17
17
 
18
18
Creating a Geospatial Index
19
19
---------------------------
78
78
  ...   repr(doc)
79
79
  ...
80
80
  "{u'loc': [1, 2], u'_id': ObjectId('...')}"
 
81
  "{u'loc': [4, 4], u'_id': ObjectId('...')}"
81
82
  "{u'loc': [2, 5], u'_id': ObjectId('...')}"
82
 
  "{u'loc': [4, 4], u'_id': ObjectId('...')}"
83
83
 
84
84
geoNear queries are also supported using :class:`~bson.son.SON`:
85
85