rockq-org / wildfire

Project to publish personal stuffs, a platform alike eBay based wechat.
http://shorterurl.net/pul2zu7
3 stars 1 forks source link

Backend RESt API to get goods by GIS Location #56

Closed hailiang-wang closed 9 years ago

hailiang-wang commented 9 years ago

Description

User Story #10

提供一个接口取数据, RESt, JSON

计算过程: 从数据库中,查询 'Topic', 只要topic经纬度落到输入的三公里范围内,就加入到输出。 JavaScript lib for genode : https://github.com/manuelbieh/Geolib

hailiang-wang commented 9 years ago

@lymanlai Neo 会实现首页search的功能,将这个task assign 给 @nihgwu 了。

nihgwu commented 9 years ago

采用map-reduce的方法跟直接range查询e的方法性能上应该有差别吧,我打算用后者来实现

nihgwu commented 9 years ago

http://docs.mongodb.org/manual/applications/geospatial-indexes/ http://docs.mongodb.org/manual/reference/operator/query/nearSphere/ mongodb 本身就支持geo查询

nihgwu commented 9 years ago

@lymanlai help me with the getlocation stuff, it's too hard for me to debug, thx i've finished with the functional test

hailiang-wang commented 9 years ago

@nihgwu @lymanlai Query Body Changed, let us use goods_exchange_geom to distinguish with the original properties in nodeclub.

hailiang-wang commented 9 years ago

image