I just started working with neo4j-spatial and have good understanding of basics of spatial geometries - polygons, points, lines.
So we are building web application that needs to index tourist information (only points) based on OSM administrative area like country, county and city. How do I store and index such data using neo4j-spatial? I am familiar with RDBMS so we were able to create solution using PostGIS link to solution
I created layer and index for each administrative area.
POST http://localhost:7474/db/data/index/node {"name":"india", "config": {"provider":"spatial", "wkt":"wkt"}}
Created Polygon node
POST http://localhost:7474/db/data/index/node { layer : "india", name:"Hyderabad", wkt : "POLYGON((11.0 11.0, 11.0 12.0, 12.0 12.0, 12.0 11.0, 11.0 11.0))" }
Also how do I determine administrative area based on given GPS Tourist point so as to create a node for it?