bounding box - generate coordinates

المشرف العام

Administrator
طاقم الإدارة
I will be using mondodb database which supports data on an Euclidean plane (not spherical). I will be performing queries which return all points within a box. For the box I need to specify the upper left and bottom right coordinates (http://docs.mongodb.org/manual/reference/operator/query/box/#op._S_box). My question is based on an a lat/long coordinate as input, how can I create these two coordinates needed? I want to take my coordiante and create a box of roughly ~1km (I understand since it is a box it will not be 1km in all directions, but I am not looking for perfect accuracy). Is there an algorithm for this?



أكثر...
 
أعلى