MongoDB Interactive Geospatial Tutorial
mongly.com
mongly.com
1. Provide buttons somewhere to increase and decrease the speed. The keyboard shortcuts don't seem to work for me (OS X, Dvorak keyboard layout).
2. Even better, ditch speed entirely and let me click "next" to see ALL of the lines of text up to the next bit where I'm expected to interact.
3. Don't make me guess how to do things! I'm lazy and in a hurry.
Maybe this just isn't the right style of learning for me.
I'll look at #2.
Based on the original tutorial, the feedback was positive with respect to making people think about the answers. help always tells you exactly what to type to move on though.
My feature requests would include: a) a hint system. if I don't get it three times I'd like to be able to give up. I know it's open for abuse, but I'm a grown man and understand that I'm only cheating myself. end of the day I still want to learn it.
b) a link from each concept to the reference documentation of the function I've just used. So when I've finally used [* $near spoilers redacted*] let me see the actual documentation for $near if that's possible I guess. I'm not sure how complete the Mongo docs are. My reasoning being that I'd like to see the rest of the ways I can use the command.
Short answer: I love the tutorial & thank you.
One thing you leave out is the $nearSphere and related commands which can be used since MongoDB 1.7 or so to create better radiuses. It makes searching just that little more precise. There is one twist for it that had me stuck for a bit: the radius is in radians when using those commands.
Other than that: MongoDB makes it very very easy to create a location based mobile service. Throw in some node.js and some JSON, and you're set.
http://www.google.com/search?q=50+km+%2F+radius+of+earth http://www.google.com/search?q=50+miles+%2F+radius+of+earth
I've been doing Geospatial queries lately. It's pretty fast when going through 280k+ city coordinates at ~1-20 ms (Can't go lower than ms though) to find cities near [0, 0], [100.752, 120.236], etc.
Now I'm thinking of ways to use this!
db.treasures.find()
then hit up arrow I got: db.find()
The tutorial would have gone a lot faster if uparrow stored the correct string. Though then again, maybe there's something I don't know about the db.find option. Maybe it is doing it right and I'm wrong.In IE8 it gets a JavaScript error a few lines earlier, and stops advancing.
Am I missing something obvious in the ui?
It might be worth keeping on the screen at all times. ;-)
the correct command is db.treasures.find({location: {$near: [0, 0]}, type: "gold"}).limit(5);
you have an extra { infront of "type"...making it invalid json.
Once a user finishes, provide a list of open jobs for shops that use MongoDB.