O'Reilly logo

Neo4j Cookbook by Ankur Goel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a point layer using the REST API

In this recipe, you will learn how to create a point layer using the REST API interface.

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 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/addSimplePointlayer endpoint to create a simple point layer.

Let's add ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required