viatropos/tower — pull request #144 by contentfree (2012-05-17 00:13:52+00:00)
Title: Geoquerying memory store

Had to pass the record to testValue in operators so that I could access the new (and a bit hacky) __distance added to each record when $near is used.

Added a test for #within as well. All tests pass for both Memory and Mongodb stores.