I am reviving the topic because I guess the doubt and the tips given here do still apply to my use case.
I am using Couchbase 4.1 CE.
I have a list of objects that contain a location object with a lat and a lng.
Supposing that I want to get the nearest objects to a specified lat/lng that I would pass, I would need to create a Spatial View that I could query?
From what I have seen, I can’t query it currently with PHP SDK - neither with N1ql - so I would need to call the Couchbase REST API to get some results on the view.
Is that correct? Are there any recommendations for this approach?
Implementing the points pointed by @vmx would be done in the Spatial View itself?
Thanks