neospatial-py
=============
Python Wrapper for Neo4j Spatial Plugin
### Requirements
* Install [neo4j/spatial](https://github.com/neo4j/spatial) server plugin
### Installation
```
sudo pip install neospatial
```
### Usage
```python
>>> 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
```
=============
Python Wrapper for Neo4j Spatial Plugin
### Requirements
* Install [neo4j/spatial](https://github.com/neo4j/spatial) server plugin
### Installation
```
sudo pip install neospatial
```
### Usage
```python
>>> 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 files for neospatial 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| neospatial-0.1.1.tar.gz | 1.8 kB | Details |
Release files / neospatial-0.1.1.tar.gz
| Download URL | neospatial-0.1.1.tar.gz |
|---|---|
| Size | 1.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d31717708cb37b267095172137874f84bcf84962d30bb9f467ac50f0103bd49
|
|
BLAKE2b-256 checksum How to use checksums |
d1a67215c0cc8560b7cd3dde662ea2998654480b7d015ac6356106edb2cae2de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |