Finding geometries within the bounding box
In this recipe, you will learn how to find all the geometries within the bounding box using the spatial REST interface.
Getting ready
Perform the following steps to get started with this recipe:
Install Neo4j using the recipes from Chapter 1, Getting Started with Neo4j. This installation process will depend on your preference for your machine OS type.
Install the Neo4j Spatial plugin using the Installing the Neo4j Spatial extension, recipe from this chapter.
Restart the Neo4j graph database server using the following command:
$NEO4J_ROOT_DIR/bin/neo4j restart
How to do it...
In this recipe, we will use the http://<neo4j_server_ip>:<port>/db/data/ext/SpatialPlugin/graphdb/findGeometriesInBBox
endpoint to find all the geometries within the bounding box.
Let's find all the geometries, using the following information:
"minx" : 0.0, "maxx" : 100.0, "miny" : 0.0, "maxy" : 100.0 url = "http://<neo4j_server_ip>:<port>//db/data/ext/SpatialPlugin...