Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

Python Wrapper for Neo4j Spatial Plugin

Project Description


Python Wrapper for Neo4j Spatial Plugin

### Requirements
* Install [neo4j/spatial]( server plugin

### Installation
sudo pip install neospatial

### Usage
>>> from neospatial import *

>>> spatial = SpatialConnection("localhost", 7474)
>>> spatial.createLayer('geom')
>>> index = spatial.createIndex('geom')

>>> node1 = spatial.createNode(45.46775, 9.21056, {'name':'Gold Restaurant'})
>>> spatial.addNodeToIndex(node1, index)

>>> node2 = spatial.createNode(45.48107, 9.19997, {'name':'Ristorante Da Giannino'})
>>> spatial.addNodeToIndex(node2, index)

>>> result = spatial.findWithinDistance(index, 45.48608, 9.20018, 5)
>>> for i in result:
>>> print i['data']['name']

>>> Ristorante Da Giannino
>>> Gold Restaurant

Release history Release notifications

This version
History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
neospatial-0.1.1.tar.gz (1.8 kB) Copy SHA256 hash SHA256 Source None Oct 14, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page