Example of using neo4j spatial using British Football Stadiums
JavaScript Ruby
Permalink
Failed to load latest commit information.
data
public pushing HTTP stuff into the service Jul 6, 2013
views
Gemfile tidying up labels/inptus Jun 30, 2013
Gemfile.lock
README.md
app.rb pulling out variable Jul 6, 2013
create_stadiums.rb
haversine.rb making formula easier to read Jul 6, 2013

README.md

neo4j-football-stadiums

Using neo4j spatial to create and query British Football Stadiums

To get started:

curl "http://download.neo4j.org/artifact?edition=community&version=1.9&distribution=tarball" -o neo4j.tar.gz
tar -xvf neo4j.tar.gz

# copy across the spatial plugin
git clone git://github.com/neo4j/spatial.git spatial
cd spatial
mvn clean package -Dmaven.test.skip=true install
unzip target/neo4j-spatial-0.11-SNAPSHOT-server-plugin.zip -d /path/to/neo4j-community-1.9/plugins/
/path/to/neo4j-community-1.9/bin/neo4j restart

bundle install
bundle exec ruby create_stadiums.rb

If things go Pete Tong and you want to clear everything and start over:

./neo4j-community-1.9/bin/neo4j stop && rm -rf neo4j-community-1.9/data/graph.db/ && ./neo4j-community-1.9/bin/neo4j start
bundle exec ruby create_stadiums.rb