Settings

Theme

Live Demo of the new geo queries in Mongo 2.4

idbentley.com

13 points by idbentley 13 years ago · 5 comments

Reader

frumious 13 years ago

This is a great example. I tried running it myself locally.

The README.md doesn't explain how to create the mongodb indexes, and it doesn't work without them...

  • idbentleyOP 13 years ago

    Hi frumious.

    Sorry that the readme is light in this area. Before loading the data, just start a connection to mongo, and `use geo` `db.ny.ensureIndex({"geo": "2dsphere"})`. And you'll have your index.

ranman 13 years ago

This is pretty boss but the $within query return values seem... random. It also doesn't return in the same order everytime (at least that's what it looks like).

telm 13 years ago

those features look really good, very little code required.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection