Finding geometries within a distance using Cypher

In this recipe, you will learn how to find all the geometries within a distance using the Cypher query.

Getting ready

Perform the following steps to get started with this recipe:

  1. 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.
  2. Install the Neo4j Spatial plugin using the Installing the Neo4j Spatial extension, recipe from this chapter.
  3. Restart the Neo4j graph database server:
    $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/findGeometriesWithinDistance endpoint to find all the geometries within a ...

Get Neo4j Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.