title: Neo4j spatial in ruby
body: <p>I recently started playing with neo4j graph database in a Rails application and loved how rich the neo4j is. Although I saw that there is spatial support for neo4j via <a href="https://github.com/neo4j/spatial" rel="nofollow">neo4j-spatial</a> I haven't seen an example in a ruby application to get me started (using the ruby port of <a href="https://github.com/craigtaverner/neo4j-spatial.rb" rel="nofollow">neo4j-spatial</a>).</p>
  
  <p>What I want to accomplish at first is to have a <code>User</code> model and a <code>Poi</code> model both having <code>lat, lng</code> attributes and make a query: <em>Show me the Poi's that are at most 10km away from me</em>
  but I have no idea how I have to go about using the ruby gem. All I have found on the subject is <a href="http://blog.neo4j.org/2011/03/neo4j-spatial-part1-finding-things.html" rel="nofollow">this blog spot</a>.</p>
  
  <p>Does anyone know how am I supposed to do this in ruby? Thanks!</p>