Geolocation / Radius search
Hello,
I've been trying a couple of times now to get geolocation indicies to work with the latest 2.0 developer preview version, without success.
The manual is a bit unclear to me there, because it mentions to create a view with a prefix "spatial" - how do i do that?
Is there any current HowTo to follow that really matches 2.0 ? Or can someone explain me how to implement it?
And radius search? All I've seen so far is boundary box search, so can anyone give me a pointer at an easy way to convert the radius to the boundary ?
Thanks in advance for your help
Hi Torgon,
the latest Developer Preview (DP3) of Couchbase Server 2.0 contains and interface to add a Spatial View.
There is no radius search at the moment. But, as you say, you can convert the radius to a bounding box. See [1] and especially [2] for more information about it.
[1] http://stackoverflow.com/questions/238260/how-to-calculate-the-bounding-...
[2] http://janmatuschek.de/LatitudeLongitudeBoundingCoordinates
Cheers,
Volker
Hello Volker, Ingenthr,
thanks a lot for the reply, i almost gave up hope :-) I found no place clearly stating which version included spatial and which didn't, with this info now i will download the latest one and trial it in a bit!
Regards from Germany
Torgon
Is this on Couchbase Server, or Couchbase Single Server? The forum you've posted in is for Couchbase Server which does not yet have geocouch integrated.
That said, I'll see if a colleague can give you a quick reply.