John Wood
2012-06-21 18:28:21 UTC
Is it possible to order a list by distance from a specific location? I know
you can get everything within a specific square/circle etc., but I need to
get a paged list of locations that progressively gets further and further
away.
I guess I could do this using the polygon to create the area that I'm
probing and then sort those results manually... but it would be nice if I
could do this automatically from mongo in one query.
you can get everything within a specific square/circle etc., but I need to
get a paged list of locations that progressively gets further and further
away.
I guess I could do this using the polygon to create the area that I'm
probing and then sort those results manually... but it would be nice if I
could do this automatically from mongo in one query.
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongodb-user-/***@public.gmane.org
To unsubscribe from this group, send email to
mongodb-user+unsubscribe-/***@public.gmane.org
See also the IRC channel -- freenode.net#mongodb
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongodb-user-/***@public.gmane.org
To unsubscribe from this group, send email to
mongodb-user+unsubscribe-/***@public.gmane.org
See also the IRC channel -- freenode.net#mongodb