What is the unit for the distance returned by geoNear and what is the unit for specifying the radius of $center

212 views
Skip to first unread message

Alex K

unread,
Sep 14, 2010, 2:46:34 PM9/14/10
to mongodb-user
I am trying to build out some geo functionality and need to know how
to convert between what I get and what I need (mostly specified in
miles).

Use case example:

User can specify a base address and a maximum radius to search by (in
miles).

I then do a query with the $center option and need to supply a radius,
but I have no idea what I need to convert my miles to for this radius.


Thanks.

Eliot Horowitz

unread,
Sep 14, 2010, 4:16:46 PM9/14/10
to mongod...@googlegroups.com
They're in degrees - so 1 ~= 69 miles.

> --
> You received this message because you are subscribed to the Google Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages