title: Neo4j Spatial 'WithinDistance' Cypher query returns empty while REST call returns data
body: <p>I have what appears to be a correctly configured spatial layer and index and can successfully query a node using findGeometriesWithinDistance REST API call.</p>
  
  <pre><code>POST /db/data/ext/SpatialPlugin/graphdb/findGeometriesWithinDistance {"layer":"geom","pointX":15.0,"pointY":60.0,"distanceInKm":100.0}
  </code></pre>
  
  <p>However, when querying using cypher, I get no results (I have tried reversing the order of 60.0 and 15.0 without luck):</p>
  
  <pre><code>START n=node:geom('withinDistance:[60.0, 15.0, 500.0]') return n;
  </code></pre>
  
  <p>Cyper returns:</p>
  
  <pre><code>==&gt; +---+
  ==&gt; | n |
  ==&gt; +---+
  ==&gt; +---+
  ==&gt; 0 row
  ==&gt; 
  ==&gt; 13 ms
  </code></pre>
  
  <p>REST:</p>
  
  <pre><code>200 OK
  ==&gt; [ {
  ==&gt;   "paged_traverse" : "http://localhost:7474/db/data/node/14472/paged/traverse/{returnType}{?pageSize,leaseTime}",
  ==&gt;   "outgoing_relationships" : "http://localhost:7474/db/data/node/14472/relationships/out",
  ==&gt;   "data" : {
  ==&gt;     "lon" : 15.2,
  ==&gt;     "bbox" : [ 15.2, 60.1, 15.2, 60.1 ],
  ==&gt;     "RaceName" : "Parador Es Muy Caliente",
  ==&gt;     "lat" : 60.1,
  ==&gt;     "gtype" : 1
  ==&gt;   },
  ==&gt;   "all_typed_relationships" : "http://localhost:7474/db/data/node/14472/relationships/all/{-list|&amp;|types}",
  ==&gt;   "traverse" : "http://localhost:7474/db/data/node/14472/traverse/{returnType}",
  ==&gt;   "self" : "http://localhost:7474/db/data/node/14472",
  ==&gt;   "all_relationships" : "http://localhost:7474/db/data/node/14472/relationships/all",
  ==&gt;   "property" : "http://localhost:7474/db/data/node/14472/properties/{key}",
  ==&gt;   "properties" : "http://localhost:7474/db/data/node/14472/properties",
  ==&gt;   "outgoing_typed_relationships" : "http://localhost:7474/db/data/node/14472/relationships/out/{-list|&amp;|types}",
  ==&gt;   "incoming_relationships" : "http://localhost:7474/db/data/node/14472/relationships/in",
  ==&gt;   "incoming_typed_relationships" : "http://localhost:7474/db/data/node/14472/relationships/in/{-list|&amp;|types}",
  ==&gt;   "extensions" : {
  ==&gt;   },
  ==&gt;   "create_relationship" : "http://localhost:7474/db/data/node/14472/relationships"
  ==&gt; } ]
  </code></pre>
  
  <p>REST Calls to reproduce:
  Create Layer:</p>
  
  <pre><code>POST /db/data/ext/SpatialPlugin/graphdb/addSimplePointLayer { "layer":"geom", "lat":"lat", "lon":"lon" }
  </code></pre>
  
  <p>Create Index:</p>
  
  <pre><code>POST /db/data/index/node/ {"name":"geom", "config":{"provider":"spatial", "geometry_type":"point","lat":"lat","lon":"lon"}}
  </code></pre>
  
  <p>Create Node:</p>
  
  <pre><code>POST /db/data/node {"lat":60.2,"lon":15.1,"RaceName":"Parador Es Muy Caliente"}
  </code></pre>
  
  <p>(In response, examine "self" and find nodeid)</p>
  
  <p>Index the node:</p>
  
  <pre><code>POST /db/data/ext/SpatialPlugin/graphdb/addNodeToLayer {"layer":"geom", "node":"http://localhost:7474/db/data/node/###NEW_NODE_ID###"}
  </code></pre>
  
  <p>Find:</p>
  
  <pre><code>POST /db/data/ext/SpatialPlugin/graphdb/findGeometriesWithinDistance {"layer":"geom","pointX":15.0,"pointY":60.0,"distanceInKm":100.0}
  </code></pre>