Received: by 10.14.51.7 with SMTP id a7mr1558693eec.6.1332400362904; Thu, 22 Mar 2012 00:12:42 -0700 (PDT) X-BeenThere: nosql-databases@googlegroups.com Received: by 10.14.32.145 with SMTP id o17ls351524eea.2.gmail; Thu, 22 Mar 2012 00:12:42 -0700 (PDT) Received: by 10.14.127.10 with SMTP id c10mr1563715eei.2.1332400362589; Thu, 22 Mar 2012 00:12:42 -0700 (PDT) Received: by 10.14.127.10 with SMTP id c10mr1563714eei.2.1332400362570; Thu, 22 Mar 2012 00:12:42 -0700 (PDT) Return-Path: Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by gmr-mx.google.com with ESMTPS id a14si2881281een.0.2012.03.22.00.12.42 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 22 Mar 2012 00:12:42 -0700 (PDT) Received-SPF: pass (google.com: domain of the.mindstorm.mailinglist+caf_=nosql-databases=googlegroups....@gmail.com designates 209.85.215.182 as permitted sender) client-ip=209.85.215.182; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of the.mindstorm.mailinglist+caf_=nosql-databases=googlegroups....@gmail.com designates 209.85.215.182 as permitted sender) smtp.mail=the.mindstorm.mailinglist+caf_=nosql-databases=googlegroups....@gmail.com; dkim=pass header.i=@googlegroups.com Received: by eaaf13 with SMTP id f13so683832eaa.27 for ; Thu, 22 Mar 2012 00:12:42 -0700 (PDT) Received: by 10.213.26.206 with SMTP id f14mr479104ebc.300.1332400362402; Thu, 22 Mar 2012 00:12:42 -0700 (PDT) X-Forwarded-To: nosql-databases@googlegroups.com X-Forwarded-For: the.mindstorm.mailingl...@gmail.com nosql-databases@googlegroups.com Delivered-To: the.mindstorm.mailingl...@gmail.com Received: by 10.213.20.216 with SMTP id g24csp8358ebb; Thu, 22 Mar 2012 00:12:42 -0700 (PDT) Return-Path: Received-SPF: pass (google.com: domain of neo4j+bncCOGMsfS3FRDnoav7BBoE2U8v8Q@googlegroups.com designates 10.180.88.101 as permitted sender) client-ip=10.180.88.101; Received: from mr.google.com ([10.180.88.101]) by 10.180.88.101 with SMTP id bf5mr581445wib.4.1332400361909 (num_hops = 1); Thu, 22 Mar 2012 00:12:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:mime-version:in-reply-to:references:date :message-id:subject:from:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=TffA83Z9MYYTNYqWes5sWLhv+8mmgpnHoMfAot8zBVw=; b=e4cyWzRgv9thcaqO1eEQp/l4aDa0OuFoSUMo4pj28h8l79Ficb13AJjVsa84gx+HUe atGIONBBY+kH+xBM3th5c6H8HClhZLpPnyaGZ+4jsbvAkD51RdbhwDCEG2PC0i3Se3v+ Jpf14GYE4RX1uGXZnxDRh9+v0cVsFaGrUj1Gs= Received: by 10.180.88.101 with SMTP id bf5mr90799wib.4.1332400359125; Thu, 22 Mar 2012 00:12:39 -0700 (PDT) X-BeenThere: neo4j@googlegroups.com Received: by 10.216.216.222 with SMTP id g72ls2782098wep.7.gmail; Thu, 22 Mar 2012 00:12:35 -0700 (PDT) Received: by 10.180.104.163 with SMTP id gf3mr218873wib.0.1332400355202; Thu, 22 Mar 2012 00:12:35 -0700 (PDT) Received: by 10.180.104.163 with SMTP id gf3mr218872wib.0.1332400355177; Thu, 22 Mar 2012 00:12:35 -0700 (PDT) Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com [209.85.212.174]) by gmr-mx.google.com with ESMTPS id p3si675133wip.3.2012.03.22.00.12.35 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 22 Mar 2012 00:12:35 -0700 (PDT) Received-SPF: pass (google.com: domain of luanne.couti...@gmail.com designates 209.85.212.174 as permitted sender) client-ip=209.85.212.174; Received: by wibhr17 with SMTP id hr17so301596wib.15 for ; Thu, 22 Mar 2012 00:12:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.180.81.135 with SMTP id a7mr2344184wiy.16.1332400355046; Thu, 22 Mar 2012 00:12:35 -0700 (PDT) Received: by 10.227.42.211 with HTTP; Thu, 22 Mar 2012 00:12:34 -0700 (PDT) In-Reply-To: <06f065bd-2c24-424f-861c-0f4193fd6...@hv2g2000vbb.googlegroups.com> References: <06f065bd-2c24-424f-861c-0f4193fd6...@hv2g2000vbb.googlegroups.com> Date: Thu, 22 Mar 2012 12:42:34 +0530 Message-ID: Subject: Re: [Neo4j] Geo-spatial indexing From: Luanne Coutinho To: neo4j@googlegroups.com X-Original-Sender: luanne.couti...@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of luanne.couti...@gmail.com designates 209.85.212.174 as permitted sender) smtp.mail=luanne.couti...@gmail.com; dkim=pass header...@gmail.com Reply-To: neo4j@googlegroups.com Precedence: list Mailing-list: list neo4j@googlegroups.com; contact neo4j+owners@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: Sender: neo4j@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: multipart/alternative; boundary=f46d0444024edc740c04bbcfa106 --f46d0444024edc740c04bbcfa106 Content-Type: text/plain; charset=ISO-8859-1 Hi, You can use neo4j-spatial for this. Have a look at these 2 test cases: https://github.com/neo4j/spatial/blob/master/src/test/java/org/neo4j/gis/spatial/TestSimplePointLayer.java https://github.com/neo4j/spatial/blob/master/src/test/java/org/neo4j/gis/spatial/pipes/GeoPipesTest.java Indexing is also possible( https://github.com/neo4j/spatial/blob/master/src/test/java/org/neo4j/gis/spatial/IndexProviderTest.java), though I thought I read somewhere that it is not recommended yet? I guess Peter can confirm whether that's right. Regards Luanne On Thu, Mar 22, 2012 at 12:17 PM, @gokool wrote: > I have my graph database populated with node-data which includes > latitude and longitude coordinates. > My requirement is to search for nodes which falls within a particular > radius from a given node. I am aware that Lucene/Solr has support for > Spatial search. Is that supported through Neo4J APIs - if so, how do I > go about indexing the geo-coordinates for this usecase. If it isnt > supported, is there any other way to do this. I saw another thread on > the group which talks about using the Java API directly. Is that the > only way to do it? > > Any pointers to documentation regarding this would be very helpful. > > Thanks in advance > Gokul > --f46d0444024edc740c04bbcfa106 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

You can use neo4j-spatial for this. Have a look at these 2 test = cases:

https://github.co= m/neo4j/spatial/blob/master/src/test/java/org/neo4j/gis/spatial/TestSimpleP= ointLayer.java
https://github.com/neo4j/spatial/= blob/master/src/test/java/org/neo4j/gis/spatial/pipes/GeoPipesTest.java=

Indexing is also possible(http= s://github.com/neo4j/spatial/blob/master/src/test/java/org/neo4j/gis/spatia= l/IndexProviderTest.java), though I thought I read somewhere that it is= not recommended yet? I guess Peter can confirm whether that's right.
Regards
Luanne

On Thu, Mar 22, 201= 2 at 12:17 PM, @gokool <gokoolt...@gmail.com> wrote:
I have my graph database populated with node-data which includes
latitude and longitude coordinates.
My requirement is to search for nodes which falls within a particular
radius from a given node. I am aware that Lucene/Solr has support for
Spatial search. Is that supported through Neo4J APIs - if so, how do I
go about indexing the geo-coordinates for this usecase. If it isnt
supported, is there any other way to do this. I saw another thread on
the group which talks about using the Java API directly. Is that the
only way to do it?

Any pointers to documentation regarding this would be very helpful.

Thanks in advance
Gokul

--f46d0444024edc740c04bbcfa106--